kyooryu
kyooryu

Reputation: 1509

Scapy and Python 3.2

Will Scapy be compatible with Python 3.2? I've been trying to find some info on how it performs, since the Scapy website has rather scarce (if any) info on Python 3.X compatibility, and I didn't come up with anything informative. Has anyone tried using it on Python 3.X and how did it perform?

Upvotes: 11

Views: 10010

Answers (3)

m01
m01

Reputation: 9375

Intrusive edit: Many answers below are outdated. Scapy now supports Python 3. See https://github.com/secdev/scapy

Python 3 compatibility for parts of Scapy seems to have been attempted.

It's perhaps worth filing a ticket on their bug tracker if there isn't one already (I tried searching and didn't find an obvious one, which I thought was surprising).

Update: https://bitbucket.org/secdev/scapy/issues/5082/compatibility-with-python-3

Upvotes: 5

Pierre
Pierre

Reputation: 6237

For the record, Scapy is now compatible with Python 3, and supports with the same code base (and, obviously, the same API) Python 2.7 and 3.3 to 3.6.

Get the latest version from https://github.com/secdev/scapy or use pip install --pre scapy (or pip3), and try it!

Upvotes: 2

Eriks Dobelis
Eriks Dobelis

Reputation: 913

As the developers stated, they will not port Scapy2 to Python3. I have forked the code for Scapy 2.3.1 and created a version which works with python3. You can install it with pip as scapy-python3 or see the code on https://github.com/phaethon/scapy

Upvotes: 5

Related Questions