wireshark使用记录
ip.addr == 192.168.3.114 and http
监听这个IP地址,并限于http的请求
php 使用curl抓取的时候,然会值是乱码
解决办法
curl_setopt($ch1, CURLOPT_ENCODING, 'gzip');
1.安装wireshark
终端运行:sudo apt-get install wireshark
2.修改init.lua
直接运行wireshark的话会报错:
Lua: Error during loading:
[string "/usr/share/wireshark/init.lua"]:45: dofile has been disabled
要对其进行修改,终端运行
sudo gedit /usr/share/wireshark/init.lua
倒数第二行改为--dofile(DATA_DIR.."console.lua")
3.启动软件
终端运行:sudo wireshark