ubuntu下的wireshark编译安装
安装编译工具:
$sudo apt-get install build-essential
为了成功编译Wireshark,您需要安装GTK+的开发文件和GLib库(libraries)。
$sudo apt-getinstall libgtk2.0-dev libglib2.0-dev
安装 其他库
sudo apt-get install flex bison libgnutls-dev libpcap-dev
wireshark源码下载地址:http://www.wireshark.org/download.html
tar xjf wireshark-1.10.5.tar.bz2
cd wireshark-1.10.5/
./configure
make -j4
sudo make install
At last, make sure /usr/local/bin is head of your default /usr/bin for $PATH
Add the following lines to the /etc/profile or your $HOME/.bash_rc
export PATH = /usr/local/bin: $PATH
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
Example to caputure wifi data by wireshark
----------------------------------------------------------
dev=wlan3
chan=11
ifconfig $dev down
iwconfig $dev mode monitor channel $chan
rfkill unblock allifconfig $dev up
wireshark &
-------------------------------------