SilkyFalcon

Generation

linuxSat, 03 Dec 2022

send a message to discord if someone tried to connect to ssh from an other country than hungary

journalctl -f -u ssh.service | grep -i "port 22" | grep -v 192.168.0.0 | wget -qO- --post-data '{"content":"SSH login from another country"}' --header 'Content-Type: application/json' https://discordapp.com/api/webhooks/690800743340001300/HriKZpV1Z5CYm7VdlJjKm2cVFbN6h2gCVwcxqZ3_jHrX9-Lp6aWK6UJN6Uohgk_a6GkU

Questions about programming?Chat with your personal AI assistant