scapy's contrib is missing after installing scapy on both windows and fedora

醉酒当歌 提交于 2019-12-06 06:37:52

问题


I have installed scapy both on my windows 7 and my fedora machines. However, the contrib package does not get installed (or at least, it does not appear under my site-packages/scapy package. How can I get it to install?


回答1:


Looking at the zip file provided at http://www.secdev.org/projects/scapy/ I don't see the contrib folder. For some reason it is not bundled into the zip.

You should be able to download the source of Scapy 2.2.0 directly and install that using setup.py, which does has the contrib folder.

You'll need mercurial to clone the code from BitBucket, and update to the v2.2.0 release that is tagged with the update command.

hg clone https://bitbucket.org/secdev/scapy
cd scapy
hg update -r v2.2.0

In addition, you need to add the contrib package to the packages array in setup.py as follows:

packages=['scapy','scapy/arch', 'scapy/arch/windows', 
'scapy/layers','scapy/asn1','scapy/tools','scapy/modules', 'scapy/crypto', 
'scapy/contrib' ]

Once there you should be able to install using python setup.py install and the contrib module should be present.



来源:https://stackoverflow.com/questions/17412909/scapys-contrib-is-missing-after-installing-scapy-on-both-windows-and-fedora

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