Skip to content

Latest commit

 

History

History

NetworkMonitor

网络流量分析软件

一款网络流量统计软件,使用 scapy 作为抓包库、Qt 为 GUI 库。

理论上支持 Linux、Windows、Mac OS,但由于 scapy 对 Windows 支持较差,未在 Mac OS 上测试过,推荐在 Linux 上运行。

运行截图

使用

Windows

  1. Windows 下需要先安装 Npcap。

  2. 安装 Python3,安装时勾选 Python-tk。

安装时勾选 Python-tk

  1. 安装所需 Python 包:
python -m pip install scapy pymysql matplotlib PyQt5 pyqtchart  DBUtils psutil pyqtchart
  1. 安装并配置 MySQL,此处略,在本地、Docker、云服务器安装均可

  2. 修改 db.py 前几行的 MySQL 服务器信息

  3. 运行程序:

python network_monitor.py

Linux

  1. 安装 Python3

  2. 安装 python3-devpsutil

sudo apt-get install python3-dev psutil 
  1. 安装所需 Python 包:
sudo python3 -m pip install scapy pymysql matplotlib PyQt5 pyqtchart  DBUtils
  1. 安装并配置 MySQL,在本地、Docker、云服务器安装均可。

  2. 修改 db.py 前几行的 MySQL 服务器信息

  3. 运行程序:

# Linux 下使用 scapy 抓包需要 su 权限
sudo python3 network_monitor.py

测试环境

  • Deepin 20 Beta 下测试成功。

已知问题

If really nothing seems to work, consider skipping the Windows version and using Scapy from a Linux Live CD – either in a virtual machine on your Windows host or by booting from CDROM.