Skip to main content

FlowAnalyzer是一个流量分析器,用于解析和处理tshark导出的JSON数据文件

Project description

FlowAnalyzer

安装

使用 pip 安装:

pip3 install FlowAnalyzer
pip3 install FlowAnalyzer -i https://pypi.org/simple

快速上手

配置

如果您安装 WireShark 没有修改安装目录,默认 tshark 路径会如下:

# windows
tshark_path = r"C:\Program Files\Wireshark\tshark.exe"

Linux, MacOS 默认路径不清楚,需要看下面的纠正路径确定路径没有问题,那也无需任何配置即可使用!

纠正路径

修改 python安装目录\Lib\site-packages\FlowAnalyzer\Path.py 中的变量 tshark_path 改为tshark正确路径

测试

$ git clone https://github.com/Byxs20/FlowAnalyzer.git
$ cd ./FlowAnalyzer/
$ python tests\demo.py

运行结果:

[+] 正在处理第1个HTTP流!
序号: 2请求包, 请求头: b'POST /upload/php_eval_xor_base64.php HTTP/1.1\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0\r\n
...

Contributing

Feel free to submit issues or pull requests if you have any suggestions, improvements, or bug reports.

License

This project is licensed under the MIT License.

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

FlowAnalyzer-0.4.0.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

FlowAnalyzer-0.4.0-py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 3

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