wireshark linux命令行,Linux下安装和运行Wireshark

本文档详细介绍了如何在Linux环境下安装Wireshark,并提供了命令行操作步骤,包括安装命令、查找命令以及如何使用Wireshark进行网络封包分析,如过滤TCP通信包、指定端口和IP的包等。此外,还给出了Wireshark的官方链接以供进一步学习。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、安装

以root用户运行:yum install wireshark

二、运行

在终端中键入命令:

#wireshark

bash:wireshark:command not found

#whereis wireshark

wireshark: /usr/lib/wireshark /usr/share/wireshark

#cd /usr/lib/wireshark

#ls

plugins

#cd /usr/share/wireshark; ls

AUTHORS-SHORT  dtds          mergecap.html  tshark.html

capinfos.html  dumpcap.html  radius          wimaxasncp

cfilters      editcap.html  rawshark.html  wireshark-filter.html

colorfilters  help          services        wireshark.html

COPYING        idl2wrs.html  smi_modules    ws.css

dfilters      ipmap.html    text2pcap.html

diameter      manuf        tpncp

解决方法:

http://forums.fedoraforum.org/showthread.php?p=1307301

yum search wireshark(搜索匹配特定字符的rpm包)

yum install wireshark-gnome.i386(wireshark的图形界面)

#whereis wireshark

wireshark: /usr/bin/wireshark /usr/sbin/wireshark /usr/share/wireshark /usr/share/man/man1/wireshark.1.gz

#wireshark

成功!

使用

查看TCP通信包,在过滤条件中写入 tcp ;Apply;

e4840c3608895b5143c5b9f53e32028f.png

查看指定端口的包:在过滤条件中输入 tcp.port eq 7905

08e62c97f86f94677b13d391d766bf17.png

查看指定IP的包:ip.addr eq 192.168.1.104

查看指定IP和PORT的包:ip.addr eq 192.168.1.104 and tcp.port eq 7905

Wireshark 的详细介绍:请点这里

Wireshark 的下载地址:请点这里

0b1331709591d260c1c78e86d0c51c18.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值