ozaydin.dev

Open to long-term internships

Writing

A tool that reads packet captures: net-traffic-analyzer

I wrote a tool that reads packet capture files and shows who talks to whom and what travels unencrypted on the network.

net-traffic-analyzer (nta for short) is an analysis tool that reads pcap and pcapng files. It answers three questions: who talks to whom, which protocols are in use, and what travels unencrypted on the network. It writes the result into a report. In the report, findings such as plaintext passwords or unencrypted MQTT are listed with their reasons and suggested fixes.

Writing everything by hand

I wrote all the protocol decoders by hand and did not use a ready-made packet library. That was the real point of the project: seeing where the bytes sit inside a packet. The capture file is never loaded into memory whole; frames are read one by one.

Samples and limits

The sample captures in the repo are synthetic; they were built byte by byte and no real network was sniffed. One of the samples is a pair of captures where the same sensors talk over plain MQTT and over TLS. In one the password is readable, in the other only encrypted records show up.

The tool is only for networks the user owns or is authorized to monitor. It also masks any secrets it finds by default.

Related project · 110 Net Traffic Analyzer A tool that reads packet captures and reports who talks to whom and what travels unencrypted on the network.