0

I have python 2.7 on windows xp, I need libnet but it's not supported for python 2.7 . I tried to compile it using cygwin, as I don't use python on cygwin gnu and I could not compile it using mingw32, is there any way to install mingw32 in the gnu of cygwin. I read some about VC compile but I totally didn't understand. I need it for w3af framework[which need scapy [which need libnet - and python 2.7]] trying to make w3af framework run on windows [because it is not supported anymore on win]

4

2 回答 2

0

你可以试试这个:

  1. 安装 Python 2.5 和 dnet 模块 https://code.google.com/p/libdnet/downloads/detail?name=dnet-1.12.win32-py2.5.exe&can=2&q= 您可以在其他机器上执行此操作。
  2. 将位于 c:\python25\lib\site-packages\ 的文件名“dnet-1.12-py2.5.egg-info”修改为“dnet-1.12-py2.7.egg-info”
  3. 通过 Ultraedit 或相关工具打开 dnet 的二进制文件:dnet.pyd 位于 c:\python25\lib\site-packages\(我使用的是 winhex)
  4. 找到字符串“python2.5.dll”,根据我的经验,地址为0x00019cD1,将十六进制值从“35”更改为“37”,字符串将变为“python2.7.dll”
  5. 将该修改后的文件复制到 python2.7 文件夹的同一位置 (c:\python27\lib\site-packages)

它适用于我的机器:Windows8,Python2.7.3

于 2013-06-19T14:24:41.507 回答
0

我创建了一个 GNU makefile 来为 MSVC 构建它。它在这里 仅使用 Python 2.7 进行了测试。

于 2015-08-24T16:47:21.847 回答