Scapy and Python 3.2

橙三吉。 提交于 2019-12-09 15:39:51

问题


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?


回答1:


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




回答2:


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




回答3:


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!



来源:https://stackoverflow.com/questions/9502645/scapy-and-python-3-2

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