Scapy and Python 3.2

别说谁变了你拦得住时间么 提交于 2019-12-04 01:51:41
m01

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

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

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!

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!