Skip to main content

A useful logging library for Python

Project description

FuxuanTracer

FuxuanTracer是一个基于Python的开源网络流量监控工具,它能够抓取网络数据包,并解析出网络连接的IP地址, 端口等信息, 方便用户进行网络流量监控。

安装

pip install FuxuanTracer

Get Started

from FuxuanTracer import DataPackAnalyzer

ins = DataPackAnalyzer()

devices = list(ins.getAvaliableDevice().keys())

# 我们选择第4个,因为那个是我的以太网设备
choose_divice =  devices[4]

# 抓取10个包
ins.catchDataPak(choose_divice, 10)

# 解析抓取的包
ins.analyze_packets(True,"result.log",False)
args:
- 1. True ,代表写入文件
- 2. result.log , 写入文件的文件名
- 3. False , 代表不用json格式写入文件

Project details


Download files

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

Source Distribution

fuxuantracer-0.0.1b0.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

FuxuanTracer-0.0.1b0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file fuxuantracer-0.0.1b0.tar.gz.

File metadata

  • Download URL: fuxuantracer-0.0.1b0.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for fuxuantracer-0.0.1b0.tar.gz
Algorithm Hash digest
SHA256 da1143dad77c46a1dccdd5783adadfabe8ce059938af7cc2bdc80bcfeb0e4a1a
MD5 fe52d9fa7bfb0525156f9e5c6b56d39b
BLAKE2b-256 3a1592aa7e85b1cf04f9127896a1602faeb515761349a22f17e3ac78dbbe0b4e

See more details on using hashes here.

File details

Details for the file FuxuanTracer-0.0.1b0-py3-none-any.whl.

File metadata

File hashes

Hashes for FuxuanTracer-0.0.1b0-py3-none-any.whl
Algorithm Hash digest
SHA256 a07ecf960573ed96bf716029d1177f81dc3ad4213ca3d2de8850ec52654aa512
MD5 f7c20a507082ac86cc04d8714ccc8c6d
BLAKE2b-256 fe4971e65258798eb9a1a65da8ba8befb34e3b124a48ab3b2243644b272f2101

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page