HarshadJha/Packet-Analyzer — reverse-engineered prompt
Reverse engineered prompt
Build me a JavaScript Node app that works like a simple deep packet inspection packet analyzer.
I want to give it a PCAP file from Wireshark, have it read each packet, understand basic Ethernet, IPv4, TCP, and UDP traffic, then look inside common traffic enough to identify domains from TLS SNI, HTTP Host headers, and DNS queries. It should be able to recognize obvious app categories like YouTube or Facebook from domains, apply blocking rules by IP address, domain, or app name, and write a new filtered PCAP that leaves blocked traffic out.
Please also make a command line flow that prints a clear summary report showing packets processed, allowed, blocked, domains found, apps detected, and connections tracked. Include a small sample capture or generator so I can test it right away, plus simple run instructions in the README. Keep the code organized and readable so a beginner can understand how a packet moves through the system.
Want more depth? Deep Reverse