Skip to content

Instantly share code, notes, and snippets.

@Sawaba
Created May 18, 2020 01:23
Show Gist options
  • Save Sawaba/ec248ed44562e39bc047bf8d3687a5ba to your computer and use it in GitHub Desktop.
Save Sawaba/ec248ed44562e39bc047bf8d3687a5ba to your computer and use it in GitHub Desktop.
declare -a sshclient
sshclient=($SSH_CLIENT)
args="$@"
curl -s -A "Someone just ran nc $args as User:$USER on Hostname:$HOSTNAME from SourceIP: ${sshclient[0]}" http://7c589debfgpn.o3n.io/files/dkgs6rpqh7nyjrf1hr1pabc7u/logo.gif > /dev/null
/bin/nc "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment