ubuntu下lua插件使用方式

找到wireshark全局配置文件夹地址

 ubuntu下lua插件使用方式

ubuntu下lua插件使用方式


配置方法:

STEP 1:

cd /usr/share/wireshark

vi init.lua

添加yunshang.lua的绝对路径,如下图

ubuntu下lua插件使用方式

ubuntu下lua插件使用方式

STEP 2:

不能用超级用户运行wireshark

普通用户启用wireshark配置命令:


[email protected]# groupadd wireshark

[email protected]# usermod -a -G wireshark stretch[普通用户名]

[email protected]$ newgrp wireshark

[email protected]# chgrp wireshark /usr/bin/dumpcap

[email protected]# chmod 750 /usr/bin/dumpcap

[email protected]# setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap


验证是否设置成功:

[email protected]# getcap /usr/bin/dumpcap

/usr/bin/dumpcap = cap_net_admin,cap_net_raw+eip


设置完成

ubuntu下lua插件使用方式

ubuntu下lua插件使用方式