Skip to content

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

License

Notifications You must be signed in to change notification settings

BenJamesbabala/pcap2curl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 intedned 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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%