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

让人想犯罪 __ 提交于 2019-12-04 14:45:28

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.

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