We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
尝试 scapy。它是一个非常强大的程序,用于数据包检查、操作和创建。
您可以使用它构建您自己的工具。
Try scapy. It is a very powerful program for packet inspection, manipulation and creation.
You can use it to build your own tools.
我尝试过,然后尝试了 pcapy。我选择 pcapy 是因为我的使用类似于我在谷歌上找到的示例。
http://snipplr.com/view/3579/live-packet-capture -in-python-with-pcapy/ (或参见下面复制的相同代码)
I tried that and then tried pcapy. I choose pcapy because my use was similar to an example which I found googling.
http://snipplr.com/view/3579/live-packet-capture-in-python-with-pcapy/ (or see the same code copied below)
我推荐你使用Pyshark。这是 tshark 的包装。它还支持所有 tshark 过滤器、解码器库……并且易于使用!
这是一个很棒的包,用于解析 .pcap 文件和实时捕获
https://pypi.python.org/pypi/ pyshark
示例代码(来自链接):
I recommend you to use Pyshark. this is wrapper for tshark. it also support all of tshark filter, decoder lib, ... and easy to use!
This is a great package for parsing .pcap file and also livecapturing
https://pypi.python.org/pypi/pyshark
sample code (from the link):
也可以使用
pycapfile
。链接到pip
:https://pypi.python.org/pypi/pypcapfile< /a>pycapfile
can be also used. Link topip
: https://pypi.python.org/pypi/pypcapfile