当前位置:   article > 正文

Linux CentOS安装抓包解包工具Wireshark图形化界面_centos wireshark

centos wireshark

1.Wireshark介绍

Wireshark 是一个开源的网络协议分析工具,它能够捕获和分析网络数据包,提供深入的网络故障排除、网络性能优化和安全审计等功能。它支持跨多个操作系统,包括 Windows、macOS 和 Linux。

2.Wireshark主要使用方法

  • 捕获数据包:

        打开 Wireshark,选择要捕获数据包的网络接口。您可以选择物理网卡或虚拟接口。
点击“开始”按钮开始捕获数据包。
        Wireshark 将开始监听选定的接口,并显示捕获到的数据包。

  • 分析数据包:

        捕获到的数据包将以列表形式显示在 Wireshark 界面上。您可以查看每个数据包的详细信息,如源地址、目标地址、协议类型等。
        Wireshark 还提供了过滤器功能,使您可以根据特定的协议、源/目标地址、端口等条件来筛选和查找感兴趣的数据包。
        可以查看每个数据包的原始数据以及解析后的协议信息,以深入了解网络通信过程。

  • 分析工具和功能:

        Wireshark 提供了一系列强大的分析工具,如统计信息、流量图表、协议层次结构图等,以帮助您分析和诊断网络问题。
        您可以使用统计功能来获取有关数据包数量、协议使用情况、流量分布等方面的信息。
Wireshark 还支持导出数据包以供进一步分析或与他人共享。

3.CentOS 图形化Wireshark快速安装

  • 安装Wireshark

        如果直接安装wireshark,则不包含图形化界面,可以在命令行执行tshark来使用。如需图形化界面,选择包含gnome的版本安装。

  1. sudo yum update
  2. sudo yum search wireshark
  3. sudo yum install wireshark-gnome.x86_64
  • 启动Wireshark
sudo wireshark &
  • 安装过程 
  1. [xxx ~]# sudo yum update
  2. [xxx ~]# sudo yum search wireshark
  3. Loaded plugins: fastestmirror, langpacks, nvidia
  4. Loading mirror speeds from cached hostfile
  5. ============================ N/S matched: wireshark ============================
  6. wireshark-devel.i686 : Development headers and libraries for wireshark
  7. wireshark-devel.x86_64 : Development headers and libraries for wireshark
  8. wireshark-gnome.x86_64 : Gnome desktop integration for wireshark
  9. wireshark.i686 : Network traffic analyzer
  10. wireshark.x86_64 : Network traffic analyzer
  11. Name and summary matches only, use "search all" for everything.
  12. [xxx ~]# yum remove wireshark
  13. Loaded plugins: fastestmirror, langpacks, nvidia
  14. Resolving Dependencies
  15. --> Running transaction check
  16. ---> Package wireshark.x86_64 0:1.10.14-25.el7 will be erased
  17. --> Finished Dependency Resolution
  18. Dependencies Resolved
  19. ================================================================================
  20. Package Arch Version Repository Size
  21. ================================================================================
  22. Removing:
  23. wireshark x86_64 1.10.14-25.el7 @base 67 M
  24. Transaction Summary
  25. ================================================================================
  26. Remove 1 Package
  27. Installed size: 67 M
  28. Is this ok [y/N]: y
  29. Downloading packages:
  30. Running transaction check
  31. Running transaction test
  32. Transaction test succeeded
  33. Running transaction
  34. Erasing : wireshark-1.10.14-25.el7.x86_64 1/1
  35. Verifying : wireshark-1.10.14-25.el7.x86_64 1/1
  36. Removed:
  37. wireshark.x86_64 0:1.10.14-25.el7
  38. Complete!
  39. [xxx ~]# sudo yum install wireshark-gnome.x86_64
  40. Loaded plugins: fastestmirror, langpacks, nvidia
  41. Loading mirror speeds from cached hostfile
  42. * base: centos.mirror.far.fi
  43. * centos-sclo-rh: centos.mirror.far.fi
  44. * centos-sclo-sclo: centos.mirror.far.fi
  45. * epel: epel.mirror.serveriai.lt
  46. * extras: centos.mirror.far.fi
  47. * updates: centos.mirror.far.fi
  48. Resolving Dependencies
  49. --> Running transaction check
  50. ---> Package wireshark-gnome.x86_64 0:1.10.14-25.el7 will be installed
  51. --> Processing Dependency: wireshark = 1.10.14-25.el7 for package: wireshark-gnome-1.10.14-25.el7.x86_64
  52. --> Processing Dependency: libwsutil.so.3()(64bit) for package: wireshark-gnome-1.10.14-25.el7.x86_64
  53. --> Processing Dependency: libwiretap.so.3()(64bit) for package: wireshark-gnome-1.10.14-25.el7.x86_64
  54. --> Processing Dependency: libwireshark.so.3()(64bit) for package: wireshark-gnome-1.10.14-25.el7.x86_64
  55. --> Running transaction check
  56. ---> Package wireshark.x86_64 0:1.10.14-25.el7 will be installed
  57. --> Finished Dependency Resolution
  58. Dependencies Resolved
  59. ================================================================================
  60. Package Arch Version Repository Size
  61. ================================================================================
  62. Installing:
  63. wireshark-gnome x86_64 1.10.14-25.el7 base 912 k
  64. Installing for dependencies:
  65. wireshark x86_64 1.10.14-25.el7 base 13 M
  66. Transaction Summary
  67. ================================================================================
  68. Install 1 Package (+1 Dependent package)
  69. Total download size: 13 M
  70. Installed size: 69 M
  71. Is this ok [y/d/N]: y
  72. Downloading packages:
  73. (1/2): wireshark-gnome-1.10.14-25.el7.x86_64.rpm | 912 kB 00:01
  74. (2/2): wireshark-1.10.14-25.el7.x86_64.rpm | 13 MB 00:03
  75. --------------------------------------------------------------------------------
  76. Total 4.4 MB/s | 13 MB 00:03
  77. Running transaction check
  78. Running transaction test
  79. Transaction test succeeded
  80. Running transaction
  81. Installing : wireshark-1.10.14-25.el7.x86_64 1/2
  82. Installing : wireshark-gnome-1.10.14-25.el7.x86_64 2/2
  83. Verifying : wireshark-gnome-1.10.14-25.el7.x86_64 1/2
  84. Verifying : wireshark-1.10.14-25.el7.x86_64 2/2
  85. Installed:
  86. wireshark-gnome.x86_64 0:1.10.14-25.el7
  87. Dependency Installed:
  88. wireshark.x86_64 0:1.10.14-25.el7
  89. Complete!
  90. [xxx ~]# sudo wireshark &
  • 使用截图

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/326706
推荐阅读
相关标签
  

闽ICP备14008679号