pcap2curl: Read a packet capture, extract HTTP requests
pcap2curl
Read a packet capture, extract HTTP requests and turn them into cURL commands for replay.
This is a simple (too simple?) Python script that will read a pcap, find HTTP requests and turn them into cURL commands for replay.
Little effort is made to verify that the requests are valid. This is intended to extract well-formed requests that were created by your browser. Not necessarily intended for malicious requests. It also does not reassemble TCP streams (yet). Browsers typically send requests as one packet, but large requests will fail.
Download
git clone https://github.com/jullrich/pcap2curl.git
Usage
./pcap2curl.py inputfilename