使用 Python 2.7 在 Windows 上运行 Scapy [英] Running Scapy on Windows with Python 2.7

查看:48
本文介绍了使用 Python 2.7 在 Windows 上运行 Scapy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢在 Windows 7 下使用 Scapy 和 Python v2.7.

I like to use Scapy with Python v2.7 under Windows 7.

  • 如何为 Python 2.7 安装所需的模块 pypcap?
  • 是否可以使用 py2exe 等分发工具将依赖于 Scapy 的 Python 脚本制作成独立的 Windows 应用程序?

我使用的特定 Python 发行版是 Enthought Python 发行版 7.02.

The particular Python distribution I am using is Enthought Python distribution 7.02.

推荐答案

侵入性更新:请注意此答案过时,最新版本 (>=2.4.0) scapy将只需要 Npcap(或 Winpcap)工作,以及控制台的 IPython.查看官方窗口页面

Intrusive update: please note that this answer is outdated, with recent versions (>=2.4.0) scapy will ONLY require Npcap (or Winpcap) to work, and IPython for the console. Have a look at the official windows page

如果有人需要 Scapy for 64 位 + Python 2.7,我已经在此处上传了二进制文件:

In case someone needs Scapy for 64-bit + Python 2.7, I've uploaded the binaries here:

此外,您可能需要从 WinPcaprel="noreferrer">官方网站

In addition, you probably need to install WinPcap from the official site

自己编译需要一些修复 - 我很快就会将它们提交给上游.

Compiling it yourself required a few fixes - I'll commit them upstream soon.

这篇关于使用 Python 2.7 在 Windows 上运行 Scapy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆