Fix basic network applications with Wireshark (Ethereal)

Network protocol analysis is a technique commonly used to view, in real time mode, data streams sent and received through a network interface.

TipsMake.com - Network protocol analysis is a technique commonly used to view, in real-time mode the data stream sent and received through a network interface. This is really useful for troubleshooting network configuration problems and network application problems . It is also useful to develop a new network protocol. In this article, I will fundamentally demonstrate how to overcome a network application with Wireshark (Ethereal).

Overview of Wireshark

Ethereal is an original open source protocol analysis program written by Gerald Combs. It was later renamed Wireshark in 2006. Wireshark is now managed and developed by hundreds of people around the world.

What can it do?

Like any other tool, Wireshark can be used for some things and not for other things. Here is a list of some things that Wireshark can't do:

1. It cannot be used to map a network. Instead the Nmap tool can take over this function.

2. It does not generate network data - it is a passive tool. Tools like nmap, ping and traceroute are examples of tools that can generate network data. These tools are proactive tools.

3. It can only show details about the protocols that it really understands. It understands a lot of protocols and can be expanded, so you can add support protocols to it if it doesn't understand. However, you will only be able to view the data it captured as hexdump.

4. It can only capture good data when the operating system's driver interface supports. An example of this is capturing data via wireless networks. It does not work well with some combined software and hardware.

Wireshark installation

Wireshark is an open source application and is available for free download at www.wireshark.org. How to install it is quite easy and is guided as below.

1. Double-click the installation file

2. Click the " Next " button on the Welcome screen.

Fix basic network applications with Wireshark (Ethereal) Picture 1Fix basic network applications with Wireshark (Ethereal) Picture 1

3. Press the " I Agree " button to accept the registration conditions.

Fix basic network applications with Wireshark (Ethereal) Picture 2Fix basic network applications with Wireshark (Ethereal) Picture 2

4. Click the " Next " button to accept the default settings at the Choose Components dialog box.

Fix basic network applications with Wireshark (Ethereal) Picture 3Fix basic network applications with Wireshark (Ethereal) Picture 3

5. Click the " Next " button in the Select Additional Tasks dialog box.

Fix basic network applications with Wireshark (Ethereal) Picture 4Fix basic network applications with Wireshark (Ethereal) Picture 4

6. Click the " Next " button in the Choose Install Location dialog box.

Fix basic network applications with Wireshark (Ethereal) Picture 5Fix basic network applications with Wireshark (Ethereal) Picture 5

7. At this point, the installer will ask if you want to install WinPap. Make sure that the WinPcap Instal box is selected and click the " Next " button.

Fix basic network applications with Wireshark (Ethereal) Picture 6Fix basic network applications with Wireshark (Ethereal) Picture 6

8. The installation of Wireshark will start copying files to your system.

Fix basic network applications with Wireshark (Ethereal) Picture 7Fix basic network applications with Wireshark (Ethereal) Picture 7

9. The WinPcap installer will be introduced during Wireshark installation. Click the " Next " button at the Welcome screen.

Fix basic network applications with Wireshark (Ethereal) Picture 8Fix basic network applications with Wireshark (Ethereal) Picture 8

10. Click the " Next " button at the WinPcap Setup Wizard screen.

Fix basic network applications with Wireshark (Ethereal) Picture 9Fix basic network applications with Wireshark (Ethereal) Picture 9

11. Press the " I Agree " button at the License Agreement screen.

Fix basic network applications with Wireshark (Ethereal) Picture 10Fix basic network applications with Wireshark (Ethereal) Picture 10

12. Click the " Finish " button to receive the WinPcap installer.

Fix basic network applications with Wireshark (Ethereal) Picture 11Fix basic network applications with Wireshark (Ethereal) Picture 11

13. Click the " Next " button in the Wireshark Installtion Complete dialog box.

Fix basic network applications with Wireshark (Ethereal) Picture 12Fix basic network applications with Wireshark (Ethereal) Picture 12

14. Click the " Finish " button to close the Wireshark installer.

Fix basic network applications with Wireshark (Ethereal) Picture 13Fix basic network applications with Wireshark (Ethereal) Picture 13

Run Wireshark on Windows

Start Wireshark

Start Wireshark on windows simply by double-clicking the shortcut on the Start menu. This will help open up Wireshark's main screen.

Fix basic network applications with Wireshark (Ethereal) Picture 14Fix basic network applications with Wireshark (Ethereal) Picture 14

Fix basic network applications with Wireshark (Ethereal) Picture 15Fix basic network applications with Wireshark (Ethereal) Picture 15

Wireshark interface

The interface of Wireshark is very simple.

1. Title bar - This bar will contain different information depending on what Wireshark is doing. If it is capturing network data, it will understand the current power delivery. If it is displaying data from the previous data capture, the name of the file contained in the captured data will be displayed (untitled will be displayed if the captured time is displayed, stopped and not saved. ). Otherwise it will display the name of the application: Wireshark network Protocol Analyzer .

2. Menu bar - This bar provides access to application features.

a.File - Functions that work with captured data such as saving and exporting to different file formats.

b. Edit - Functions for finding packets, setting time changes, and referring to settings

c. View - The function to change how Wireshark displays information.

d. Go - The function to find the location of a specified packet.

e. Capture - The function to start and stop captures, save filters and work with network interfaces.

f. Analyze - Function to interpret and filter captured data.

g. Statistics - Function of statistical analysis of captured data.

hour. Help - Help function.

3. Main tool bar - Shortcut to use commonly used functions in the menu bar.

4. Filter tool bar - Quick access to filter function.

5. Packet list pane - Displays all packets in the current capture file.

6. Packet details pane - Specify the details of the currently selected packet in the Packet List pane.

7. Packet bytes pane - View hexdum of existing packets in the Packet List.

8. Status bar - Provides messages and feedback to users.

Fix basic network applications with Wireshark (Ethereal) Picture 16Fix basic network applications with Wireshark (Ethereal) Picture 16

Examples of how Wireshark works

In this example, I will start Wireshark capturing packets on the laptop's wireless network. I will then launch Thunderbird to retrieve email from Comcast and Gmail.

1. First start Wireshark.

2. Then select Capture -> Interfaces from the menu bar.

Fix basic network applications with Wireshark (Ethereal) Picture 17Fix basic network applications with Wireshark (Ethereal) Picture 17

3. Then the Interfaces dialog box will be opened. Select the interface you want to use. This is important when Wireshakr (as with any other protocol analyzer) can only capture data from a network it connects to naturally. I use wireless Ethernet adapter in my laptop so I will choose Intel adapter in the list. Click " Start " button. The data capture process will be started. After a short time, you will see the main window of Wireshark (packet list, details and byte frame) filled with data.

Fix basic network applications with Wireshark (Ethereal) Picture 18Fix basic network applications with Wireshark (Ethereal) Picture 18

4. Now I will launch Thunderbird and log in to both Gmail and Comcast accounts. At this point I will wait for all mail to download and then stop the network capture by selecting Capture -> Stop from the menu bar. Click File and Save to save capturing this data to disk after all data has been captured.

Fix basic network applications with Wireshark (Ethereal) Picture 19Fix basic network applications with Wireshark (Ethereal) Picture 19

5. I just caught 2 complete POP3 sessions with Wireshark. To get the pop version information separately, I will use a filter. In the filter bar, enter the following text and press the "apply": tcp.port eq 110 button . This will limit the display of traffice on tcp 110 port (pop port). Also note that Wireshark understands POP (Post Office Protocol), so it will display bits of information such as POP commands and authentication information. I do not connect to the Comcast mail server using SSL so my password is contained in the traffic in clear text meaning the data is not encrypted. I have to choose this screenshot wisely and actually use this to fix issues about client users connecting to pop and imap servers.

Fix basic network applications with Wireshark (Ethereal) Picture 20Fix basic network applications with Wireshark (Ethereal) Picture 20

6. Drag the scroll bar down to the bottom of the captured data after it shows only a conversation between two hosts: my laptop and Comcast mail server. What happens to Gmail? Because I use SSL with gmail account and SSL POP connection is combined with port 995, not port 110. In the filter bar fill in the following text and press "apply": tcp.port eq 995 . This will show all POP via SSL. But note that no other details will be available about this application protocol. The protocol used on port 995 is TCP, SSL and TLS. You will see some packets that come with keys, but that's all to do with security issues associated with SSL and TLS. All data of this application has been encrypted.

Fix basic network applications with Wireshark (Ethereal) Picture 21Fix basic network applications with Wireshark (Ethereal) Picture 21

5 ★ | 1 Vote