
The matches operator allows a filter to apply to a specified. Write an wireshark capture filter expression for Question 10. The contains operator cannot be used on atomic fields, such as numbers or IP addresses. You could write: tcp.ip = 10.0.1.12 and tcp.port = 23 Write the syntax for an wireshark display filter that shows packets containing TCP segments with a source or destination IP address equal to 10.0.1.12 and using port number 23.

You could write: icmp.ip = 10.0.1.12 and frame.len >= 15 and frame.len <= 30 Write the syntax for an wireshark dislay filter that shows packets containing ICMP messages with a source or destination IP address equal to 10.0.1.12 and frame numbers between 15 and 30. You could write: ip.dst = 10.0.1.50 and frame.len > 400 Write the syntax for an wireshark display filter that shows IP datagrams with a destination IP address equal to 10.0.1.50 and frame sizes greater than 400 bytes. Write the syntax for an wireshark command with capture filter so that all IP datagrams ith a source or destination IP address equal to 10.0.1.12 are recorded. Without the key log file, we cannot see any details of the traffic, just the IP addresses, TCP ports and domain names, as shown in Figure 7. You could write: tcpdump tcp host 10.0.1.12 port 23 Write a tcpdump filter expression that in addition to the constraints in Question 5, only captures packets using port number 23. You could write: tcpdump tcp host 10.0.1.12 Write a tcpdump filter expression that captures packets containing TCP segments with a source or destination IP address equal to 10.0.1.12.


Write the syntax of a tcpdump command that captures packets containing IP data-grams between two hosts with IP addresses 10.0.1.11 and 10.0.1.12, both on interface eth1. You could write: tcpdump icmp host 10.0.1.12 Write the syntax of a tcpdump command that captures packets containing ICMP messages with a source or destination IP address equal to 10.0.1.12. Write the syntax of a tcpdump command that captures packets containing IP data-grams wth a source or destinaton IP address equal to 10.0.1.12. Tips and tricks When filtering for web traffic be sure to check out the article Using Chrome Devtools with Wireshark, as it will make it really easy to know what port is being used by the computer to communicate. Write the syntax for an ifconfig command that sets the IP address of theinterface eth0 to 128.143.2.3/16 with broadcast address 128.143.255.255. The filter tcp.port 80 and ip.addr 17.253.17.210 is going to find everything on TCP port 80 going to the IP of 17.253.17.210.
