[1a3dd316] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[1a3dd316] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[3bb415b] | 7 | <!ENTITY wireshark-download-http "https://www.wireshark.org/download/src/all-versions/wireshark-&wireshark-version;.tar.xz">
|
---|
[7fd159db] | 8 | <!ENTITY wireshark-download-ftp " ">
|
---|
[9c959d8] | 9 | <!ENTITY wireshark-md5sum "0994f7f327e0562f7a69bb4fa956dc7f">
|
---|
| 10 | <!ENTITY wireshark-size "40 MB">
|
---|
| 11 | <!ENTITY wireshark-buildsize "691 MB (with all optional dependencies available in the BLFS book)">
|
---|
| 12 | <!ENTITY wireshark-time "2.1 SBU (with parallelism=4 and all optional dependencies available in the BLFS book)">
|
---|
[1a3dd316] | 13 | ]>
|
---|
| 14 |
|
---|
[c8a095cb] | 15 | <!-- Gentler reminder: many Wireshark releases contain vulnerability fixes,
|
---|
| 16 | we have not always been aware of these. At https://www.wireshark.org/security/
|
---|
| 17 | there is a list of advisories and the version in which they were fixed.
|
---|
| 18 |
|
---|
| 19 | If you click on an advisory, after the bug number in the References:
|
---|
| 20 | there may be a CVE number, although perhaps those get added some time after
|
---|
| 21 | the release. Perhaps as a general rule treat ALL their advisories for crashes
|
---|
| 22 | etc as worthy of a security fix. -->
|
---|
| 23 |
|
---|
[894de226] | 24 | <sect1 id="wireshark" xreflabel="Wireshark-&wireshark-version;">
|
---|
| 25 | <?dbhtml filename="wireshark.html"?>
|
---|
[50b8d8b] | 26 |
|
---|
| 27 |
|
---|
[894de226] | 28 | <title>Wireshark-&wireshark-version;</title>
|
---|
[50b8d8b] | 29 |
|
---|
[894de226] | 30 | <indexterm zone="wireshark">
|
---|
| 31 | <primary sortas="a-Wireshark">Wireshark</primary>
|
---|
[13659efc] | 32 | </indexterm>
|
---|
| 33 |
|
---|
| 34 | <sect2 role="package">
|
---|
[894de226] | 35 | <title>Introduction to Wireshark</title>
|
---|
[13659efc] | 36 |
|
---|
[7014c9d] | 37 | <para>
|
---|
| 38 | The <application>Wireshark</application> package contains a network
|
---|
| 39 | protocol analyzer, also known as a <quote>sniffer</quote>. This is useful
|
---|
| 40 | for analyzing data captured <quote>off the wire</quote> from a live
|
---|
| 41 | network connection, or data read from a capture file.
|
---|
| 42 | </para>
|
---|
| 43 |
|
---|
| 44 | <para>
|
---|
| 45 | <application>Wireshark</application> provides both a graphical and a
|
---|
| 46 | TTY-mode front-end for examining captured network packets from over 500
|
---|
| 47 | protocols, as well as the capability to read capture files from many
|
---|
| 48 | other popular network analyzers.
|
---|
| 49 | </para>
|
---|
[50b8d8b] | 50 |
|
---|
[4b6e2b2] | 51 | &lfs113_checked;
|
---|
[a079e73c] | 52 |
|
---|
[13659efc] | 53 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 54 | <itemizedlist spacing="compact">
|
---|
| 55 | <listitem>
|
---|
[7c56ece] | 56 | <para>
|
---|
| 57 | Download (HTTP): <ulink url="&wireshark-download-http;"/>
|
---|
| 58 | </para>
|
---|
[13659efc] | 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[7c56ece] | 61 | <para>
|
---|
| 62 | Download (FTP): <ulink url="&wireshark-download-ftp;"/>
|
---|
| 63 | </para>
|
---|
[13659efc] | 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
[7c56ece] | 66 | <para>
|
---|
| 67 | Download MD5 sum: &wireshark-md5sum;
|
---|
| 68 | </para>
|
---|
[13659efc] | 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
[7c56ece] | 71 | <para>
|
---|
| 72 | Download size: &wireshark-size;
|
---|
| 73 | </para>
|
---|
[13659efc] | 74 | </listitem>
|
---|
| 75 | <listitem>
|
---|
[7c56ece] | 76 | <para>
|
---|
| 77 | Estimated disk space required: &wireshark-buildsize;
|
---|
| 78 | </para>
|
---|
[13659efc] | 79 | </listitem>
|
---|
| 80 | <listitem>
|
---|
[7c56ece] | 81 | <para>
|
---|
| 82 | Estimated build time: &wireshark-time;
|
---|
| 83 | </para>
|
---|
[2174baa] | 84 | </listitem>
|
---|
[13659efc] | 85 | </itemizedlist>
|
---|
[50b8d8b] | 86 |
|
---|
[3932f297] | 87 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[9f12e36] | 88 | <itemizedlist spacing="compact">
|
---|
[b11e915] | 89 | <listitem>
|
---|
[7014c9d] | 90 | <para>
|
---|
| 91 | Additional Documentation:
|
---|
| 92 | <ulink url="https://www.wireshark.org/download/docs/"/>
|
---|
| 93 | (contains links to several different docs in a variety of formats)
|
---|
[7c56ece] | 94 | </para>
|
---|
[b11e915] | 95 | </listitem>
|
---|
[3932f297] | 96 | </itemizedlist>
|
---|
| 97 |
|
---|
[894de226] | 98 | <bridgehead renderas="sect3">Wireshark dependencies</bridgehead>
|
---|
[50b8d8b] | 99 |
|
---|
[13659efc] | 100 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[6b14cb2] | 101 | <para role="required">
|
---|
[f853c30e] | 102 | <xref linkend="cmake"/>,
|
---|
[8558044] | 103 | <xref linkend="glib2"/>,
|
---|
[a1108958] | 104 | <xref linkend="libgcrypt"/>, and
|
---|
[8558044] | 105 | <xref linkend="qt5"/>
|
---|
[6b14cb2] | 106 | </para>
|
---|
[50b8d8b] | 107 |
|
---|
[13659efc] | 108 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[a079e73c] | 109 | <para role="recommended">
|
---|
[65546bb] | 110 | <xref linkend="libpcap"/> (required to capture data)
|
---|
[a079e73c] | 111 | </para>
|
---|
[50b8d8b] | 112 |
|
---|
[13659efc] | 113 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[9ef15dba] | 114 | <para role="optional">
|
---|
[e713e66c] | 115 | <xref linkend="asciidoctor"/>,
|
---|
[9ac8d7cc] | 116 | <xref linkend="brotli"/>,
|
---|
[4464d405] | 117 | <xref linkend="c-ares"/>,
|
---|
[a1108958] | 118 | <xref linkend="doxygen"/>,
|
---|
| 119 | <xref linkend="git"/>,
|
---|
[94e2b39a] | 120 | <xref linkend="gnutls"/>,
|
---|
[791e3e7d] | 121 | <xref linkend="libnl"/>,
|
---|
[5c2345ff] | 122 | <xref linkend="libxslt"/>,
|
---|
[a1108958] | 123 | <xref linkend="libxml2"/>,
|
---|
| 124 | <xref linkend="lua52"/>,
|
---|
[a079e73c] | 125 | <xref linkend="mitkrb"/>,
|
---|
[3bb415b] | 126 | <xref linkend="nghttp2"/>,
|
---|
[791e3e7d] | 127 | <xref linkend="sbc"/>,
|
---|
[9ac8d7cc] | 128 | <xref linkend="speex"/>,
|
---|
[e713e66c] | 129 | <!--<ulink url="https://asciidoctor.org/">Asciidoctor</ulink>,-->
|
---|
[a1108958] | 130 | <ulink url="https://www.linphone.org/technical-corner/bcg729">BCG729</ulink>,
|
---|
[de5db85] | 131 | <ulink url="https://github.com/TimothyGu/libilbc">libilbc</ulink>,
|
---|
[75e3e09] | 132 | <ulink url="https://www.ibr.cs.tu-bs.de/projects/libsmi/">libsmi</ulink>,
|
---|
| 133 | <ulink url="https://lz4.github.io/lz4/">lz4</ulink>,
|
---|
[3bb415b] | 134 | <ulink url="https://www.libssh.org/">libssh</ulink>,
|
---|
[a1108958] | 135 | <ulink url="https://github.com/maxmind/libmaxminddb">MaxMindDB</ulink>,
|
---|
[9ac8d7cc] | 136 | <ulink url="https://www.winimage.com/zLibDll/minizip.html">Minizip</ulink>,
|
---|
[75e3e09] | 137 | <ulink url="https://google.github.io/snappy/">Snappy</ulink>, and
|
---|
[746cbd8] | 138 | <ulink url="https://github.com/freeswitch/spandsp">Spandsp</ulink>
|
---|
[a079e73c] | 139 | </para>
|
---|
[28d83dbc] | 140 |
|
---|
[7014c9d] | 141 | <para condition="html" role="usernotes">
|
---|
| 142 | User Notes: <ulink url="&blfs-wiki;/wireshark"/>
|
---|
| 143 | </para>
|
---|
[061ec9d] | 144 |
|
---|
[13659efc] | 145 | </sect2>
|
---|
[50b8d8b] | 146 |
|
---|
[894de226] | 147 | <sect2 role="kernel" id="wireshark-kernel">
|
---|
[13659efc] | 148 | <title>Kernel Configuration</title>
|
---|
[50b8d8b] | 149 |
|
---|
[7014c9d] | 150 | <para>
|
---|
| 151 | The kernel must have the Packet protocol enabled for <application>
|
---|
| 152 | Wireshark</application> to capture live packets from the network:
|
---|
| 153 | </para>
|
---|
[6d772cc] | 154 |
|
---|
[196d393] | 155 | <screen><literal>[*] Networking support ---> [CONFIG_NET]
|
---|
| 156 | Networking options --->
|
---|
| 157 | <*/M> Packet socket [CONFIG_PACKET]</literal></screen>
|
---|
[6b14cb2] | 158 |
|
---|
[7014c9d] | 159 | <para>
|
---|
| 160 | If built as a module, the name is <filename>af_packet.ko</filename>.
|
---|
| 161 | </para>
|
---|
[50b8d8b] | 162 |
|
---|
[7014c9d] | 163 | <indexterm zone="wireshark wireshark-kernel">
|
---|
| 164 | <primary sortas="d-Capturing-network-packets">
|
---|
| 165 | Capturing network packets
|
---|
| 166 | </primary>
|
---|
| 167 | </indexterm>
|
---|
[50b8d8b] | 168 |
|
---|
[13659efc] | 169 | </sect2>
|
---|
[50b8d8b] | 170 |
|
---|
[13659efc] | 171 | <sect2 role="installation">
|
---|
[894de226] | 172 | <title>Installation of Wireshark</title>
|
---|
[13659efc] | 173 |
|
---|
[7014c9d] | 174 | <para>
|
---|
| 175 | <application>Wireshark</application> is a very large and complex
|
---|
| 176 | application. These instructions provide additional security measures to
|
---|
| 177 | ensure that only trusted users are allowed to view network traffic. First,
|
---|
| 178 | set up a system group for wireshark. As the <systemitem
|
---|
| 179 | class="username">root</systemitem> user:
|
---|
| 180 | </para>
|
---|
[a079e73c] | 181 |
|
---|
| 182 | <screen role="root"><userinput>groupadd -g 62 wireshark</userinput></screen>
|
---|
| 183 |
|
---|
[7014c9d] | 184 | <para>
|
---|
| 185 | Continue to install <application>Wireshark</application> by running
|
---|
| 186 | the following commands:
|
---|
| 187 | </para>
|
---|
[13659efc] | 188 |
|
---|
[a1108958] | 189 | <screen><userinput>mkdir build &&
|
---|
| 190 | cd build &&
|
---|
[791e3e7d] | 191 |
|
---|
[a1108958] | 192 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
| 193 | -DCMAKE_BUILD_TYPE=Release \
|
---|
[235d561b] | 194 | -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/wireshark-&wireshark-version; \
|
---|
[a1108958] | 195 | -G Ninja \
|
---|
| 196 | .. &&
|
---|
| 197 | ninja</userinput></screen>
|
---|
[28d83dbc] | 198 |
|
---|
[7014c9d] | 199 | <para>
|
---|
| 200 | This package does not come with a test suite.
|
---|
| 201 | </para>
|
---|
[50b8d8b] | 202 |
|
---|
[7014c9d] | 203 | <para>
|
---|
| 204 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 205 | </para>
|
---|
[50b8d8b] | 206 |
|
---|
[a1108958] | 207 | <screen role="root"><userinput>ninja install &&
|
---|
[894de226] | 208 |
|
---|
| 209 | install -v -m755 -d /usr/share/doc/wireshark-&wireshark-version; &&
|
---|
[8afd065] | 210 | install -v -m644 ../README.linux ../doc/README.* ../doc/randpkt.txt \
|
---|
[894de226] | 211 | /usr/share/doc/wireshark-&wireshark-version; &&
|
---|
[a079e73c] | 212 |
|
---|
[894de226] | 213 | pushd /usr/share/doc/wireshark-&wireshark-version; &&
|
---|
[0d7900a] | 214 | for FILENAME in ../../wireshark/*.html; do
|
---|
[2061231] | 215 | ln -s -v -f $FILENAME .
|
---|
[a079e73c] | 216 | done &&
|
---|
[791e3e7d] | 217 | popd
|
---|
| 218 | unset FILENAME</userinput></screen>
|
---|
[3932f297] | 219 |
|
---|
[7014c9d] | 220 | <para>
|
---|
| 221 | If you downloaded any of the documentation files from the page
|
---|
| 222 | listed in the 'Additional Downloads', install them by issuing the
|
---|
| 223 | following commands as the <systemitem class="username">root</systemitem>
|
---|
| 224 | user:
|
---|
| 225 | </para>
|
---|
[3932f297] | 226 |
|
---|
[06908bf6] | 227 | <screen role="root"
|
---|
| 228 | remap="doc"><userinput>install -v -m644 <replaceable><Downloaded_Files></replaceable> \
|
---|
[6d772cc] | 229 | /usr/share/doc/wireshark-&wireshark-version;</userinput></screen>
|
---|
[50b8d8b] | 230 |
|
---|
[7014c9d] | 231 | <para>
|
---|
| 232 | Now, set ownership and permissions of sensitive applications to only
|
---|
| 233 | allow authorized users. As the <systemitem class="username">root
|
---|
| 234 | </systemitem> user:
|
---|
| 235 | </para>
|
---|
[a079e73c] | 236 |
|
---|
| 237 | <screen role="root"><userinput>chown -v root:wireshark /usr/bin/{tshark,dumpcap} &&
|
---|
| 238 | chmod -v 6550 /usr/bin/{tshark,dumpcap}</userinput></screen>
|
---|
| 239 |
|
---|
[7014c9d] | 240 | <para>
|
---|
| 241 | Finally, add any users to the wireshark group (as <systemitem class=
|
---|
| 242 | "username">root</systemitem> user):
|
---|
| 243 | </para>
|
---|
[b85a77f] | 244 |
|
---|
[4147841] | 245 | <screen role="root"><userinput>usermod -a -G wireshark <replaceable><username></replaceable></userinput></screen>
|
---|
[a079e73c] | 246 |
|
---|
[791e3e7d] | 247 | <para>
|
---|
| 248 | If you are installing wireshark for the first time, it will be necessary
|
---|
[eed90c8] | 249 | to logout of your session and login again. This will put wireshark in your
|
---|
| 250 | groups, because otherwise Wireshark will not function properly.
|
---|
[791e3e7d] | 251 | </para>
|
---|
| 252 |
|
---|
[13659efc] | 253 | </sect2>
|
---|
[a1108958] | 254 | <!--
|
---|
[13659efc] | 255 | <sect2 role="commands">
|
---|
| 256 | <title>Command Explanations</title>
|
---|
[50b8d8b] | 257 |
|
---|
[6d772cc] | 258 | <para>
|
---|
[a1108958] | 259 | <option>- -disable-wireshark</option>: Use this switch if you
|
---|
[3bb415b] | 260 | have <application>Qt</application> installed but do not want to build
|
---|
[7014c9d] | 261 | any of the GUIs.
|
---|
| 262 | </para>
|
---|
[13659efc] | 263 | </sect2>
|
---|
[a1108958] | 264 | -->
|
---|
[50b8d8b] | 265 |
|
---|
[13659efc] | 266 | <sect2 role="configuration">
|
---|
[894de226] | 267 | <title>Configuring Wireshark</title>
|
---|
[13659efc] | 268 |
|
---|
[894de226] | 269 | <sect3 id="wireshark-config">
|
---|
[13659efc] | 270 | <title>Config Files</title>
|
---|
[50b8d8b] | 271 |
|
---|
[7c56ece] | 272 | <para>
|
---|
| 273 | <filename>/etc/wireshark.conf</filename> and
|
---|
| 274 | <filename>~/.config/wireshark/*</filename> (unless there is already
|
---|
| 275 | <filename>~/.wireshark/*</filename> in the system)
|
---|
| 276 | </para>
|
---|
[50b8d8b] | 277 |
|
---|
[894de226] | 278 | <indexterm zone="wireshark wireshark-config">
|
---|
| 279 | <primary sortas="e-AA.wireshark-star">~/.wireshark/*</primary>
|
---|
[13659efc] | 280 | </indexterm>
|
---|
[50b8d8b] | 281 |
|
---|
[894de226] | 282 | <indexterm zone="wireshark wireshark-config">
|
---|
| 283 | <primary sortas="e-etc-wireshark.conf">/etc/wireshark.conf</primary>
|
---|
[13659efc] | 284 | </indexterm>
|
---|
[50b8d8b] | 285 |
|
---|
[13659efc] | 286 | </sect3>
|
---|
[50b8d8b] | 287 |
|
---|
[13659efc] | 288 | <sect3>
|
---|
| 289 | <title>Configuration Information</title>
|
---|
[50b8d8b] | 290 |
|
---|
[7c56ece] | 291 | <para>
|
---|
| 292 | Though the default configuration parameters are very sane, reference
|
---|
| 293 | the configuration section of the <ulink url=
|
---|
[75e3e09] | 294 | "https://www.wireshark.org/docs/wsug_html/">Wireshark User's Guide
|
---|
[7c56ece] | 295 | </ulink> for configuration information. Most of <application>Wireshark
|
---|
| 296 | </application>'s configuration can be accomplished
|
---|
| 297 | using the menu options of the <command>wireshark</command> graphical
|
---|
| 298 | interfaces.
|
---|
| 299 | </para>
|
---|
[50b8d8b] | 300 |
|
---|
[13659efc] | 301 | <note>
|
---|
[7c56ece] | 302 | <para>
|
---|
| 303 | If you want to look at packets, make sure you don't filter them
|
---|
| 304 | out with <xref linkend="iptables"/>. If you want to exclude certain
|
---|
| 305 | classes of packets, it is more efficient to do it with
|
---|
| 306 | <application>iptables</application> than it is with
|
---|
| 307 | <application>Wireshark</application>.
|
---|
| 308 | </para>
|
---|
[13659efc] | 309 | </note>
|
---|
[50b8d8b] | 310 |
|
---|
[13659efc] | 311 | </sect3>
|
---|
[50b8d8b] | 312 |
|
---|
[13659efc] | 313 | </sect2>
|
---|
[50b8d8b] | 314 |
|
---|
[13659efc] | 315 | <sect2 role="content">
|
---|
| 316 | <title>Contents</title>
|
---|
| 317 |
|
---|
| 318 | <segmentedlist>
|
---|
| 319 | <segtitle>Installed Programs</segtitle>
|
---|
| 320 | <segtitle>Installed Libraries</segtitle>
|
---|
| 321 | <segtitle>Installed Directories</segtitle>
|
---|
[50b8d8b] | 322 |
|
---|
[13659efc] | 323 | <seglistitem>
|
---|
[791e3e7d] | 324 | <seg>
|
---|
[a1108958] | 325 | capinfos, captype, dumpcap, editcap, idl2wrs,
|
---|
[3bb415b] | 326 | mergecap, randpkt, rawshark, reordercap, sharkd,
|
---|
[a1108958] | 327 | text2pcap, tshark, and wireshark
|
---|
[791e3e7d] | 328 | </seg>
|
---|
| 329 | <seg>
|
---|
[90eaa29e] | 330 | libwireshark.so, libwiretap.so,
|
---|
[7fd159db] | 331 | libwsutil.so, and numerous modules under /usr/lib/wireshark/plugins
|
---|
[791e3e7d] | 332 | </seg>
|
---|
| 333 | <seg>
|
---|
[a1108958] | 334 | /usr/{include,lib,share}/wireshark and
|
---|
[791e3e7d] | 335 | /usr/share/doc/wireshark-&wireshark-version;
|
---|
| 336 | </seg>
|
---|
[13659efc] | 337 | </seglistitem>
|
---|
| 338 | </segmentedlist>
|
---|
[50b8d8b] | 339 |
|
---|
[13659efc] | 340 | <variablelist>
|
---|
| 341 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 342 | <?dbfo list-presentation="list"?>
|
---|
| 343 | <?dbhtml list-presentation="table"?>
|
---|
[50b8d8b] | 344 |
|
---|
[13659efc] | 345 | <varlistentry id="capinfos">
|
---|
| 346 | <term><command>capinfos</command></term>
|
---|
| 347 | <listitem>
|
---|
[7c56ece] | 348 | <para>
|
---|
| 349 | reads a saved capture file and returns any or all of several
|
---|
| 350 | statistics about that file. It is able to detect and read any
|
---|
| 351 | capture supported by the <application>Wireshark</application>
|
---|
[4c24eb0a] | 352 | package
|
---|
[7c56ece] | 353 | </para>
|
---|
[894de226] | 354 | <indexterm zone="wireshark capinfos">
|
---|
[13659efc] | 355 | <primary sortas="b-capinfos">capinfos</primary>
|
---|
| 356 | </indexterm>
|
---|
| 357 | </listitem>
|
---|
| 358 | </varlistentry>
|
---|
[50b8d8b] | 359 |
|
---|
[b85a77f] | 360 | <varlistentry id="captype">
|
---|
| 361 | <term><command>captype</command></term>
|
---|
| 362 | <listitem>
|
---|
[7c56ece] | 363 | <para>
|
---|
[4c24eb0a] | 364 | prints the file types of capture files
|
---|
[7c56ece] | 365 | </para>
|
---|
[b85a77f] | 366 | <indexterm zone="wireshark captype">
|
---|
| 367 | <primary sortas="b-captype">captype</primary>
|
---|
| 368 | </indexterm>
|
---|
| 369 | </listitem>
|
---|
| 370 | </varlistentry>
|
---|
| 371 |
|
---|
[894de226] | 372 | <varlistentry id="dumpcap">
|
---|
| 373 | <term><command>dumpcap</command></term>
|
---|
| 374 | <listitem>
|
---|
[7c56ece] | 375 | <para>
|
---|
| 376 | is a network traffic dump tool. It lets you capture packet data
|
---|
[4c24eb0a] | 377 | from a live network and write the packets to a file
|
---|
[7c56ece] | 378 | </para>
|
---|
[894de226] | 379 | <indexterm zone="wireshark dumpcap">
|
---|
| 380 | <primary sortas="b-dumpcap">dumpcap</primary>
|
---|
| 381 | </indexterm>
|
---|
| 382 | </listitem>
|
---|
| 383 | </varlistentry>
|
---|
| 384 |
|
---|
[13659efc] | 385 | <varlistentry id="editcap">
|
---|
| 386 | <term><command>editcap</command></term>
|
---|
| 387 | <listitem>
|
---|
[7c56ece] | 388 | <para>
|
---|
| 389 | edits and/or translates the format of capture files. It knows
|
---|
| 390 | how to read <application>libpcap</application> capture files,
|
---|
| 391 | including those of <command>tcpdump</command>,
|
---|
| 392 | <application>Wireshark</application> and other tools that write
|
---|
[4c24eb0a] | 393 | captures in that format
|
---|
[7c56ece] | 394 | </para>
|
---|
[894de226] | 395 | <indexterm zone="wireshark editcap">
|
---|
[13659efc] | 396 | <primary sortas="b-editcap">editcap</primary>
|
---|
| 397 | </indexterm>
|
---|
| 398 | </listitem>
|
---|
| 399 | </varlistentry>
|
---|
[50b8d8b] | 400 |
|
---|
[fa30d84] | 401 | <varlistentry id="idl2wrs">
|
---|
| 402 | <term><command>idl2wrs</command></term>
|
---|
| 403 | <listitem>
|
---|
[7c56ece] | 404 | <para>
|
---|
| 405 | is a program that takes a user specified CORBA IDL file and
|
---|
| 406 | generates <quote>C</quote> source code for a
|
---|
| 407 | <application>Wireshark</application> <quote>plugin</quote>. It
|
---|
| 408 | relies on two Python programs <command>wireshark_be.py</command>
|
---|
| 409 | and <command>wireshark_gen.py</command>, which are not installed
|
---|
[4c24eb0a] | 410 | by default. They have to be copied manually from the
|
---|
| 411 | <filename class="directory">tools</filename> directory to the
|
---|
| 412 | <filename class="directory">$PYTHONPATH/site-packages/</filename>
|
---|
| 413 | directory
|
---|
[fa30d84] | 414 | </para>
|
---|
| 415 | <indexterm zone="wireshark idl2wrs">
|
---|
| 416 | <primary sortas="b-idl2wrs">idl2wrs</primary>
|
---|
| 417 | </indexterm>
|
---|
| 418 | </listitem>
|
---|
| 419 | </varlistentry>
|
---|
| 420 |
|
---|
[13659efc] | 421 | <varlistentry id="mergecap">
|
---|
| 422 | <term><command>mergecap</command></term>
|
---|
| 423 | <listitem>
|
---|
[7c56ece] | 424 | <para>
|
---|
[4c24eb0a] | 425 | combines multiple saved capture files into a single output file
|
---|
[7c56ece] | 426 | </para>
|
---|
[894de226] | 427 | <indexterm zone="wireshark mergecap">
|
---|
[13659efc] | 428 | <primary sortas="b-mergecap">mergecap</primary>
|
---|
| 429 | </indexterm>
|
---|
| 430 | </listitem>
|
---|
| 431 | </varlistentry>
|
---|
[50b8d8b] | 432 |
|
---|
[13659efc] | 433 | <varlistentry id="randpkt">
|
---|
| 434 | <term><command>randpkt</command></term>
|
---|
| 435 | <listitem>
|
---|
[7c56ece] | 436 | <para>
|
---|
[4c24eb0a] | 437 | creates random-packet capture files
|
---|
[7c56ece] | 438 | </para>
|
---|
[894de226] | 439 | <indexterm zone="wireshark randpkt">
|
---|
[13659efc] | 440 | <primary sortas="b-randpkt">randpkt</primary>
|
---|
| 441 | </indexterm>
|
---|
| 442 | </listitem>
|
---|
| 443 | </varlistentry>
|
---|
[50b8d8b] | 444 |
|
---|
[a079e73c] | 445 | <varlistentry id="rawshark">
|
---|
| 446 | <term><command>rawshark</command></term>
|
---|
| 447 | <listitem>
|
---|
[7c56ece] | 448 | <para>
|
---|
[4c24eb0a] | 449 | dumps and analyzes raw libpcap data
|
---|
[7c56ece] | 450 | </para>
|
---|
[a079e73c] | 451 | <indexterm zone="wireshark rawshark">
|
---|
| 452 | <primary sortas="b-rawshark">rawshark</primary>
|
---|
| 453 | </indexterm>
|
---|
| 454 | </listitem>
|
---|
| 455 | </varlistentry>
|
---|
| 456 |
|
---|
[2061231] | 457 | <varlistentry id="reordercap">
|
---|
| 458 | <term><command>reordercap</command></term>
|
---|
| 459 | <listitem>
|
---|
[7c56ece] | 460 | <para>
|
---|
[4c24eb0a] | 461 | reorders timestamps of input file frames into an output file
|
---|
[7c56ece] | 462 | </para>
|
---|
[2061231] | 463 | <indexterm zone="wireshark reordercap">
|
---|
| 464 | <primary sortas="b-reordercap">reordercap</primary>
|
---|
| 465 | </indexterm>
|
---|
| 466 | </listitem>
|
---|
| 467 | </varlistentry>
|
---|
| 468 |
|
---|
[3bb415b] | 469 | <varlistentry id="sharkd">
|
---|
| 470 | <term><command>sharkd</command></term>
|
---|
| 471 | <listitem>
|
---|
[7c56ece] | 472 | <para>
|
---|
[4c24eb0a] | 473 | is a daemon that listens on UNIX sockets
|
---|
[7c56ece] | 474 | </para>
|
---|
[3bb415b] | 475 | <indexterm zone="wireshark sharkd">
|
---|
| 476 | <primary sortas="b-sharkd">sharkd</primary>
|
---|
| 477 | </indexterm>
|
---|
| 478 | </listitem>
|
---|
| 479 | </varlistentry>
|
---|
| 480 |
|
---|
[894de226] | 481 | <varlistentry id="text2pcap">
|
---|
| 482 | <term><command>text2pcap</command></term>
|
---|
| 483 | <listitem>
|
---|
[7c56ece] | 484 | <para>
|
---|
| 485 | reads in an ASCII hex dump and writes the data described into a
|
---|
[4c24eb0a] | 486 | <application>libpcap</application>-style capture file
|
---|
[7c56ece] | 487 | </para>
|
---|
[894de226] | 488 | <indexterm zone="wireshark text2pcap">
|
---|
| 489 | <primary sortas="b-text2pcap">text2pcap</primary>
|
---|
| 490 | </indexterm>
|
---|
| 491 | </listitem>
|
---|
| 492 | </varlistentry>
|
---|
| 493 |
|
---|
| 494 | <varlistentry id="tshark">
|
---|
| 495 | <term><command>tshark</command></term>
|
---|
[13659efc] | 496 | <listitem>
|
---|
[7c56ece] | 497 | <para>
|
---|
| 498 | is a TTY-mode network protocol analyzer. It lets you capture
|
---|
| 499 | packet data from a live network or read packets from a
|
---|
[4c24eb0a] | 500 | previously saved capture file
|
---|
[7c56ece] | 501 | </para>
|
---|
[894de226] | 502 | <indexterm zone="wireshark tshark">
|
---|
| 503 | <primary sortas="b-tshark">tshark</primary>
|
---|
[13659efc] | 504 | </indexterm>
|
---|
| 505 | </listitem>
|
---|
| 506 | </varlistentry>
|
---|
[50b8d8b] | 507 |
|
---|
[894de226] | 508 | <varlistentry id="wireshark-prog">
|
---|
| 509 | <term><command>wireshark</command></term>
|
---|
[13659efc] | 510 | <listitem>
|
---|
[791e3e7d] | 511 | <para>
|
---|
| 512 | is the Qt GUI network protocol analyzer. It lets you interactively
|
---|
| 513 | browse packet data from a live network or from a previously saved
|
---|
[4c24eb0a] | 514 | capture file
|
---|
[791e3e7d] | 515 | </para>
|
---|
[894de226] | 516 | <indexterm zone="wireshark wireshark-prog">
|
---|
| 517 | <primary sortas="b-wireshark">wireshark</primary>
|
---|
[13659efc] | 518 | </indexterm>
|
---|
| 519 | </listitem>
|
---|
| 520 | </varlistentry>
|
---|
[90eaa29e] | 521 | <!-- seems to have disappeared
|
---|
[791e3e7d] | 522 | <varlistentry id="wireshark-gtk-prog">
|
---|
| 523 | <term><command>wireshark-gtk</command></term>
|
---|
[b85a77f] | 524 | <listitem>
|
---|
[791e3e7d] | 525 | <para>
|
---|
| 526 | is the Gtk+ GUI network protocol analyzer. It lets you interactively
|
---|
| 527 | browse packet data from a live network or from a previously saved
|
---|
[fa30d84] | 528 | capture file (optional).
|
---|
[791e3e7d] | 529 | </para>
|
---|
| 530 | <indexterm zone="wireshark wireshark-gtk-prog">
|
---|
| 531 | <primary sortas="b-wireshark-gtk">wireshark-gtk</primary>
|
---|
[b85a77f] | 532 | </indexterm>
|
---|
| 533 | </listitem>
|
---|
| 534 | </varlistentry>
|
---|
[90eaa29e] | 535 | -->
|
---|
[894de226] | 536 | <varlistentry id="libwireshark">
|
---|
[4c24eb0a] | 537 | <term><filename class="libraryfile">libwireshark.so</filename></term>
|
---|
[13659efc] | 538 | <listitem>
|
---|
[7c56ece] | 539 | <para>
|
---|
| 540 | contains functions used by the <application>Wireshark</application>
|
---|
[4c24eb0a] | 541 | programs to perform filtering and packet capturing
|
---|
[7c56ece] | 542 | </para>
|
---|
[894de226] | 543 | <indexterm zone="wireshark libwireshark">
|
---|
| 544 | <primary sortas="c-libwireshark">libwireshark.so</primary>
|
---|
[13659efc] | 545 | </indexterm>
|
---|
| 546 | </listitem>
|
---|
| 547 | </varlistentry>
|
---|
[50b8d8b] | 548 |
|
---|
[13659efc] | 549 | <varlistentry id="libwiretap">
|
---|
[4c24eb0a] | 550 | <term><filename class="libraryfile">libwiretap.so</filename></term>
|
---|
[13659efc] | 551 | <listitem>
|
---|
[7c56ece] | 552 | <para>
|
---|
| 553 | is a library being developed as a future replacement for
|
---|
[4c24eb0a] | 554 | <filename class="libraryfile">libpcap</filename>, the current
|
---|
[7c56ece] | 555 | standard Unix library for packet capturing. For more information,
|
---|
| 556 | see the <filename>README</filename> file in the source
|
---|
[4c24eb0a] | 557 | <filename class="directory">wiretap</filename> directory
|
---|
[7c56ece] | 558 | </para>
|
---|
[894de226] | 559 | <indexterm zone="wireshark libwiretap">
|
---|
[13659efc] | 560 | <primary sortas="c-libwiretap">libwiretap.so</primary>
|
---|
| 561 | </indexterm>
|
---|
| 562 | </listitem>
|
---|
| 563 | </varlistentry>
|
---|
[50b8d8b] | 564 |
|
---|
[13659efc] | 565 | </variablelist>
|
---|
| 566 |
|
---|
| 567 | </sect2>
|
---|
[1a3dd316] | 568 |
|
---|
| 569 | </sect1>
|
---|