Notification system for your Bug Bounty Automation by Anubhav Singh

Hello Friends, This write-up is all about making a notification system for your Bug Bounty Automation. In this write-up we will learn how to send a notification to our discord server when some task is started or when some task is done!

I will directly demonstrate steps and end result will be like this

For example,

1. suppose this is our script

2. Let’s execute script

1*17HJOsjlRXK1P26LlS 9lw

3. We got notification on our discord server 😉

So, I think you got the idea about what we are going to learn in this write-up 😌

Follow given Steps :

  1. Go on your discord application and Click on Add a server

1*fIvbmOSqqTOVhM zD3uarw

2. Click on Create My Own

3. Click on For me and my Friends

1*pWmqGtV6r9mM 3Ymq5OVyA

4. Click on Create

5. You can see now our server is created

1*5CfL2LAmYJ0 0PhMf11C8Q

6. Click on Create channel

1*uVenH4SkDR

7. Give name to you channel and turn on private Channel then click on next

1*5VfjCpUWuY4VRrFisJWv g

8. Skip this step

1*cKEVN VAMs0AnCymKY l A

9. You can see our channel is created with the name project-morya

10. Click on edit channel

1*0jFZ5lDG16hpex 5VUzYPw

11. Go on integrations and in that click on Create Webhook

1*ULb5zrYSrGiA5qyM1J2c2w

12. Give name, choose channel and you can also add photo to your webhooks

1* 6nCRW6tyT1GJeL61tg0fA

13. Copy Webhook URL and click on save changes

1* yF3sdfiTdWi1KHj3a02ow

When you paste your webhook url in any text editor ..You will see url like this

1*IeKpZmJfrfm jvqgmyrk Q

16. Now, Install tool named notify on your system. Notify is a Go-based assistance package that enables you to stream the output of several tools (or read from a file) and publish it to a variety of supported platforms.

command : GO111MODULE=on go get -v github.com/projectdiscovery/notify/cmd/notify

In your machine, go to this path $HOME/.config/notify/ and save this file with name provider-config.yaml

1*1hdmYp6KNYrRQuCWh9PV3w

17. Comment out rest of the line except discord

#slack:
#  - id: "slack"
#    slack_channel: "recon"
#    slack_username: "test"
#    slack_format: "{{data}}"
#    slack_webhook_url: "https://hooks.slack.com/services/XXXXXX"#- id: "vulns"
#    slack_channel: "vulns"
#    slack_username: "test"
#    slack_format: "{{data}}"
#    slack_webhook_url: "https://hooks.slack.com/services/XXXXXX"discord:
  - id: "crawl"
    discord_channel: "crawl"
    discord_username: "test"
    discord_format: "{{data}}"
    discord_webhook_url: "https://discord.com/api/webhooks/XXXXXXXX"#- id: "subs"
#    discord_channel: "subs"
#    discord_username: "test"
#    discord_format: "{{data}}"
#    discord_webhook_url: "https://discord.com/api/webhooks/XXXXXXXX"#telegram:
#  - id: "tel"
#    telegram_api_key: "XXXXXXXXXXXX"
#    telegram_chat_id: "XXXXXXXX"
#    telegram_format: "{{data}}"#pushover:
#  - id: "push"
#    pushover_user_key: "XXXX"
#    pushover_api_token: "YYYY"
#    pushover_format: "{{data}}"
#    pushover_devices:
#      - "iphone"#smtp:
#  - id: email
#    smtp_server: mail.example.com
#    smtp_username: test@example.com
#    smtp_password: password
#    from_address: from@email.com
#    smtp_cc:
#      - to@email.com
#    smtp_format: "{{data}}"#custom:
#  - id: webhook
#    custom_webook_url: http://host/api/webhook
#    custom_method: GET
#    custom_format: '{{data}}'
#    custom_headers:
#    Content-Type: application/json
#      X-Api-Key: XXXXX

18. Paste your webhook url

Like this :

1*EnMB8kC558whv4p4FKDXKg

19. You are all set now 😀. Let test our notification system

Example 1:

Note : To get notification on your server, You have to just add 
| notify -silent


1*nnlIMQJ 9JWg97Rjyf3yCw

You can see.. I got notification on our server

1*Qs8 Diu

Example 2:

script

1*17HJOsjlRXK1P26LlS 9lw

You can see I got notification on my server

I hope you got how to implement notification system in you Automation.

More resources to implement notification on telegram/Slack

Thank you for reading till the end, and I’ll see you in next write-up 😄!

You can follow me on Twitter: anubhavsingh_

Cheers.


Originally posted at: https://anubhav-singh.medium.com/notification-system-for-your-bug-bounty-automation-7b13af1b7372

 

click here to read full Article

Read More on Pentesting Tools

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: