From 5b79154cf1c34e7037cae058cb29ff699b106a28 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Fri, 7 Sep 2018 00:29:58 +0200 Subject: [PATCH] Avoid output file for tcpdump --- _gtfobins/tcpdump.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_gtfobins/tcpdump.md b/_gtfobins/tcpdump.md index 3df01aa..e3ec96f 100644 --- a/_gtfobins/tcpdump.md +++ b/_gtfobins/tcpdump.md @@ -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: execute-non-interactive: - code: | - COMMAND='id > /tmp/output' + COMMAND='id' TF=$(mktemp) echo "$COMMAND" > $TF chmod +x $TF tcpdump -ln -i lo -w /dev/null -W 1 -G 1 -z $TF sudo-enabled: - code: | - COMMAND='id > /tmp/output' + COMMAND='id' TF=$(mktemp) echo "$COMMAND" > $TF chmod +x $TF