Skip to content

请看sflow_traffic仓库 python抓包解析并存储,流量分析

Notifications You must be signed in to change notification settings

YMBo/tcp_traffic

Repository files navigation

tcp_traffic

python抓包解析并存储,流量分析

install

pip install -r requirements.txt
sudo python getTraffic

说明

此工具是pypcap抓包,通过dpkt解包获得想要的数据,这里主要针对的是TCP的包,可以在conf.py设定存储间隔,每隔一段时间存储到Mysql(先清空,再存储)

目录结构

├── README.md
├── conf.py       //配置文件
├── dao.py        //数据库操作
├── getTraffic.py    //抓包程序
├── log.py         //日志程序
└── requirements.txt      //依赖包

About

请看sflow_traffic仓库 python抓包解析并存储,流量分析

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages