※当サイトの記事には、広告・プロモーションが含まれます。

Wiresharkで「パケットバイト列を表示...」について言及して欲しいが...

www.itmedia.co.jp

 米Google傘下のYouTubeは4月23日(現地時間)、2005年に最初の動画が投稿されてからの20周年を記念して、新機能やイベントを紹介した。

YouTube、20周年で新機能や祝イベントを紹介 - ITmedia NEWS

⇧ データ量がとんでもないことになっていそうですな...

Wireshark

Wikipediaによりますと、

Wireshark(ワイヤシャーク)は、ネットワーク・アナライザ・ソフトウェアである。作者は、ジェラルド・コームズ(Gerald Combs)である。

Wireshark - Wikipedia

歴史

1990年代後半、ミズーリ大学カンザスシティ校(英語版)を卒業したジェラルド・コームズは小さなインターネット・サービス・プロバイダに勤務していた。当時、商用のLANアナライザは1500万ドルくらいもし、しかもコームズが勤めていた会社の主要なプラットフォーム(Solaris, Linux)には対応していなかった。

Wireshark - Wikipedia

そこでコームズは、SolarisやLinuxに対応したLANアナライザを自作し、1998年にEthereal(イーサリアル)の最初のバージョンを公開した。Etherealの商標は勤務していたISPが保持した。

Wireshark - Wikipedia

2006年5月、コームズは、WinPcapの販売元であるCACEテクノロジーズ(CACET)に転職した。Etherealの大半のソースコードの著作権はコームズが保持しており(GNU GPLに基づいて再配布されていた)、WiresharkのSVNレポジトリはEtherealのレポジトリを基礎として構築されている。しかし、Etherealの商標はコームズが勤めていたISPに残されたままで使えなかったため、同年6月にWiresharkに名称を変更した。

Wireshark - Wikipedia

Etherealの開発は停止され、Etherealの公式サイトでもWiresharkに切り替えることが推奨されていた。

Wireshark - Wikipedia

⇧ とあり、「Wireshark」という名称になったのは、2006年ということらしく、今が2025年なので、20年は経っていないらしい。

Wiresharkで「パケットバイト列を表示...」について言及して欲しいが...

初出からほぼ20年が経っていることもあり、ネット上で「Wireshark」の情報は多く見かけるのだが、意外に「パケットバイト列の表示」について言及している情報が無かったので、備忘録として。

適当に「Wireshark」をインストールしておきます。

⇧ インストールされました。

 

適当に、サンプルをダウンロードします。

wiki.wireshark.org

 

そしたらば、「Wireshark」を起動し、

先ほど、ダウンロードしておいたサンプルの「.pcap」ファイルを選択し、「開く(O)」ボタンを押下。

左下画面の「Data」の行を選択した状態で右クリックし、「パケットバイト列を表示...」を選択。

コピペがし易いダイアログを表示してくれる。

単純なことなのだが、ネット上で紹介している情報が皆無だったのよね...

何というか、

⇧「右下画面」でテキスト表示ができるんなら、「左下画面」でも実現してくれれば良い気はするんよね...

Frame 1: 102 bytes on wire (816 bits), 102 bytes captured (816 bits)
    Encapsulation type: Ethernet (1)
    Arrival Time: Mar 21, 2007 17:49:28.383971000 東京 (標準時)
    UTC Arrival Time: Mar 21, 2007 08:49:28.383971000 UTC
    Epoch Arrival Time: 1174466968.383971000
    [Time shift for this packet: 0.000000000 seconds]
    [Time delta from previous captured frame: 0.000000000 seconds]
    [Time delta from previous displayed frame: 0.000000000 seconds]
    [Time since reference or first frame: 0.000000000 seconds]
    Frame Number: 1
    Frame Length: 102 bytes (816 bits)
    Capture Length: 102 bytes (816 bits)
    [Frame is marked: False]
    [Frame is ignored: False]
    [Protocols in frame: eth:ethertype:ip:udp:data]
    [Coloring Rule Name: UDP]
    [Coloring Rule String: udp]
Ethernet II, Src: Cisco_fe:6f:42 (00:13:19:fe:6f:42), Dst: Toshiba_cc:32:53 (00:08:0d:cc:32:53)
    Destination: Toshiba_cc:32:53 (00:08:0d:cc:32:53)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Source: Cisco_fe:6f:42 (00:13:19:fe:6f:42)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Type: IPv4 (0x0800)
    [Stream index: 0]
Internet Protocol Version 4, Src: 10.30.12.246, Dst: 10.101.4.240
    0100 .... = Version: 4
    .... 0101 = Header Length: 20 bytes (5)
    Differentiated Services Field: 0x00 (DSCP: CS0, ECN: Not-ECT)
        0000 00.. = Differentiated Services Codepoint: Default (0)
        .... ..00 = Explicit Congestion Notification: Not ECN-Capable Transport (0)
    Total Length: 88
    Identification: 0x010b (267)
    000. .... = Flags: 0x0
        0... .... = Reserved bit: Not set
        .0.. .... = Don't fragment: Not set
        ..0. .... = More fragments: Not set
    ...0 0000 0000 0000 = Fragment Offset: 0
    Time to Live: 250
    Protocol: UDP (17)
    Header Checksum: 0x9921 [validation disabled]
    [Header checksum status: Unverified]
    Source Address: 10.30.12.246
    Destination Address: 10.101.4.240
    [Stream index: 0]
User Datagram Protocol, Src Port: 10000, Dst Port: 7890
    Source Port: 10000
    Destination Port: 7890
    Length: 68
    Checksum: 0x4e51 [unverified]
    [Checksum Status: Unverified]
    [Stream index: 0]
    [Stream Packet Number: 1]
    [Timestamps]
        [Time since first frame: 0.000000000 seconds]
        [Time since previous frame: 0.000000000 seconds]
    UDP payload (60 bytes)
Data (60 bytes)
    Data: 3c3133353e204d617263682032312031313a343820494b574d4337313a30333133383830382c6d73753d383136363838323735323131323031313132
    [Length: 60]

⇧ エクスポートする際も、「Data」の部分がbyteの表示形式になってしまっていますし...

毎度モヤモヤ感が半端ない…

今回はこのへんで。