Running tshark
In this section, we'll take a look at how to run the terminal version of Wireshark, so that it only has a command-line interface instead of opening up the GUI.
In order to run tshark, you have to open up the command window, and once it's up, we have to browse to where Wireshark is installed because as I've explained, unless you have it in your system path, it'll not be available. So we'll browse again to where Wireshark lives, and we'll do a directory listing. We'll see that we have tshark.exe
. This is installed by default with Wireshark. In order to run tshark, all you have to do is, of course, run tshark.exe
. If you do so, it automatically begins capturing on your default interface:
You'll notice that it shows the packets that it's capturing directly to the command-line interface, directly to stdout
. It does so because it does not have a graphical interface; there's nothing for it to display except for the screen that it's currently using, which is the command interface. You...