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

  • 相关阅读:
    子串匹配
    数据特征分析:3.统计分析 & 帕累托分析
    数据特征分析:2.对比分析
    数据特征分析:1.基础分析概述& 分布分析
    空间分析工具:GIS
    数据源
    07. Matplotlib 3 |表格样式| 显示控制
    06. Matplotlib 2 |折线图| 柱状图| 堆叠图| 面积图| 填图| 饼图| 直方图| 散点图| 极坐标| 图箱型图
    04. Pandas 3| 数值计算与统计、合并连接去重分组透视表文件读取
    05. Matplotlib 1 |图表基本元素| 样式参数| 刻度 注释| 子图
  • 原文地址:https://www.cnblogs.com/xxfcz/p/6211777.html
Copyright © 2011-2022 走看看