Files
kapow/examples/advanced/03_NetworkSniffer/README.md
pancho horrillo 26fa12c871 doc: drop mentions to .pow files ($deity REST their soul)
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2020-12-24 14:03:49 +01:00

23 lines
571 B
Markdown

# Network Sniffer (tcpdump) as a Service
Provides an HTTP service that allows the user to sniff the network in real time. The packet capture data is served as an HTTP stream that can be injected to a packet analysis tool on the fly.
## How to run it
For the sake of simplicity, run:
```
$ sudo -E kapow server NetworkSniffer
```
In a production environment, tcpdump should be run with the appropiate
permissions, but kapow can (and should) run as an unprivileged user.
## How to consume it
```
$ curl http://localhost:8080/sniff | sudo -E wireshark -k -i -
```