savasick / network-bot

Scans info about devices at home network, and give this at telegram bot. Secure by ID

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

network-bot

telegram bot at aiogram3
scans network by python-nmap, and store devices at SQLite
then gets table to bot

1. change config

store telegram TOKEN at .env.example from BotFather
change admin ID with ur ID (u can get it from start command if don't know)
change period of scans at scan.py (optional)

2. install

python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
cp .env.example .env
sudo apt install nmap python3-nmap -y

3. start scan

sudo python3 scan.py

4. start bot

may need new terminal session

# may need
sudo chown $USER:$USER net_devs.db
# start bot
python3 -m bot

About

Scans info about devices at home network, and give this at telegram bot. Secure by ID


Languages

Language:Python 100.0%