Skip to content
Read a packet capture, extract HTTP requests and turn them into cURL commands for replay.
Branch: master
Clone or download
Latest commit 1e81817 Jan 16, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Added basic .gitignore Oct 20, 2017
LICENSE
README.md Added link to Scapy. which @jullrich informed me is not to be confuse… Oct 6, 2017
TODO Add method validation Oct 18, 2017
pcap2curl.py Add method validation Oct 18, 2017
setup.py Added setup.py script Oct 20, 2017

README.md

pcap2curl

Read a packet capture, extract HTTP requests and turn them into cURL commands for replay.

See https://isc.sans.edu/diary.html?storyid=22900

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.

DISCLAIMER: I am not a Python coder. I do not like Python. I have to use it once in a while because I love Scapy.

CREDIT: Stackoverflow

You can’t perform that action at this time.