11
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Wiresharkをubuntuでbuildする

Last updated at Posted at 2014-07-16

開発版WiresharkをUbuntuでbuildしてみました。Wiresharkは1.12.0-rc2, Ubuntu 14.04上でbuildしました。

依存関係パッケージのインストール

必要なパッケージを入れます。

$ sudo apt-get install bison flex libgtk-3-dev  libqt4-dev  libpcap-dev

コンパイル

$ wget https://1.as.dl.wireshark.org/src/wireshark-1.12.0-rc2.tar.bz2
$ tar jxvf wireshark-1.12.0-rc2.tar.bz2 
$ cd wireshark-1.12.0-rc2/
$  ./configure --prefix=/usr/local/wireshark
$ make
$ sudo make install

権限付与

一般ユーザでキャプチャできるようにするため、以下のように権限を与える必要があります。

$ sudo groupadd wireshark
$ sudo usermod -a -G wireshark YOURNAME
$ sudo chgrp wireshark /usr/local/wireshark/bin/dumpcap
$ sudo chmod 750 /usr/local/wireshark/bin/dumpcap
$ sudo setcap cap_net_raw,cap_net_admin=eip /usr/local/wireshark/bin/dumpcap

起動

一般ユーザで起動します。rootで実行する必要なくキャプチャできます。

$ /usr/local/wireshark/bin/wireshark

wireshark 2.png

開発版ではHTTP/2の解析パッケージが含まれています。画像のとおりHTTP/2のパケットを解析することができました:)

11
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?