Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Wireshark capture filter source and destination ip

07/12/2021 Client: muhammad11 Deadline: 2 Day

Practice Assignment Answers

Question-1. A company has been assigned a class B address. A subnet of this company has network address 136.24.80.0 and direct broadcast address 136.24.85.63. a) Based on the previous information, provide the two smallest network addresses that can be assigned to subnets of this company. b) Provide the smallest and largest IP address that can be assigned to a host in each one of the subnets of previous question “a)”. c) Provide the two largest network addresses that can be assigned to subnets of this company. d) Provide the smallest and largest IP address that can be assigned to a host in each one of the subnets of previous question “c)”. You must provide the values of all derived network address and IP addresses in Dotted Decimal Notation. You must show your

derivations.

Net address: 136.24.0101 0000 . 0000 0000

Broadcast address: 136.24.0101 0101 . 0011 1111

Since the blue bits are 0 in the net address and 1 in the broadcast address, they are host bits. Thus, the red bits are net bits

Smallest 2 Net Addresses

NNNN NHNH NNHH HHHH

IP addresses assigned to hosts

136.24.0000

0000. 0000 0000

136.24.0.0

Smallest IP

136.24.0000

0000. 0000 0001

136.24.0.1

Largest IP

136.24.0000

0101. 0011 1110

136.24.5.62

136.24.0000

0000. 0100 0000

136.24.64.0

Smallest IP

136.24.0000 0000. 0100 0001

136.24.0.65

Largest IP

136.24.0000

0101. 0111 1110

136.24.5.126

…………………………………………………………………………………………………….

Largest 2 Net Addresses

IP addresses assigned to hosts

136.24.1111

1010. 1000 0000 136.24.250.128

Smallest IP 136.24.1111 1010. 1000 0001 136.24.250.129

Largest IP

136.24.1111

1111. 1011 1110 136.24.255.190

136.24.1111

1010. 11 00 0000

136.24.250.192

Smallest IP 136.24.1111 1010. 11 00 0001 136.24.250.193

Largest IP

136.24.1111

1111. 11 11 1110 136.24.255.254

Question-2.

Start your Bt5, Kali (or other Linux virtual machine) that has hping3 tool installed. Now use ifconfig to find its IP

address; to find the IP address of your host OS you can also use ifconfig (if it is Linux) or ipconfig (if it is

Windows). Capture screenshots of your ifconfig (or ipconfig) commands and corresponding outputs; showing the

two IP addresses. Now start Wireshark in both Bt5 and host OS and select non-promiscuous mode. In both Bt5

and host OS Wireshark add a SrcPort and a DestPort column in the Packet List Pane. In the Wireshark of the

host OS, apply a capture filter that will capture only the TCP packets whose source IP address is the one of Bt5.

Type this capture filter. Also capture a screenshot of this filter in the Wireshark filter box of the host OS. In the

Wireshark of Bt5 apply a packet capture filter that will capture only TCP packets that have ALL of the following

properties: a) destination port 77, b) TCP SYN, PSH, ACK, RST bits set to 1, c) IP Identification field 4572,

d) 1320 TCP data bytes, e) a TCP window size 26000. Type this capture filter. Also capture a screenshot of this

applied filter in the Wireshark filter box of the Bt5. Now start the packet capturing process in both host OS and Bt5

Wiresharks. Next, use (in Bt5) one hping3 command that will transmit 6 TCP packets to the Host OS with

destination ports 74, 75, 76, 77, 78, 79 and 80. Moreover, each one of these packets must have the SYN, PSH,

ACK and RST bits set to 1, its IP Identification field equal to 4572, 1320 TCP data bytes and a TCP window of

26000 bytes. Type the hping3 command you have used. Also capture a screenshot of this hping3 command and its

output. Stop the packet capturing process in both Wiresharks. Capture a screenshot of the packet list pane of the

Bt5 Wireshark and a screenshot of the packet list pane of the Host OS Wireshark showing the captured packets.

Your screenshots in Bt5 and Host OS must show the port numbers of the transmitted packets. How many packets

have been captured by Bt5 Wireshark and how many by the Host OS Wireshark? Is that what you expected?

Explain why or why not.

SOLUTION

Start your Bt5, Kali (or other Linux virtual machine) that has hping3 tool installed. Now use ifconfig to find its IP address; to find the IP address of your host OS you can also use ifconfig (if it is Linux) or ipconfig (if it is Windows). Capture screenshots of your ifconfig (or ipconfig) commands and corresponding outputs; showing the two IP addresses.

Screenshot-2-1: Bt5 ifconfig command and its output; Bt5 IP address is 192.168.183.129

image1.jpg

Screenshot-2-2: Windows (host OS) ifconfig command and its output; Windows IP address is 192.168.183.1

image2.jpg

Screenshot-2-3: Wireshark capture filter in Windows: ip[9]=6 and src host 192.168.183.129

image3.jpg

Bt5 Wireshark Capture Filter components:

a) packets with destination port 77 : tcp dst port 77 ; we can also use tcp[2:2] = 77

b) packets with TCP flgas SYN, PSH, ACK, RST bits set to 1: tcp[13] & 0x1e = 0x1e

c) packets IP Identification field 4572: ip[4:2]=4572

d) 1320 TCP data bytes; we must add 20 bytes TCP header & 20 bytes IP header for IP Total Length field: 1360

ip total length filter: ip[2:2]=1360

e) TCP Window 26000 bytes: tcp [14:2]=26000

Complete Capture Filter:

tcp[2:2] = 77 && (tcp[13] & 0x1e = 0x1e) && ip[4:2]=4572 && ip[2:2]=1360 && tcp [14:2]=26000

Screenshot-2-4: Shows a) eth4 is used in Bt5 with IP address 192.168.183.129, b) Capture Filter used

image4.jpg

Screenshot-2-5: Shows hping3 command and its output; 7 packets have been transmitted

image5.jpg

Screenshot-2-6: Shows that in Bt5 only packet with destination port number 77 has been captured.

image6.jpg

Screenshot-2-7: Shows that in Windows host OS all 7 packets (ports 74,75….78) have been captured.

image7.jpg

Question-3.

Start your Bt5 and host OS system and use ifconfig or ipconfig to find their IP addresses. Capture screenshots

of your ifconfig (or ipconfig) commands and corresponding outputs; showing the IP addresses of Bt5 and host OS.

In your Bt5, type the hping3 command that will transmit to the host OS one TCP packet that has only its SYN bit

set, 42000 TCP data bytes and a destination port number 2266. Type the hping3 command you must use. In your

Bt5, also apply a capture filter that will only capture the 12th and 26th fragments of the transmitted packet. Type

the capture filter you must use. Also capture a screenshot of this filter in the Wireshark filter box of Bt5. In the

host OS start Wireshark and apply a capture filter that will only capture TCP packets with source IP address,

the IP address of Bt5. Capture a screenshot of this filter. Now start both Wiresharks, in Bt5 and host OS and,

then, run the above hping3 command. Capture a screenshot of the hping3 command and the first 14 packets of its

output. Capture a screenshot of the packet list pane of the host OS Wireshark showing in the packet list pane the

first 14 packets. Finally, capture a screenshot of the Bt5 Wireshark showing in the packet list pane the captured

packets, and in the packet detailed pane the fragmentation offset of the 2

nd fragment.

SOLUTION

Start your Bt5 (or Kali) and host OS system and use ifconfig or ipconfig to find their IP addresses. Capture screenshots of your ifconfig (or ipconfig) commands and corresponding outputs; showing the IP addresses of Bt5 and host OS.

Screenshot-3-1: Bt5 ifconfig command and its output; Bt5 IP address is 192.168.183.129

image8.jpg

Screenshot-3-2: Windows (host OS) ifconfig command and its output; Windows IP address is 192.168.183.1

image9.jpg

In your Bt5, type the hping3 command that will transmit to the host OS one TCP packet that has only its SYN bit set, 42000 TCP data bytes and a destination port number 2266. Type the hping3 command you must use.

Bt5 Hping3 command: hping3 -I eth4 -p 2266 -c 1 -S -d 42000 192.168.183.1

In your Bt5, also apply a capture filter that will only capture the 12th and 26th fragments of the transmitted packet.

Type the capture filter you must use. Also capture a screenshot of this filter in the Wireshark filter box of Bt5.

Since the question does not mention IP options, the IP header will be 20 bytes. Since the max IP packet is 1500 bytes including IP header, each fragment will have 1480 IP data bytes. Note that the IP offset field uses unit 8. So the IP offset fields OF1,OF2,OF3,.. (of IP fragments 1,2,3,…) will be:

OF1=0, OF2=1480/8=185, OF3=2*1480/8=2*185, OF4=3*185 … OF12=11*185=2035, OF26=25*185=4625 So Bt5 Capture filter for capturing OF12 and OF26 fragments is: ip[6:2]&0x1fff=2035 or ip[6:2]&0x1fff =4625

In the host OS start Wireshark and apply a capture filter that will only capture TCP packets with source IP address, the IP address of Bt5.

Since the transmitted packets are TCP packets their IP protocol field (9th byte in IP header) will have value 6. So my Windows capture filter will is: ip[9]=6 and src host 192.168.183.1

Screenshot-3-3: Wireshark capture filter in Windows: ip[9]=6 and src host 192.168.183.129

image10.jpg

Screenshot-3-4: Bt5 capture filter: ip[6:2]&0x1fff=2035 or ip[6:2]&0x1fff =4625

image11.jpg

Screenshot-3-5: Bt5 hping3 command and its output

image12.jpg

Finally, capture a screenshot of the Bt5 Wireshark showing in the packet list pane the captured packets, and in the packet detailed pane the fragmentation offset of the 2nd fragment.

Screenshot-3-6: Shows the 2 fragments captured by Bt5 with offsets: 16280 and 37000 Note that 16280/8 = 2035 and 2035/185 = 11 which means this the 12th fragment

where 37000/8 = 4625 and 4625/185 = 25 which means this is the 26th fragment

Note also that in the Packet Byte Pane of Wreshark the fragmentation offset of the 1st captured packet is 0x7f3 whose decimal value is 2035

image13.jpg

Screenshot-3-7: Shows all the fragments captured by the Windows Wireshark with their corresponding fragmentation offset values.

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Top Rated Expert
Financial Hub
Coursework Assignment Help
Assignment Helper
Assignments Hut
Calculation Master
Writer Writer Name Offer Chat
Top Rated Expert

ONLINE

Top Rated Expert

Being a Ph.D. in the Business field, I have been doing academic writing for the past 7 years and have a good command over writing research papers, essay, dissertations and all kinds of academic writing and proofreading.

$48 Chat With Writer
Financial Hub

ONLINE

Financial Hub

I am a PhD writer with 10 years of experience. I will be delivering high-quality, plagiarism-free work to you in the minimum amount of time. Waiting for your message.

$50 Chat With Writer
Coursework Assignment Help

ONLINE

Coursework Assignment Help

Being a Ph.D. in the Business field, I have been doing academic writing for the past 7 years and have a good command over writing research papers, essay, dissertations and all kinds of academic writing and proofreading.

$48 Chat With Writer
Assignment Helper

ONLINE

Assignment Helper

I can assist you in plagiarism free writing as I have already done several related projects of writing. I have a master qualification with 5 years’ experience in; Essay Writing, Case Study Writing, Report Writing.

$17 Chat With Writer
Assignments Hut

ONLINE

Assignments Hut

I have done dissertations, thesis, reports related to these topics, and I cover all the CHAPTERS accordingly and provide proper updates on the project.

$39 Chat With Writer
Calculation Master

ONLINE

Calculation Master

I have done dissertations, thesis, reports related to these topics, and I cover all the CHAPTERS accordingly and provide proper updates on the project.

$44 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Brain and behavior garrett 3rd edition pdf - The reaction inside a chemical heat pack - Canberra country blues & roots festival - Bec caruana til we're naked - Wrd 204: writing exercise 5 - Justice law clerk singapore - Madeleine leininger transcultural nursing theory - Ethics and leadership - Jarvis - Assignment Mini- Study Part I and Part II - Help with web post and responses - Descriptive paragraph topic ideas - Week 3 Discussion - (Rok) week 11 discussion eco100 - Burger king case study international business - Harvey norman whyalla phone - Math for economist - assigment - Dean tennis club booking - A7 size in cm - World religion and culture - I need 1200 words total (3 pages 1.5 spacing) on BASED UPON THE PAPERS AND LECTURES, PLEASE COMPARE BRIEFLY SOCIAL MARKET - Az animals com white tiger - Colgate palmolive company marketing anti cavity toothpaste case study - Five solution analysis lab chemistry - In data flow testing objective is to find - Olive tree custom reading plan - Anova business statistics HW - Reflection paper on organizational behavior - The average product of the 4th worker - A2 dimensions in inches - Bangor dyslexia test free - Building blocks of emotional intelligence - The complete cook's country tv show cookbook pdf - Ieee journal of the electron devices society - PCA-833 - Analysis of commercial bleach lab report - _____ is closely related to corporate social responsibility - Greek club liverpool nsw 2170 - Which of the following best describes b2c e commerce - Week 3 Part 2 - Easy comparative and superlative form - Separation of mixtures post lab answers - Me talk pretty one day quotes analysis - Managerial accounting - Spec 44 wire current rating - Resmed asv titration protocol - Nursing - Heineken brewing a better world case analysis - Art discussion - 8ppol - Explain the biblical mandate for apologetics - Impediments to critical thinking - Partnership act 1892 nsw - What does cate often call her twin sister answer key - How can artificial intelligence improve customer service? - 6.20 warm up online shopping cart java - Journal - CCIS- Art- Mid term (3times) - Cms motorcycle training inverness - In n out burger paper hat - Words that rhyme with wharf - Benchmark - Capstone Project Change Proposal - Coca cola employee perq points - Sheet resistance calculation example - Cloud Computing - Ecce romani ii chapter 35 translation - I need help writing a Control plan for Six Sigma - What are the three types of endowments - Case 6 national collegiate athletic association ethics and compliance program - Writing human resource Essay - The reluctant fundamentalist changez quotes - Disc 363 leadership competency review - See if i care readworks answer key - How to work out hire purchase - Teach like a champion strategies list - Chapter 1 the woodworking industry answer key - Walmart in africa case study - Electric field mapping lab report conclusion - Libs 150 research log project 2 answers - Homework(MK) - Assignment 1 reviewing research and making connections - Lilly pilly goodbye neighbours perth - Marpol annex vi regulation 14 pdf - Uga orbit bus route - Book value per share of common stock of a manufacturing company - Becoming nicole chapter 1 summary sparknotes - Horder & thorley funeral notices - En 10204 latest edition - Darwen 3 day market - How many amps is 6kw - Unit3 - Dictionary guide words practice - Electrolysis of potassium iodide - Jetblue airways ipo valuation excel - Shoebox diorama book report instructions - The book of ruth offers a ray of hope - Stacked stone fountain sharper image - The depth of water behind the hoover dam is 220 m. find the water pressure at the base of this dam. - Anz co nz term deposits - 50 ml volumetric pipette uncertainty