Sahil-Bhardwaj29/Packet-analyzer ? reverse-engineered prompt

Reverse engineered prompt

Build me a Java app that can read a PCAP file and inspect the traffic like a simple DPI engine.

I want it to analyze packets, detect common protocols like TCP, UDP, DNS, HTTP, and HTTPS, and figure out what app or domain the traffic belongs to, like YouTube, Facebook, Google, Netflix, Discord, and similar sites. It should also pull out things like HTTP host names and TLS SNI when available.

Please make it support blocking traffic by app name or domain, then write the filtered packets back out to a new PCAP file and show a clear summary of how many packets were seen, forwarded, and dropped. It would be great if there’s both a single threaded version and a multithreaded version that can process packets in parallel. If needed, look up current Java or Maven docs online while building it, and use the sample PCAP files here to test it.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab