ubuntu wireshark
时间: 2023-08-16 14:17:20 浏览: 40
回答: 在Ubuntu上安装Wireshark可以通过命令行或者软件中心进行安装。你可以使用以下命令在终端中安装Wireshark:
```
sudo apt-get install wireshark
```
安装完成后,你可以在应用程序菜单中找到Wireshark并启动它。启动后,你会看到一个使用Qt开发的界面,顶端从上至下是标题栏、菜单栏、工具栏和过滤栏。你可以选择接口作为过滤器,左侧是所有接口名称,右侧是接口数据量大小。比如,如果你需要从以太网口和其他主机进行网络通信,你可以选择相应的接口,然后点击左上角鲨鱼鳍的图标开始抓包。\[2\]
在Wireshark中,你可以使用多个条件进行过滤。例如,如果你想获取源IP地址为192.168.1.10的UDP报文,你可以使用过滤器`ip.src == 192.168.1.10 and udp`。如果你想获取目的IP地址为192.168.1.10且端口为9900的UDP报文,你可以使用过滤器`ip.src == 192.168.1.10 and udp.port == 9900`。如果你想获取目的IP地址不是192.168.1.10且端口不是9900的UDP报文,你可以使用过滤器`ip.src != 192.168.1.10 and udp.port != 9900`。\[3\]
#### 引用[.reference_title]
- *1* *2* *3* [ubuntu下如何使用wireshark抓包,保姆级教程](https://blog.csdn.net/qq_42257666/article/details/129089264)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]