CSWT1111
CSWT1111
Aim: Basic Packet Inspection: Capture network tra c using Wire shark and analyse basic
protocols like HTTP, DNS, and SMTP to understand how data is transmitted and received.
Select the network interface you want to capture tra c from (e.g., Ethernet, Wi-Fi).
ffl
ff
ffi
ffi
ffi
ffi
Open Wireshark after installation . Click on the "Start" button to begin capturing tra c.
Use the lter bar at the top and type "http" to lter HTTP tra c.
You will see a list of HTTP packets exchanged during your browsing session. Click on any
packet to view its details in the middle pane. You can analyse headers, payloads, and
other information here.
DNS : While Wireshark is still capturing, perform a DNS query by entering a website URL
in the browser’s address bar.
Use the lter bar and type "dns" to lter DNS tra c.
You'll see DNS queries and responses. You can analyse the domain names queried and
the IP addresses resolved.
Use the lter bar and type "smtp" to lter SMTP tra c.
You'll see SMTP packets related to sending emails. Analyse sender, recipient, subject,
and other relevant information.
Wireshark lters
Capture lters limit the captured packets by the chosen lter. If the packets don't match
the lter:
a. host IP-address. This lter limits the captured tra c to and from the IP address
b. net 192.168.0.0/24: This lter captures all tra c on the subnet
c. dst host IP-address: Capture packets sent to the speci ed host
d. port 53: Capture tra c on port 53 only
e. port not 53 and not arp: Capture all tra c except DNS and ARP tra c
Wireshark display lters change the view of the capture during analysis.
i) ip.src== IP-address and ip.dst==IP-address This lter shows packets sent from one
computer (ip.src) to another (ip.dst). You can also use ip.addr to show packets to and
from that IP.
fi
fi
fi
fi
fi
fi
fi
ffi
fi
fi
fi
ffi
ffi
ffi
ffi
ffi
fi
fi
fi
ffi
ii) tcp.port eq 25: This lter will show you all tra c on port 25, which is usually SMTP
tra c
iii) icmp: This lter will show you only ICMP tra c in the capture, most likely they are
pings
iv) ip.addr!=IP_address: This lter shows you all tra c except the tra c to or from the
speci ed computer