Fix markdown and add missing -E param to sudo.

This commit is contained in:
pancho horrillo
2019-09-06 13:54:43 +02:00
parent b577dd93d3
commit 479e3cb13b
+3 -2
View File
@@ -3,10 +3,11 @@ Remote tcpdump sniffer with source filtering
1. Add any filter you want to the `tcpdump` command inside `tcpdump.pow` to filter 1. Add any filter you want to the `tcpdump` command inside `tcpdump.pow` to filter
any traffic you don't want to be sniffed! any traffic you don't want to be sniffed!
2. For the sake of simplicity, run `sudo kapow server tcpdump.pow`. In a 2. For the sake of simplicity, run `sudo -E kapow server tcpdump.pow`. In a
production environment, `tcpdump` should be run with the appropiate permissions, production environment, `tcpdump` should be run with the appropiate permissions,
but kapow can (and should) run as an unprivileged user. but kapow can (and should) run as an unprivileged user.
3. In your local machine run: ```bash 3. In your local machine run:
```bash
curl http://localhost:8080/sniff/<network-interface> | sudo -E wireshark -k -i - curl http://localhost:8080/sniff/<network-interface> | sudo -E wireshark -k -i -
``` ```
Again, for the sake of simplicity, `Wireshark` is running as root. If you don't want Again, for the sake of simplicity, `Wireshark` is running as root. If you don't want