因为只有root才可以抓包,root权限开wireshark,这样会有风险。
而且出现这种错误:
tshark: Lua: Error during loading: [string "/usr/share/wireshark/init.lua"]:45: dofile has been disabled
解决办法:
sudo chgrp adm /usr/bin/dumpcap sudo chmod 750 /usr/bin/dumpcap sudo setcap cap_net_raw,cap_net_admin+eip /usr/bin/dumpcap
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/2463.html