我试着用替罪羊来对付win32 python2.7
我已经编译了所有其他的依赖项,期望这个依赖项
在实现这个可执行文件的目标方面能有所帮助吗?dnet-1.12.win32-py2.7.exe
(我保证更新这个问题和替罪羊手册,
更新:
我已经成功地用mingw32编译了它,我使用的是vs2005,我必须对libdnet做一些修复才能真正工作(看上去他们上次在windows上编译它是用vs6.0编写的)。
我会尝试更新替罪羊手册..。(并将可执行文件上传到那里)
发布于 2011-10-19 08:57:01
你看过自述文件了吗?从http://prdownloads.sourceforge.net/libdnet/libdnet-1.11.tar.gz?download下载源tarball,解压它并参见自述:
Windows 2000/XP
---------------
For raw Ethernet sending, install the WinPcap driver and DLLs, and
extract their developer pack to a build directory:
http://winpcap.polito.it/install/default.htm
# XXX - unsupported for now
# For tunnel interface support, install the OpenVPN "TAP-Win32 Virtual
# Ethernet Adapter" component (their Windows installer will let you
# install it alone):
#
# http://openvpn.sourceforge.net/
For firewall support, install HSC's PktFilter service:
http://www.hsc.fr/ressources/outils/pktfilter/index.html.en
Most Windows developers should just use the libdnet developer's pack
(with MinGW and MSVC++ libraries) instead of building it themselves.
But for those who really want to know...
To build a MinGW native library (under Cygwin+MinGW):
./configure && make
To build a Microsoft Visual C++ native library and Python module
(again, under Cygwin+MinGW):
./configure
cd python && C:/Python23/python.exe setup.py build
cd ../src && lib /out:dnet.lib *.obj正如您最可能注意到的,您将需要Cygwin+MinGW。我不知道您想要的是MinGW本机库还是MicrosoftVisualC++本机库。还要注意,您必须使用C:/Python27 27/python.exe来构建它。
如果您尝试这样做,我想您可以想出一个具体的问题,我想这是您最有可能(但不是100% )必须提出的问题,最好把它放到一个新的问题中,如果您有编译问题,最好询问libdnet的邮件列表。
发布于 2014-04-24 20:35:50
德克损失提供了一个用于Python 2.7的dnet包的Windows安装程序。与用于Python2.7的pypcap包的Windows安装程序一起,我能够在WindowsPython2.7上成功地运行Scapy。
https://stackoverflow.com/questions/7817926
复制相似问题