Created
September 3, 2021 19:08
-
-
Save tamr/512aa47ee7278ed1d5c07002d6d6b51a to your computer and use it in GitHub Desktop.
Revisions
-
tamer created this gist
Sep 3, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ #!/bin/bash ip=`echo $SSH_CONNECTION | cut -d " " -f 1` server_ip=`echo $SSH_CONNECTION | cut -d " " -f 3` #server_ip="$(wget -qO- checkip.amazonaws.com)" wget -qO /dev/null --delete-after --no-check-certificate "https://push.re/message?token=AppToken" --post-data "title=SSH+Login+on+$server_ip&message=User+$USER+just+logged+in+from+https://ipapi.co/$ip&priority=5"