Files
kapow/examples/advanced/03_NetworkSniffer
Roberto Abdelkader Martínez Pérez 04e855c74d tcpdump example
2020-01-28 07:47:28 +01:00
..
2020-01-28 07:47:28 +01:00
2020-01-28 07:47:28 +01:00

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.pow

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 -