Skip to content

Telegram bot for organizing constant monitoring of open ports on the network

License

Notifications You must be signed in to change notification settings

grfc-ru/nmap-telegram-bot

Repository files navigation

Telegram bot for organizing constant monitoring of open ports on the network

GitHub Workflow Status GitHub Docker

Application for organizing constant monitoring of open ports on nodes. Used to monitor erroneous configurations on network equipment or hacker activity.

Simple use

Download the required repository;

$ git clone https://github.com/grfc-ru/nmap-telegram-bot.git

Change conf/config.yaml

Run sudo docker-compose up -d

Configure

app:
  update: 30   #time to rechecking hosts (sec)

telegram:
  token: 244516775:AAGZп55654ASsFFpbjyNA9su6gQU-Qs  #Token for you Telegram BOT
  group: 123456     # Telegram you ID or group ID (use command for BOT /start

scan:
  hosts:
    - host: 8.8.8.0/24      #scan network
      ports:
        - 20-23   
      exclusion:            
        hosts:
          - 8.8.8.1         #exclusion host
        ports:
          - 22              #exclusion port
    - host: google.com      #scan host
      ports:
        - 80                #scan port
        - 443               #scan port

Telegram BOT command

/start  # Print you ID or group ID need you for config
/list   # Print scanning hosts