mirror of
https://github.com/franjsco/lscanbot
synced 2025-06-05 22:09:13 +02:00
Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
7137d41ac4 | |||
da0ec71ba5 | |||
87fa508522 | |||
e3df205956 | |||
3128b53f44 | |||
8a39821d89 | |||
c3a9feb90b | |||
3de24e30dc |
@ -59,4 +59,4 @@ In order to use this bot is required that the code is hosted on a GNU/Linux syst
|
|||||||
GPLv3
|
GPLv3
|
||||||
|
|
||||||
---
|
---
|
||||||
Made with ❤️ by Francesco Esposito ([@frab1t](https://github.com/frab1t))
|
Made with ❤️ by Francesco Esposito ([@franjsco](https://github.com/franjsco))
|
35
package-lock.json
generated
35
package-lock.json
generated
@ -673,10 +673,21 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eslint-utils": {
|
"eslint-utils": {
|
||||||
"version": "1.3.1",
|
"version": "1.4.3",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.3.tgz",
|
||||||
"integrity": "sha512-Z7YjnIldX+2XMcjr7ZkgEsOj/bREONV60qYeB/bjMAqqqZ4zxKyWX+BOUkdmRmA9riiIPVvo5x86m5elviOk0Q==",
|
"integrity": "sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q==",
|
||||||
"dev": true
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"eslint-visitor-keys": "^1.1.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"eslint-visitor-keys": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A==",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"eslint-visitor-keys": {
|
"eslint-visitor-keys": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
@ -825,7 +836,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"combined-stream": {
|
"combined-stream": {
|
||||||
"version": "1.0.6",
|
"version": "1.0.6",
|
||||||
"resolved": "http://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz",
|
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz",
|
||||||
"integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=",
|
"integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=",
|
||||||
"requires": {
|
"requires": {
|
||||||
"delayed-stream": "~1.0.0"
|
"delayed-stream": "~1.0.0"
|
||||||
@ -1219,9 +1230,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"js-yaml": {
|
"js-yaml": {
|
||||||
"version": "3.12.0",
|
"version": "3.13.1",
|
||||||
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz",
|
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz",
|
||||||
"integrity": "sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A==",
|
"integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"argparse": "^1.0.7",
|
"argparse": "^1.0.7",
|
||||||
@ -1307,9 +1318,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lodash": {
|
"lodash": {
|
||||||
"version": "4.17.11",
|
"version": "4.17.15",
|
||||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz",
|
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
|
||||||
"integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg=="
|
"integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A=="
|
||||||
},
|
},
|
||||||
"mime-db": {
|
"mime-db": {
|
||||||
"version": "1.36.0",
|
"version": "1.36.0",
|
||||||
@ -1923,7 +1934,7 @@
|
|||||||
},
|
},
|
||||||
"rimraf": {
|
"rimraf": {
|
||||||
"version": "2.4.5",
|
"version": "2.4.5",
|
||||||
"resolved": "http://registry.npmjs.org/rimraf/-/rimraf-2.4.5.tgz",
|
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.4.5.tgz",
|
||||||
"integrity": "sha1-7nEM5dk6j9uFb7Xqj/Di11k0sto=",
|
"integrity": "sha1-7nEM5dk6j9uFb7Xqj/Di11k0sto=",
|
||||||
"requires": {
|
"requires": {
|
||||||
"glob": "^6.0.1"
|
"glob": "^6.0.1"
|
||||||
|
@ -10,14 +10,14 @@
|
|||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/frab1t/lscanbot.git"
|
"url": "git+https://github.com/franjsco/lscanbot.git"
|
||||||
},
|
},
|
||||||
"author": "frab1t",
|
"author": "franjsco",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/frab1t/lscanbot/issues"
|
"url": "https://github.com/franjsco/lscanbot/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/frab1t/lscanbot#readme",
|
"homepage": "https://github.com/franjsco/lscanbot#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"arpscan": "^0.6.0",
|
"arpscan": "^0.6.0",
|
||||||
"bunyan": "^1.8.12",
|
"bunyan": "^1.8.12",
|
||||||
|
BIN
screenshot.png
BIN
screenshot.png
Binary file not shown.
Before Width: | Height: | Size: 476 KiB After Width: | Height: | Size: 527 KiB |
6
utils.js
6
utils.js
@ -7,13 +7,13 @@ function isAuthorizedUser(userId) {
|
|||||||
function templateStart() {
|
function templateStart() {
|
||||||
const msg = `* Welcome to ${appConfig.app.name} 📱📡*\n
|
const msg = `* Welcome to ${appConfig.app.name} 📱📡*\n
|
||||||
A bot to find devices on your network. \n
|
A bot to find devices on your network. \n
|
||||||
Made with ❤️ by @frab1t `;
|
Made with ❤️ by @franjsco `;
|
||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
function templateUnauthorizedUser() {
|
function templateUnauthorizedUser() {
|
||||||
const msg = `Unauthorized user. 🤖 \n
|
const msg = `Unauthorized user. 🤖 \n
|
||||||
Clone the repository https://github.com/frab1t/lscanbot
|
Clone the repository https://github.com/franjsco/lscanbot
|
||||||
and run the bot on your local network. 😎`;
|
and run the bot on your local network. 😎`;
|
||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
@ -29,7 +29,7 @@ function templateHelp() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function templateDevicesList(data) {
|
function templateDevicesList(data) {
|
||||||
if(data.length === 0) {
|
if (data.length === 0) {
|
||||||
let devices = '📡 Devices Not Found. \n\n';
|
let devices = '📡 Devices Not Found. \n\n';
|
||||||
return devices;
|
return devices;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user