How to get the discord notification with notify tool

Last updated on July 9th, 2024 at 12:34 pm

Hi, Naga Sai Kiran Today we are discussing notify tool. This is just a small blog.

go version

If Golang is not installed you can install it by following this command

sudo apt install golang-go

Now we need to install the notify by following this command

go install -v github.com/projectdiscovery/notify/cmd/notify@latest
root@wsl:~# go install -v github.com/projectdiscovery/notify/cmd/notify@latest
go: downloading github.com/projectdiscovery/notify v1.0.6
go: downloading github.com/containrrr/shoutrrr v0.7.1
go: downloading github.com/projectdiscovery/utils v0.0.76
go: downloading github.com/projectdiscovery/goflags v0.1.38
go: downloading github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d
go: downloading go.uber.org/ratelimit v0.3.0
go: downloading github.com/Masterminds/sprig v2.22.0+incompatible
go: downloading github.com/oriser/regroup v0.0.0-20210730155327-fca8d7531263
---
---
---
github.com/alecthomas/chroma/lexers/s
github.com/projectdiscovery/gologger/writer
github.com/projectdiscovery/gologger
github.com/alecthomas/chroma/lexers
github.com/alecthomas/chroma/quick
github.com/charmbracelet/glamour/ansi
github.com/charmbracelet/glamour
github.com/projectdiscovery/utils/update
root@wsl:~#

then move the notify binary to /usr/local/bin

cp ~/go/bin /usr/local/bin
notify -h

we need to configure notify with discord

if provider-config.yaml file doesn’t exist

we can create a file by using touch command

touch /root/.config/notify/provider-config.yaml

Now click on this URL

https://github.com/projectdiscovery/notify?tab=readme-ov-file#provider-config

There are many ways to configure but now we are only configure with discord. once blog is over I have deleted this channel

discord:
  - id: "crawl"
    discord_channel: "blog-purpose"
    discord_username: "nagasaikiran"
    discord_format: "{{data}}"
    discord_webhook_url: "https://discord.com/api/webhooks/1249186612903153765/aY-4n5m4sQ8mPpAT0LssLaeBUl_m4o3_EVl750bIESTJdA3iYiblK0GVUReQMc86zo3r"

Thanks for reading

Happy Hacking!!!!

Reference :

https://github.com/projectdiscovery/notify

NahamSec video : https://www.youtube.com/watch?v=wP3n1JnqtMU

Leave a Comment

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

Scroll to Top