Skip to main content
  _____                _____                        
 |  __ \              |  __ \                       
 | |__) |__ ___      _| |  | |_   _ _ __ ___  _ __  
 |  _  // _` \ \ /\ / / |  | | | | | '_ ` _ \| '_ \ 
 | | \ \ (_| |\ V  V /| |__| | |_| | | | | | | |_) |
 |_|  \_\__,_| \_/\_/ |_____/ \__,_|_| |_| |_| .__/ 
                                             | |    
                                             |_|  

Unittest PyPi version

已实现功能

  • 支持Windows、Linux、Macos端抓包
  • 支持根据网卡、协议、ip、端口、包体中的关键字等进行过滤(过滤以流为单位)
  • 支持生成pcap文件

待实现功能

  • 支持过滤包含RST包的流
  • 支持字体染色

使用方法

$ pip install rawdump
$ rawdump -i lo -H ip -P port --keyword test -w 1.pcap

参数说明:

  • -i/--interface: 指定要抓包的网卡,Windows系统使用网卡序号,其它系统使用网卡名;不指定会抓所有网卡包

  • -p/--protocol: 要过滤的协议,如:tcp、udp、icmp,默认抓所有ip包

  • -H/--host: 要过滤的ip地址

  • -P/--port: 要过滤的端口(只支持TCP和UDP)

  • --keyword: 要过滤的关键字

  • -w/--file: 要保存的文件名,默认值为:rawdump.pcap

使用限制

Windows下需要Administrator权限,其它系统需要root权限。

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rawdump-0.2.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rawdump-0.2.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file rawdump-0.2.0.tar.gz.

File metadata

  • Download URL: rawdump-0.2.0.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for rawdump-0.2.0.tar.gz
Algorithm Hash digest
SHA256 263e7afd45cf14ff982f7eea4a8ac9fdf8d9f1270931be924d2c9b7fac001948
MD5 aa096d3db1727e44d019ab3bd0a2764b
BLAKE2b-256 fb4adb7d2db51c98ebced7d2985d10910bef75524b1b37b63e760f5c5602ecc8

See more details on using hashes here.

File details

Details for the file rawdump-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: rawdump-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for rawdump-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 80365240d2e3b54e6cc2453127ad83b441e2e012d7c79f54c9f861f39d0b9513
MD5 6cf531adbb807441f148423c3bd598eb
BLAKE2b-256 bf8a83e29b2d29c690150a70e30e29a6040e14496f8a132374771bbd7078fd2a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page