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]

# 设置过滤器, 注意: 每次调用 setFilter 都会重置过滤规则
ins.setFilter(WebProtocol="HTTPS", Port=[443])

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

# 解析抓取的包
ins.analyze_packets(True,"result.log",False,True)

参数说明(analyze_packets)

    1. True ,代表写入文件
    1. result.log , 写入文件的文件名
    1. False , 代表不用json格式写入文件
    1. True , 代表应用过滤器

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.1.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fuxuantracer-0.0.1.tar.gz
  • Upload date:
  • Size: 15.9 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.1.tar.gz
Algorithm Hash digest
SHA256 80e99b4f5978b3d32ad554d660a1d706a5ca77417a1e9e94735c123750af5db4
MD5 722bb3d74d1db945aeee5e0fe3696ca9
BLAKE2b-256 4377f8959288de60783f44e61240b3e914c0b5cba6fee522eee27d2ffad2fae8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: FuxuanTracer-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for FuxuanTracer-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d318a928873f0cfa2ad84aba2a97bdd5e547f8b904cf58ce0f150ffc7308345e
MD5 9f09b1cfe7d83693f25f33fbcd11b933
BLAKE2b-256 6a5cdc4bedc8dfdf9a2bc06b4bbb001239c667645fbb0e76e41baba98ca9aa44

See more details on using hashes here.

Supported by

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