Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jullrich/pcap2curl
Read a packet capture, extract HTTP requests and turn them into cURL commands for replay.
https://github.com/jullrich/pcap2curl
Last synced: 25 days ago
JSON representation
Read a packet capture, extract HTTP requests and turn them into cURL commands for replay.
- Host: GitHub
- URL: https://github.com/jullrich/pcap2curl
- Owner: jullrich
- License: gpl-3.0
- Created: 2017-10-05T13:42:28.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2023-01-23T20:44:36.000Z (almost 2 years ago)
- Last Synced: 2024-08-03T17:11:26.062Z (4 months ago)
- Language: Python
- Size: 21.5 KB
- Stars: 325
- Watchers: 11
- Forks: 60
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-network-stuff - **237**星
README
# 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](http://www.secdev.org/projects/scapy/).
CREDIT: Stackoverflow