pcap2curl icon indicating copy to clipboard operation
pcap2curl copied to clipboard

How to launch pcap2curl?

Open UNIVAC-Colonel-Panic opened this issue 7 years ago • 2 comments

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
$

UNIVAC-Colonel-Panic avatar Apr 08 '18 23:04 UNIVAC-Colonel-Panic

On a Debian computer I did

sudo apt install python-scapy
chmod a+x pcap2curl.py 
./pcap2curl.py ~/foo.pcap

to get curl commands.

stappersg avatar Mar 06 '21 18:03 stappersg

It seems to require python3 so I had to do: sudo apt install python3-scapy chmod a+x pcap2curl.py python3 ./pcap2curl.py ~/foo.pcap

but still get no output or any error message.

snbuch avatar Jan 10 '22 16:01 snbuch