Dump tcp/ip packet by raw socket.
Project description
_____ _____
| __ \ | __ \
| |__) |__ ___ _| | | |_ _ _ __ ___ _ __
| _ // _` \ \ /\ / / | | | | | | '_ ` _ \| '_ \
| | \ \ (_| |\ V V /| |__| | |_| | | | | | | |_) |
|_| \_\__,_| \_/\_/ |_____/ \__,_|_| |_| |_| .__/
| |
|_|
已实现功能
- 支持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
权限。
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
rawdump-0.2.0-py3-none-any.whl
(12.0 kB
view details)
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 263e7afd45cf14ff982f7eea4a8ac9fdf8d9f1270931be924d2c9b7fac001948 |
|
MD5 | aa096d3db1727e44d019ab3bd0a2764b |
|
BLAKE2b-256 | fb4adb7d2db51c98ebced7d2985d10910bef75524b1b37b63e760f5c5602ecc8 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80365240d2e3b54e6cc2453127ad83b441e2e012d7c79f54c9f861f39d0b9513 |
|
MD5 | 6cf531adbb807441f148423c3bd598eb |
|
BLAKE2b-256 | bf8a83e29b2d29c690150a70e30e29a6040e14496f8a132374771bbd7078fd2a |