mirror of
https://github.com/franjsco/lscanbot
synced 2024-12-26 15:03:25 +01:00
Mirror (https://github.com/franjsco/lscanbot)
config.json | ||
db.js | ||
index.js | ||
LICENSE | ||
logger.js | ||
package-lock.json | ||
package.json | ||
README.md | ||
scanner.js | ||
utils.js |
lscanbot
An opensource telegram bot written in Node.js to scan your LAN.
Usage
lscanbot scans devices with arp-scan, showing only devices registered in the inventory.
Before scanning, you must insert the devices into the inventory (to track it):
/add [Device name] ; [Owner] ; [MAC Address]
(use ;
to split arguments)
After that, you can scan:
/scan
It will send back the devices connected to your network.
Installation
In order to use this bot is required that the code is hosted on a linux system connected to your LAN (Raspberry Pi would be a good choice)
Prerequisites
- Node.js
- npm
- GNU/Linux
Step by step
- Install arp-scan package on your linux system.
- Configure arp-scan to use without sudo.
(
chmod u+s
) - Clone this repository on your system.
- Install dependeces with
npm install
. - Create new bot with BotFather on Telegram.
- Insert your token (app.token) into
config.json
. - Insert your TelegramID (app.authorizedUsers) into
config.json
. - Insert your network device (scanner.interface) int
config.json
. - Start with
npm start
.
License
GPLv3
Made with ❤️ by Francesco Esposito (@f3sposito)