Skip to content

Instantly share code, notes, and snippets.

@alphajc
Last active July 12, 2019 12:09
Show Gist options
  • Save alphajc/2d5200fa82dffbb0ab23f4c7e312d41a to your computer and use it in GitHub Desktop.
Save alphajc/2d5200fa82dffbb0ab23f4c7e312d41a to your computer and use it in GitHub Desktop.

提权

说明:dumpcap默认需要有root权限

  1. 添加用户组wireshark
sudo groupadd wireshark
  1. 将dumpcap更改为wireshark用户组
sudo chgrp wireshark /usr/bin/dumpcap
  1. 让wireshark用户组有权限使用dumpcap
sudo chmod 4755 /usr/bin/dumpcap
  1. 将自己加入wireshark用户组
sudo gpasswd -a jerry wireshark

NOTOCE:jerry is me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment