Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run wireshark on the background without the GUI? [closed]

I am trying to run Wireshark on Mac OS X, on the background. I did install the command line utilities, and so I am able to start wireshark and capture packet using the command line. The only thing I want now is to run it on the background, without even having the X11 icon on the task bar and see the window of wireshark. I believe it is possible but can't find anything on the doc of Wireshark.

Maybe another way would be to find a trick to hide an icon on Mac OS X...

If anybody already did that or have an idea...

Thank you

Please excuse my English which is not perfect at all

like image 395
user393381 Avatar asked Dec 31 '10 01:12

user393381


People also ask

Can Wireshark run in the background?

This particular example is great for snuffing out botnets and helping you determine the nature of a DDoS attack, as you never know when the attack might occur and a rolling capture will allow you to leave Wireshark running indefinitely. In this example, we will use screen to run Wireshark in the background.

Can Wireshark be run without GUI?

Wireshark is meant to be used with the GUI, although there are some command line options available (see the output of "wireshark -h" for details).

How do I run Wireshark in promiscuous mode?

To turn on promiscuous mode, click on the CAPTURE OPTIONS dialog box and select it from the options. If everything goes according to plan, you'll now see all the network traffic in your network. However, many network interfaces aren't receptive to promiscuous mode, so don't be alarmed if it doesn't work for you.

Can we open Wireshark GUI using command line?

You can start Wireshark from the command line, but it can also be started from most Window managers as well. In this section we will look at starting it from the command line. Wireshark supports a large number of command line parameters.


1 Answers

As far as I remember TShark comes with all distributions of Wireshark. This runs from the command line. The documentation for it is here: http://www.wireshark.org/docs/man-pages/tshark.html

And there's some examples on how to use it here: http://www.codealias.info/technotes/the_tshark_capture_and_filter_example_page

like image 58
David Hewitt Avatar answered Sep 20 '22 12:09

David Hewitt