AyushShende2679/DPI-System ? reverse-engineered prompt
Reverse engineered prompt
Build me a C++17 deep packet inspection tool that reads a PCAP file, inspects the packets, and figures out the destination app or domain from TLS SNI and HTTP Host headers.
I want it to keep track of each connection by 5 tuple, apply simple blocking rules for app name, domain pattern, or IP address, and write the allowed traffic back out to a new PCAP file. Please include both a simple single threaded version and a faster multithreaded version that uses a load balancer and worker threads.
Make it easy to run on Windows, with a simple build script and a sample test capture I can try right away. If you need to check any current docs or compiler details while wiring it up, go ahead and look them up online.
Are you gonna build this?
make sure you review the code using coderabbit