Skip to content

nothingbutlucas/notify_me_the_intruders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Notify me the intruders

Script to notify you if they are intruders or new connections on your network using ntfy.sh

Prerequisites / Prerequisitos

Install Nmap

Subcribe to a topic in ntfy.sh If not, you will not receive the notification.

Run Locally

Clone the project

git clone https://github.com/nothingbutlucas/notify_me_the_intruders

Go to the project directory

cd notify_me_the_intruders

Edit the script (I use nvim, but u can use vim or nano)

nvim notify_me_the_intruders.sh

Change the topic variable

topic=YOUR_TOPIC_HERE

Run the script to test it

./notify_me_the_intruders.sh

If it works, create a cron (Every 5 minutes example)

crontab -e
*/5 * * * * /route/to/the/script/notify_me_the_intruders.sh >/dev/null 2>&1

If it doesn't work, check that your topic name doesn't have a special character or a bash reserved character and if it does, change it or find a way to skip it.


Notificame de los intrusos

Script para notificarte de los intrusos o nuevas conexiones en tu red en tu celular usando ntfy.sh

Prerequisitos

Instalar Nmap

Subscribirse a un topico en ntfy.sh Si no, no te va a llegar la notificación

Correr locamente

Clonar el proyecto

git clone https://github.com/nothingbutlucas/notify_me_the_intruders

Ir al directorio del proyecto

cd notify_me_the_intruders

Editar el script (Yo uso nvim, pero usa lo que quieras)

nvim notify_me_the_intruders.sh

Cambia la variable topic

topic=YOUR_TOPIC_HERE

Corre el script para testear que funcione

./notify_me_the_intruders.sh

Si funciona crea un cron (Ejemplo de 5 minutos)

crontab -e
*/5 * * * * /route/to/the/script/notify_me_the_intruders.sh >/dev/null 2>&1

Si no funciona, verifica que el nombre de tu topico no tenga algún caracter especial o uno reservado por bash y si lo tiene cambialo o busca como esquipearlo.

About

An script that can be used like a cron to scan your network and notify you if a new connection have been made

Topics

Resources

License

Stars

Watchers

Forks

Languages