zoukankan      html  css  js  c++  java
  • Debian 7 安装 wireshark

      安装过程很简单:

    $ sudo apt-get install wireshark

      其中会弹出一个对话框:

    ┌─────────────────────┤ Configuring wireshark-common ├──────────────────────┐
    │                                                                                                                                                    │
    │ Dumpcap can be installed in a way that allows members of the "wireshark"                                   │
    │ system group to capture packets. This is recommended over the                                                  │
    │ alternative of running Wireshark/Tshark directly as root, because less                                            │
    │ of the code will run with elevated privileges.                                                                                  │
    │                                                                                                                                                    │
    │ For more detailed information please see                                                                                      │
    │ /usr/share/doc/wireshark-common/README.Debian.                                                                    │
    │                                                                                                                                                    │
    │ Enabling this feature may be a security risk, so it is disabled by                                                      │
    │ default. If in doubt, it is suggested to leave it disabled.                                                                   │
    │                                                                                                                                                    │
    │ Should non-superusers be able to capture packets?                                                                       │
    │                                                                                                                                                     │
    │                                <Yes>                                              <No>                                                    │
    │                                                                                                                                                     │
    └────────────────────────────────────────────────────────────────────┘

      接受建议,选<No>即可。

      安装完毕,以普通用户运行wireshark,开始抓包,却提示:

    There are no interfaces on which a capture can be done.

      主窗口左上角区域显示:

    Couldn’t run /usr/sbin/dumpcap in child process: Permission denied Are you a member of the ‘wireshark’ group? Try running ‘usermod -a -G wireshark your_username’ as root.

      解决办法:把普通用户xxf添加到组wireshark,即

    usermod -a -G wireshark xxf

      注销当前用户xxf,重新登录即可。

    参考:

    1、https://wiki.wireshark.org/CaptureSetup/CapturePrivileges

    2、/usr/share/doc/wireshark-common/README.Debian

  • 相关阅读:
    GDOI2017 之后
    [codevs1378]选课
    图的连通_Tarjan
    [bzoj1270 BJWC2008]雷涛的小猫
    [51mod 1201]整数划分 dp
    这只是一个非常水的人,写下的非常水的文字,不看也罢
    Python基础中所出现的异常报错总结
    Python简单爬虫入门二
    Python写地铁的到站的原理简易版
    HTML基本组成结构与标签的认识
  • 原文地址:https://www.cnblogs.com/xxfcz/p/6211777.html
Copyright © 2011-2022 走看看