首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > py3kcap

py3kcap

  • 资源大小:2.94 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

Overview py3kcap is a simple libpcap interface for python 3.2. The intent is to provide both a object oriented and structured interface to libpcap for python3. The current version is only tested on linux and seems to also work on 3.1. Install tar xzf py3kcap.tar.gz cd py3kcapsudo python3 setup.py install ### Todo ### Implement file operations Fix OSX segfault issues modify setup to build for each OS Improve code documentation Example Use Python 3.1.3 (r313:86834, Nov 28 2010, 10:01:07) [GCC 4.4.5] on linux2Type "help", "copyright", "credits" or "license" for more information.>>> from py3kcap import pycap>>> import sys>>> packet = pycap(interface="eth0",count=1)>>> for data in packet:... for i in data:... sys.stdout.write(hex(i))... 0x030x030xc30x9f40xf040x13

文 件 列 表

py3kcap-0.1
pcap_func.py
pcap_struct.py
PKG-INFO
py3kcap.py
._README
README
setup.py

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP