Here I brought to you a tiny tool ( redone in GO ) that I made to create notifications on the fly via
telegram bot api, which helps you to make scripts and notify out some events.
For example, I use this tool to manage my
own collaborator, which will shout out the
DNS hits made to my collab.
Normally I use this to clear the checklist: (DNS interaction HIT, SSRF, bXSS, etc).
Very useful (at least for me) for bug bounties and CTF’s :D
Remember to have the $GOPATH/bin on your $PATH
go get -u github.com/jcatala/gqm mkdir ~/.config/gqm/ vim ~/.config/gqm/gqm.ini
The config file must be something like this:
apikey = YOUR TOKEN THAT BOTHFATHERS GIVES TO YOU
gqm will automatically update the chat_id on the config file, that must match the last update from the bot. Sometimes the bot does not have new
updates, so it fails at the
chat_id fetch, that0s the reason why I save it on the
- The config file must be look something like this:
~ cat .config/gqm/gqm.ini apikey = the one that the botfather gives to you
gqmwill update the
chat idautomatically, you need to talk to the bot before running
gqm, just to have some updates to get the correct last chat id.
- The most easy to use that I could:
➜ ~ gqm -h Usage of gqm: -debugInfo To get debug information -follow To keep the stdin open -markdown Force markdown on the entire message, if is not, do it by yourself adding backquotes -verbose To be verbose
- NOTE: The default format of the message is
MARKDOWN, if you use the
backquotesare automatically added, if not, you need to handle it by yourself adding it.
- I have the bot running on DNS hits on my collab, the following command will do the work:
tail -n 0 -f /var/log/named/query.log | grep --line-buffered "your-desire-domain.com" | gqm -markdown -follow
I don’t recommend to grep over your main domain, because sometimes,
scanners/chineses will fukk your bot up 😶
Any question/suggestion, please, contact me via twitter 👀