Projects
110 · Security · Network
Net Traffic Analyzer
A tool that reads packet captures and reports who talks to whom and what travels unencrypted on the network.
Problem
I could read Wireshark's output but didn't really know what the bytes were. So I decided to parse every header myself, without a packet library.
What I did
- Wrote the protocol decoders by hand, from Ethernet and TCP up to HTTP, TLS, DNS and MQTT.
- Added rules that find problems like cleartext passwords, unencrypted MQTT, port scans and ARP poisoning.
- Besides console, JSON and HTML reports, wrote a compare command that puts two captures side by side.
Flow
- Packet capture
- Decoders
- Stream reassembly
- Finding rules
- Report
Result
On the sample captures that ship with the project, one table shows the difference: with plain MQTT the passwords and readings are readable, with TLS they aren't. Secrets it finds are masked in reports by default.