jullrich / pcap2curl Goto Github PK
View Code? Open in Web Editor NEWRead a packet capture, extract HTTP requests and turn them into cURL commands for replay.
License: GNU General Public License v3.0
Read a packet capture, extract HTTP requests and turn them into cURL commands for replay.
License: GNU General Public License v3.0
Hi Johannes,
Raspberry Pi running Raspbian Jessie
After installing, scapy
is found in $PATH OK. Is pcap2curl
or pcap2curl.py
supposed to be found in $PATH?
Here's what I've done so far:
$ python3 --version
Python 3.4.2
$ sudo pip3 install --upgrade pip setuptools wheel
(successful install)
$ sudo pip3 install scapy
(version 2.4.0 was installed)
$ type scapy
/usr/local/bin/scapy
$ wget https://github.com/jullrich/pcap2curl/archive/master.zip
$ mv -i master.zip pcap2curl-master.zip
$ unzip pcap2curl-master.zip
$ cd pcap2curl-master/
$ sudo python3 setup.py install
(successful install)
$ type pcap2curl
-bash: type: pcap2curl: not found
$ type pcap2curl.py
-bash: type: pcap2curl.py: not found
$ sudo find /usr -type f -name "pcap2curl*"
/usr/local/lib/python3.4/dist-packages/pcap2curl-0.1-py3.4.egg
$ cd /usr/local/lib/python3.4/dist-packages/
$ ls -l
total 52
-rw-r--r-- 1 root staff 26 Apr 8 16:16 easy-install.pth
-rw-r--r-- 1 root staff 126 Apr 8 16:12 easy_install.py
-rw-r--r-- 1 root staff 1038 Apr 8 16:16 pcap2curl-0.1-py3.4.egg
drwxr-sr-x 11 root staff 4096 Apr 8 16:12 pip
drwxr-sr-x 2 root staff 4096 Apr 8 16:12 pip-9.0.3.dist-info
drwxr-sr-x 5 root staff 4096 Apr 8 16:12 pkg_resources
drwxr-sr-x 2 root staff 4096 Apr 8 16:12 __pycache__
drwxr-sr-x 9 root staff 4096 Apr 8 16:15 scapy
drwxr-sr-x 2 root staff 4096 Apr 8 16:15 scapy-2.4.0.dist-info
drwxr-sr-x 6 root staff 4096 Apr 8 16:12 setuptools
drwxr-sr-x 2 root staff 4096 Apr 8 16:12 setuptools-39.0.1.dist-info
drwxr-sr-x 5 root staff 4096 Apr 8 16:12 wheel
drwxr-sr-x 2 root staff 4096 Apr 8 16:12 wheel-0.31.0.dist-info
$
Current behaviour:
Seems that any input generates "https" output
Desired:
User may indicate which scheme they want in the generated URL: http/https.
Thanks for making this script. Can I know what inputfile the program requires? Thanks :)
from scapy.layers.inet import IP, UDP, wrpcap, Ether
At a glance, this would run fine in Python3 if the print statements used parentheses. Please consider updating your syntax to work with modern Python versions.
Thanks!
P.S. If you'd prefer this suggestion in the form of a pull request, I'll gladly oblige.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.