mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2025-01-13 23:39:44 +01:00
Standardize tcpdump temporary file creation
This commit is contained in:
parent
14c8781f2d
commit
a68ef39e30
@ -3,14 +3,14 @@ functions:
|
|||||||
execute-non-interactive:
|
execute-non-interactive:
|
||||||
- code: |
|
- code: |
|
||||||
COMMAND='id > /tmp/output'
|
COMMAND='id > /tmp/output'
|
||||||
TF=$(mktemp -u)
|
TF=$(mktemp)
|
||||||
echo "$COMMAND" > $TF
|
echo "$COMMAND" > $TF
|
||||||
chmod +x $TF
|
chmod +x $TF
|
||||||
tcpdump -ln -i lo -w /dev/null -W 1 -G 1 -z $TF
|
tcpdump -ln -i lo -w /dev/null -W 1 -G 1 -z $TF
|
||||||
suid-enabled:
|
suid-enabled:
|
||||||
- code: |
|
- code: |
|
||||||
COMMAND='id > /tmp/output'
|
COMMAND='id > /tmp/output'
|
||||||
TF=$(mktemp -u)
|
TF=$(mktemp)
|
||||||
echo "$COMMAND" > $TF
|
echo "$COMMAND" > $TF
|
||||||
chmod +x $TF
|
chmod +x $TF
|
||||||
sudo tcpdump -ln -i lo -w /dev/null -W 1 -G 1 -z $TF
|
sudo tcpdump -ln -i lo -w /dev/null -W 1 -G 1 -z $TF
|
||||||
|
Loading…
Reference in New Issue
Block a user