侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

抓包工具wireshark添加用户权限

2023-12-09 星期六 / 0 评论 / 0 点赞 / 95 阅读 / 1418 字

Installation of Wireshark: $ sudo apt-get install wireshark If you run wireshark as a non root use

Installation of Wireshark:
$ sudo apt-get install wireshark


If you run wireshark as a non root user at this stage, you will get
the message “No interface can be used for capturing in this system with the current configuration.”. 
The following steps will rectify this.


1) Create the wireshark group.
$ sudo groupadd wireshark


2) Add your username to the wireshark group
$ sudo usermod -a -G wireshark YOUR_USER_NAME


3) Change the group ownership of file dumpcap to wireshark
$ sudo chgrp wireshark /usr/bin/dumpcap


4) Change the mode of the file dumpcap to allow execution by the group wireshark
$ sudo chmod 750 /usr/bin/dumpcap


5) Grant capabilities with setcap, man capabilities(7), setcap(8), cap_from_text(3) for more info about what are "cap_net_raw", "cap_net_admin" and "eip". Anyway, after we grant the capabilities, the dump can perform various network-related operations, use RAW and PACKET sockets; bind to any address for transparent proxying.
$ sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap


6) Verify the change
$ sudo getcap /usr/bin/dumpcap
Output should be like below:
$ /usr/bin/dumpcap = cap_net_admin,cap_net_raw+eip


7) At this point, you will need to log out, then back into ubuntu

广告 广告

评论区