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

  • 相关阅读:
    EnumMap实现类
    java enum
    openssl生成RSA公钥和私钥对
    rsa 公钥 私钥
    eclispe 通过git向码云上传
    eclipse git 报 git: 401 Unauthorized
    HttpClient 超时时间
    HttpClient 4 和 HttpClient 3 超时
    Java RSA 生成公钥 私钥
    万能适配器
  • 原文地址:https://www.cnblogs.com/xxfcz/p/6211777.html
Copyright © 2011-2022 走看看