Skip to content

This bot will notify about new template of Nuclei

Notifications You must be signed in to change notification settings

antqt/Security-Alert

Repository files navigation

Security Alert

This bot will notify the new update of the URL on telegram.

Getting Started

  • Create a bot on telegram

    Click this link and it will open your telegram client and start a chat with the BotFather. Send the message “/newbot” (no quotes) and follow the instructions.

    Untitled

  • Install telegram-send and link it to your bot

    To install, open a terminal and run pip install telegram-send followed by telegram-send configure

    telegram-send will ask for the token you got from the botfather, and then give you a password that you need to message to your new bot on Telegram.

    Untitled

    Create a group and add your bot then send the password.

    Untitled

    Untitled

    The bot added to your group can’t send messages, therefore we need to promote it to admin.

    Untitled

  • Create the configuration file for the URL with the format:

host: {The domain of the url}
tuple_location: {The head and tail the tuple}
link_location: {The location of the token to locate the link inside the tuple}
name_location: {The location of the token to locate the name inside the tuple}
pages: {The parameter of the pages, can leave blank if there only one page}
empty_page: {The string of the 404 page (to locate all the pages)}
report_location: {the location to save the record}

For example github.yaml:

host: 'https://github.com' #the url
tuple_location: '"pull_request"(.*)</a>' #Between red boxs
link_location: 'href="(.*)"' #Between yellow boxs
name_location: '">(.*)' #Between green boxs
pages: '?page=' #In cyan box
empty_page: 'There aren’t any open pull requests.' #string in 404 page
report_location: 'reports/github_report.yaml' #location to save record

Untitled

  • Store the URL and the configuration in links.yaml
#links : profile
'https://github.com/projectdiscovery/nuclei-templates/pulls' : 'github.yaml'
'https://wordpress.org/news/category/security/' : 'wordpress.yaml'
  • Run the python file app.py
python3 app.py

If there is any new update, the bot will notify on your telegram

Untitled

About

This bot will notify about new template of Nuclei

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages