Go to file
dependabot[bot] c3a9feb90b
Bump eslint-utils from 1.3.1 to 1.4.3
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.3.1 to 1.4.3.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases)
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.3.1...v1.4.3)

Signed-off-by: dependabot[bot] <support@github.com>
2019-10-29 12:55:22 +00:00
.gitignore add .gitignore 2019-02-12 21:50:37 +01:00
LICENSE Initial commit 2018-09-24 21:21:53 +02:00
README.md edit user ref 2019-07-23 22:21:23 +02:00
config.json Initial commit 2018-09-24 21:21:53 +02:00
db.js Initial commit 2018-09-24 21:21:53 +02:00
index.js refactoring promises 2019-02-12 22:15:43 +01:00
logger.js Initial commit 2018-09-24 21:21:53 +02:00
package-lock.json Bump eslint-utils from 1.3.1 to 1.4.3 2019-10-29 12:55:22 +00:00
package.json edit user ref 2019-07-23 22:21:23 +02:00
scanner.js refactoring promises 2019-02-12 22:15:43 +01:00
screenshot.png edit user ref 2019-07-23 22:21:23 +02:00
utils.js edit user ref 2019-07-23 22:21:23 +02:00

README.md

lscanbot

An opensource telegram bot to find devices on your LAN.

The bot is written in Node.js.

Usage

lscanbot scans devices with arp-scan, showing only devices registered in the inventory.

Scan

Before scanning, you must insert the devices into the inventory (to track it):

/add [Device name] ; [Owner] ; [MAC Address]

(use ; to split arguments)

example: (/add My device; Me; AB:CC:MY:MC:AD)

After that, you can scan:

/scan

It will send back the devices connected to your network.

Remove

/remove [MAC Address]

Installation

In order to use this bot is required that the code is hosted on a GNU/Linux system connected to your LAN (Raspberry Pi would be a good choice)

Prerequisites

  • Node.js
  • npm
  • GNU/Linux

Step by step

  1. Install arp-scan package on your linux system.
  2. Configure arp-scan to use without sudo. (chmod u+s)
  3. Clone this repository on your system.
  4. Install dependecies with npm install.
  5. Create new bot with BotFather on Telegram.
  6. Insert your token (app.token) into config.json.
  7. Insert your TelegramID (app.authorizedUsers) into config.json.
  8. Insert your network device (scanner.interface) into config.json.
  9. Start with npm start.

License

GPLv3


Made with ❤️ by Francesco Esposito (@frsposito)