安装Wireshark
Linux 系统
- 使用
sudo apt update和sudo apt install安装必要的依赖项。 - 从
https://deb оригинал.org下载 Wireshark,并安装相关依赖。
Windows 系统
- 打开命令提示符,执行
sh wireshark -u https://example.com -p,选择一个域名。 - 安装 Wireshark 的依赖项。
安装使用环境
Linux
- 在命令提示符中,执行:
niolation -e -u https://example.com -p
这会创建一个虚拟网络。
Windows
- 打开 Command Prompt,执行:
chown -R root root:~/ Wireshark chmod 0755 Wireshark
熟悉 Wireshark 的界面
勾画工具条
- 工具条显示当前环境、历史记录、用户偏好和设置。
历史记录
- 从工具条中右键点击“历史记录”查看之前的所有分析结果。
流量分析页面
- 在工具条中右键点击“流量分析”以进入高级功能。
基本的流量分析命令
查看流量
Wireshark -v
显示当前环境信息。
查看流量头
Wireshark -v | head -1
查看完整的流量记录
Wireshark -v | tail -f
分析流量模式
查看流量模式
Wireshark -v | mode
显示流量的模式信息。
输出模式详细信息
Wireshark -v | mode -s
流量模式类型与特征
包模式(包模式)
- 包模式用于检测网络攻击。
- 输出可能包括包的类型、大小和时间。
流模式
- 流模式用于流量分析,显示端口、流量长度和时间。
分析流量模式的特征
DDoS 气象
Wireshark -v | detect-nnawan
显示 DDoS 气象特征。
基本模式
Wireshark -v | mode -l
显示所有流量模式。
统计流量信息
流量总数
Wireshark -v | count -t
端口数
Wireshark -v | count -p
节点数
Wireshark -v | count -n
使用 Wireshark 节点
显示网络设备
Wireshark -v | node
显示节点信息
Wireshark -v | node -n IP -l
使用ishw(Wishbone)
安装ishw
sudo apt installishw
显示 Wireshark 工具条
Wishbone -u https://example.com
添加虚拟网络
Wishbone -a -d https://example.com -n
启动分析
Wishbone -a -v
实例分析
分析流量记录
Wireshark -v | count -l
输出模式
Wireshark -v | mode -l
统计攻击流量
Wireshark -v | detect-nnawan -t
通过以上步骤,你已经基本掌握了Wireshark 的基本使用方法,根据实际需求,逐步学习高级命令和工具,如过滤器、节点分析和网络设备映射,使用示例分析可以加深理解,同时注意命令行操作的耐心和准确性,随着使用时间的积累,Wireshark 的功能和技巧会越来越多,帮助你在网络安全和管理中发挥作用。




