2018-08-17 17:16:09 +02:00
|
|
|
---
|
2018-09-07 13:01:23 +02:00
|
|
|
description: These require some traffic to be actually captured. Also note that the subprocess is immediately sent to the background.
|
2018-08-17 17:16:09 +02:00
|
|
|
functions:
|
2018-10-05 19:55:38 +02:00
|
|
|
command:
|
2018-08-19 10:31:04 +02:00
|
|
|
- code: |
|
2018-09-07 00:29:58 +02:00
|
|
|
COMMAND='id'
|
2018-08-19 12:24:13 +02:00
|
|
|
TF=$(mktemp)
|
2018-08-19 10:31:04 +02:00
|
|
|
echo "$COMMAND" > $TF
|
|
|
|
chmod +x $TF
|
|
|
|
tcpdump -ln -i lo -w /dev/null -W 1 -G 1 -z $TF
|
2018-10-05 19:55:38 +02:00
|
|
|
sudo:
|
2018-08-19 10:31:04 +02:00
|
|
|
- code: |
|
2018-09-07 00:29:58 +02:00
|
|
|
COMMAND='id'
|
2018-08-19 12:24:13 +02:00
|
|
|
TF=$(mktemp)
|
2018-08-19 10:31:04 +02:00
|
|
|
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
|
|
|
---
|