In the last blog I posted about the free VPS setup and got amazing response.
So in this Blog I am going to show you how to get notifications on your phone while your scripts are running on the VPS, so you don’t miss any updates.
Suppose you have a script like this:
Now we run this script on the VPS
Now you will receive a notification on your discord as per your script as you can see:
Now we are going to learn how to do this
First Create a discord server:
Click on Create My Own
Now add a text channel to your server and make it a private channel
Now Click on Edit channel
Go to Integrations and Click on Create webhook
Now You Can Edit The Bot As Per Your Preferences
Now copy the webhook URL and click on save changes
Now You have to install a tool Notify
Command: go install github.com/projectdiscovery/notify/cmd/notify@latest
In the Tool Description they have provided with a config file
Which can be created at $HOME/.config/notify/provider-config.yaml
With the following content
You can comment out everything except the discord part
#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}}"
#s discord_webhook_url: "https://discord.com/api/webhooks/XXXXXXXX"
#telegram:
# - id: "tel"
# telegram_api_key: "XXXXXXXXXXXX"
# telegram_chat_id: "XXXXXXXX"
# telegram_format: "{{data}}"
# telegram_parsemode: "Markdown" # None/Markdown/MarkdownV2/HTML (https://core.telegram.org/bots/api#formatting-options)
#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: [email protected]
# smtp_password: password
# from_address: [email protected]
# smtp_cc:
# - [email protected]
# smtp_format: "{{data}}"
# subject: "Email subject"
# smtp_html: false
#smtp_disable_starttls: false
#googlechat:
# - id: "gc"
# key: "XXXXXXXX"
# token: "XXXXXX"
# space: "XXXXXX"
# google_chat_format: "{{data}}"
#teams:
# - id: "recon"
# teams_webhook_url: "https://<domain>.webhook.office.com/webhookb2/xx@xx/IncomingWebhook/xx"
# teams_format: "{{data}}"
#custom:
# - id: webhook
# custom_webhook_url: http://host/api/webhook
# custom_method: GET
# custom_format: '{{data}}'
# custom_headers:
# Content-Type: application/json
# X-Api-Key: XXXXX
#
#custom:
# - id: webhookJson
# custom_webhook_url: http://host/api/webhook
# custom_headers:
# Content-Type: application/json
# X-Api-Key: XXXXX
#custom:
# - id: webhook
# custom_webhook_url: http://host/api/webhook
# custom_method: GET
# custom_sprig: '{"text":"{{ .url }}"}'
# custom_headers:
# Content-Type: application/json
# X-Api-Key: XXXXX
Now you can paste your webhook URL here
notify --silent
You can see I got the notification
subfinder -d hackerone.com | notify
On running this command:
Please Consider following and liking.
You can also support me through: