SlideShare a Scribd company logo
Writing Wireshark filter
expressions for packet capture
Group Members:
Zafran Ullah, Ihsan Ali,
Babar Naseer
Wireshark
O Wireshark is a free and open-source
packet analyzer.
O It is used for network troubleshooting,
analysis, software and communications
protocol development, and education.
O Two types of filter expressions are used in
wireshark
 Capture filter
 Display filter
Wireshark
Tasks
O Task1: Capturing and analyzing TCP
packets
O Task2: Capturing and analyzing http
packets
O Task3: Capturing and analyzing packets
from PLAYIT.PK
Capture all TCP traffic to/from Facebook, during
the time when you log in to your Facebook account
O Facebook ip = 31.13.86.8
O User ip =10.110.161.147
O Capture Filter: tcp and host 31.13.86.8
O Packets Captured: 643 over 25 seconds
O Packets sent to facebook: 252
Display Filter: ip.dst==31.13.86.8
O Packets received from facebook:
391
Display Filter:
ip.dst==10.110.161.147
SYN Flag
O The SYN flag synchronizes sequence
numbers to initiate a TCP connection
Capture all TCP traffic to/from Facebook, during
the time when you log in to your Facebook account
O SYN Flag:
For packets with SYN flag set
Display filter: tcp.flags.syn==1 , Packets: 5
For packets with SYN flag not set
Display filter: tcp.flags.syn==0 , Packets: 638
Number of packets with SYN set & sent to host:
Display filter :tcp.flags.syn==1 && ip.dst==10.110.161.147 ,
Packets:1
Number of TCP packets with SYN flag set and sent to
Facebook:
Display filter: tcp.flags.syn==1 && ip.dst== 31.13.86.8 ,
Packets:4
PUSH
O PSH- Push forces data delivery without
waiting for buffers to fill. This is used for
interactive traffic. The data will also be
delivered to the application on the
receiving end with out buffering.
Capture all TCP traffic to/from Facebook, during
the time when you log in to your Facebook account
O PSH Flag:
For packets with PUSH flag set
Display filter: tcp.flags.push==1 , Packets: 250
For packets with PUSH flag not set
Display filter: tcp.flags.push==0 , Packets:393
Number of packets with PUSH set & sent to host:
Display filter :tcp.flags.push==1 && ip.dst==10.110.164.135 ,
Packets:156
Number of TCP packets with PUSH flag set and sent to
Facebook:
Display filter: tcp.flags.push==1 && ip.dst== 31.13.67.1 ,
Packets:94
Capture all TCP traffic to/from Facebook, during
the time when you log in to your Facebook account
O PSH & SYN Flag:
For packets with PUSH & SYN flag set
Display filter: (tcp.flags.push==1&&tcp.flags.syn==1) ,
Packets: 0
For packets with PUSH & SYN flag not set
Display filter: (tcp.flags.push==0&&tcp.flags.syn==0) ,
Packets: 388
Number of packets with PUSH & SYN set & sent to host:
Display filter : (tcp.flags.push==1&&tcp.flags.syn==1)
&&ip.dst==10.110.161.147,
Packets:0
Number of TCP packets with PUSH & SYN flag set and sent to
Facebook:
Display filter (tcp.flags.push==1&&tcp.flags.syn==1)
&&ip.dst==31.13.86.8 , Packets:0
RST Flag
O RST- Reset is an instantaneous abort in
both directions or shows abnormal
session disconnection
Capture all TCP traffic to/from Facebook, during
the time when you log in to your Facebook account
O Reset Flag:
For packets with RESET flag set
Display filter: tcp.flags.reset==1 , Packets: 0
For packets with RESET flag not set
Display filter: tcp.flags. reset==0 , Packets: 625
Captured TCP Packets Statistics
Task: Capture all TCP traffic to/from Facebook
Total Captured Packets
Packets Sent to Facebook
Packets Received from Facebook
Packets Sent to Facebook with SYN flag set
Packets Sent to Facebook with PSH flag set
Packets Received from Facebook with SYN flag set
Packets Received from Facebook with PSH flag set
Packets Sent to Facebook with SYN & PSH flags set
Packets Received from Facebook with SYN & PSH flags
set
Total Packets With SYN flag set
Total Packets With PSH flag set
Total Packets With RST flag set
643
252
391
4
94
1
156
0
0
5
250
0
Task 2: Capture all HTTP traffic to and from
Facebook while logging
O Display Filter:
Tcp port 80 and host 31.13.86.8
O Packets received from Facebook
ip.dst==10.110.161.147
O Packets sent to Facebook
Display Filter:
ip.dst==3l.13.86.8
Task 3:capture all traffic to and from
Playit.pk while playing a Popular video
Playit.pk
Playit.pk :ip address 162.159.241.198)
No capture filters were utilized as Playit.pk servers may change
during streaming.
Task 3:capture all traffic to and from
Playit.pk while playing a Popular video
O Total Packets :223
O For packets with SYN flag set
Display filter: tcp.flags.syn==1 , Packets: 42
For packets PSH flag set
Display filter: tcp.flags.push==1, Packets: 47
Number of packets with RST flag set :
Display filter: tcp.flags.reset==1, Packets: 1
Number of TCP packets sent by host and received by
Facebook:
Display filter (ip.src== 10.110.164.135 and
ip.dst==162.159.241.198), Packets:117
Number of TCP packets sent by host and received by
Facebook:
Display filter (ip.src== 162.159.241.198 and ip.dst==
10.110.164.135), Packets:115
When Psh Flag==1
0
5
10
15
20
25
30
35
40
0 to 5 5 to 10 10 to 1515 to 2020 to 2525 to 30
Packets
Time sec
Histogram of Packets size
O Filter used:
frame.cap_len >= x && frame.cap_len <y
O From x to y
frame.cap_len >= 0 && frame.cap_len <100
Histogram of Packets size
0
50
100
150
200
250
300
NumberofPackets
Size
Writing Wireshark Filter Expression For Capturing Packets

More Related Content

What's hot

Tcp and udp
Tcp and udpTcp and udp
Tcp and udp
Ahmad Khalid Nasrat
 
Socket programming-in-python
Socket programming-in-pythonSocket programming-in-python
Socket programming-in-python
Yuvaraja Ravi
 
Socket Programming
Socket ProgrammingSocket Programming
Socket Programming
CEC Landran
 
Leaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingLeaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shaping
Vimal Dewangan
 
Congestion control in TCP
Congestion control in TCPCongestion control in TCP
Congestion control in TCP
selvakumar_b1985
 
TCP and UDP
TCP and UDP TCP and UDP
TCP and UDP
Ramesh Giri
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
k33a
 
IP Routing Tutorial
IP Routing TutorialIP Routing Tutorial
IP Routing Tutorial
ShortestPathFirst
 
Routing Information Protocol
Routing Information ProtocolRouting Information Protocol
Routing Information ProtocolKashif Latif
 
Application Layer
Application Layer Application Layer
Application Layer
Dr Shashikant Athawale
 
8. mutual exclusion in Distributed Operating Systems
8. mutual exclusion in Distributed Operating Systems8. mutual exclusion in Distributed Operating Systems
8. mutual exclusion in Distributed Operating Systems
Dr Sandeep Kumar Poonia
 
Addressing in networking (IP,MAC,Port addressing)
Addressing in networking (IP,MAC,Port addressing)Addressing in networking (IP,MAC,Port addressing)
Addressing in networking (IP,MAC,Port addressing)
Geethu Jose
 
IP addressing seminar ppt
IP addressing seminar pptIP addressing seminar ppt
IP addressing seminar ppt
Smriti Rastogi
 
Distance Vector Routing Protocols
Distance Vector Routing ProtocolsDistance Vector Routing Protocols
Distance Vector Routing Protocols
KABILESH RAMAR
 
Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer Protocol
Ujjayanta Bhaumik
 
Wireshark
WiresharkWireshark
Https presentation
Https presentationHttps presentation
Https presentation
patel jatin
 

What's hot (20)

Tcp and udp
Tcp and udpTcp and udp
Tcp and udp
 
Link state protocols.ppt
Link state protocols.pptLink state protocols.ppt
Link state protocols.ppt
 
Socket programming-in-python
Socket programming-in-pythonSocket programming-in-python
Socket programming-in-python
 
Socket Programming
Socket ProgrammingSocket Programming
Socket Programming
 
Leaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingLeaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shaping
 
Congestion control in TCP
Congestion control in TCPCongestion control in TCP
Congestion control in TCP
 
TCP and UDP
TCP and UDP TCP and UDP
TCP and UDP
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
 
IP Routing Tutorial
IP Routing TutorialIP Routing Tutorial
IP Routing Tutorial
 
Routing Information Protocol
Routing Information ProtocolRouting Information Protocol
Routing Information Protocol
 
Application Layer
Application Layer Application Layer
Application Layer
 
8. mutual exclusion in Distributed Operating Systems
8. mutual exclusion in Distributed Operating Systems8. mutual exclusion in Distributed Operating Systems
8. mutual exclusion in Distributed Operating Systems
 
Addressing in networking (IP,MAC,Port addressing)
Addressing in networking (IP,MAC,Port addressing)Addressing in networking (IP,MAC,Port addressing)
Addressing in networking (IP,MAC,Port addressing)
 
IP addressing seminar ppt
IP addressing seminar pptIP addressing seminar ppt
IP addressing seminar ppt
 
Distance Vector Routing Protocols
Distance Vector Routing ProtocolsDistance Vector Routing Protocols
Distance Vector Routing Protocols
 
Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer Protocol
 
Wireshark
WiresharkWireshark
Wireshark
 
Packet scheduling
Packet schedulingPacket scheduling
Packet scheduling
 
Https presentation
Https presentationHttps presentation
Https presentation
 
Icmp
IcmpIcmp
Icmp
 

Similar to Writing Wireshark Filter Expression For Capturing Packets

Tutorial of SF-TAP Flow Abstractor
Tutorial of SF-TAP Flow AbstractorTutorial of SF-TAP Flow Abstractor
Tutorial of SF-TAP Flow Abstractor
Yuuki Takano
 
Traffic-Monitoring.ppt
Traffic-Monitoring.pptTraffic-Monitoring.ppt
Traffic-Monitoring.ppt
Senthil Vit
 
Traffic-Monitoring.ppt
Traffic-Monitoring.pptTraffic-Monitoring.ppt
Traffic-Monitoring.ppt
ssuser0a05422
 
Traffic-Monitoring.ppt
Traffic-Monitoring.pptTraffic-Monitoring.ppt
Traffic-Monitoring.ppt
ToffeeLomerz
 
Type of DDoS attacks with hping3 example
Type of DDoS attacks with hping3 exampleType of DDoS attacks with hping3 example
Type of DDoS attacks with hping3 example
Himani Singh
 
Skype
SkypeSkype
Handy Networking Tools and How to Use Them
Handy Networking Tools and How to Use ThemHandy Networking Tools and How to Use Them
Handy Networking Tools and How to Use Them
Sneha Inguva
 
Exploiting Network Protocols To Exhaust Bandwidth Links 2008 Final
Exploiting Network Protocols To Exhaust Bandwidth Links 2008 FinalExploiting Network Protocols To Exhaust Bandwidth Links 2008 Final
Exploiting Network Protocols To Exhaust Bandwidth Links 2008 Finalmasoodnt10
 
SnorGen User Guide 2.0
SnorGen User Guide 2.0SnorGen User Guide 2.0
SnorGen User Guide 2.0
Sungho Yoon
 
08 module interconnecting cisco router
08 module interconnecting cisco router08 module interconnecting cisco router
08 module interconnecting cisco routerAsif
 
Traffic monitoring
Traffic monitoringTraffic monitoring
Traffic monitoring
Radu Galbenu
 
Pcapy and dpkt - tcpdump on steroids - Ran Leibman - DevOpsDays Tel Aviv 2018
Pcapy and dpkt - tcpdump on steroids - Ran Leibman - DevOpsDays Tel Aviv 2018Pcapy and dpkt - tcpdump on steroids - Ran Leibman - DevOpsDays Tel Aviv 2018
Pcapy and dpkt - tcpdump on steroids - Ran Leibman - DevOpsDays Tel Aviv 2018
DevOpsDays Tel Aviv
 
Information Theft: Wireless Router Shareport for Phun and profit - Hero Suhar...
Information Theft: Wireless Router Shareport for Phun and profit - Hero Suhar...Information Theft: Wireless Router Shareport for Phun and profit - Hero Suhar...
Information Theft: Wireless Router Shareport for Phun and profit - Hero Suhar...
idsecconf
 
Cyber security and ethical hacking 3
Cyber security and ethical hacking 3Cyber security and ethical hacking 3
Cyber security and ethical hacking 3
Mehedi Hasan
 
Day2
Day2Day2
Day2
Jai4uk
 
Open source network forensics and advanced pcap analysis
Open source network forensics and advanced pcap analysisOpen source network forensics and advanced pcap analysis
Open source network forensics and advanced pcap analysis
GTKlondike
 
Chapter 01 - Overview
Chapter 01 - OverviewChapter 01 - Overview
Chapter 01 - Overviewphanleson
 

Similar to Writing Wireshark Filter Expression For Capturing Packets (20)

Tutorial of SF-TAP Flow Abstractor
Tutorial of SF-TAP Flow AbstractorTutorial of SF-TAP Flow Abstractor
Tutorial of SF-TAP Flow Abstractor
 
Traffic-Monitoring.ppt
Traffic-Monitoring.pptTraffic-Monitoring.ppt
Traffic-Monitoring.ppt
 
Traffic-Monitoring.ppt
Traffic-Monitoring.pptTraffic-Monitoring.ppt
Traffic-Monitoring.ppt
 
Traffic-Monitoring.ppt
Traffic-Monitoring.pptTraffic-Monitoring.ppt
Traffic-Monitoring.ppt
 
Type of DDoS attacks with hping3 example
Type of DDoS attacks with hping3 exampleType of DDoS attacks with hping3 example
Type of DDoS attacks with hping3 example
 
Skype
SkypeSkype
Skype
 
Intro to Ethernet
Intro to EthernetIntro to Ethernet
Intro to Ethernet
 
Handy Networking Tools and How to Use Them
Handy Networking Tools and How to Use ThemHandy Networking Tools and How to Use Them
Handy Networking Tools and How to Use Them
 
Exploiting Network Protocols To Exhaust Bandwidth Links 2008 Final
Exploiting Network Protocols To Exhaust Bandwidth Links 2008 FinalExploiting Network Protocols To Exhaust Bandwidth Links 2008 Final
Exploiting Network Protocols To Exhaust Bandwidth Links 2008 Final
 
Stu t17 a
Stu t17 aStu t17 a
Stu t17 a
 
SnorGen User Guide 2.0
SnorGen User Guide 2.0SnorGen User Guide 2.0
SnorGen User Guide 2.0
 
08 module interconnecting cisco router
08 module interconnecting cisco router08 module interconnecting cisco router
08 module interconnecting cisco router
 
Traffic monitoring
Traffic monitoringTraffic monitoring
Traffic monitoring
 
Pcapy and dpkt - tcpdump on steroids - Ran Leibman - DevOpsDays Tel Aviv 2018
Pcapy and dpkt - tcpdump on steroids - Ran Leibman - DevOpsDays Tel Aviv 2018Pcapy and dpkt - tcpdump on steroids - Ran Leibman - DevOpsDays Tel Aviv 2018
Pcapy and dpkt - tcpdump on steroids - Ran Leibman - DevOpsDays Tel Aviv 2018
 
Information Theft: Wireless Router Shareport for Phun and profit - Hero Suhar...
Information Theft: Wireless Router Shareport for Phun and profit - Hero Suhar...Information Theft: Wireless Router Shareport for Phun and profit - Hero Suhar...
Information Theft: Wireless Router Shareport for Phun and profit - Hero Suhar...
 
Cyber security and ethical hacking 3
Cyber security and ethical hacking 3Cyber security and ethical hacking 3
Cyber security and ethical hacking 3
 
Scanning
ScanningScanning
Scanning
 
Day2
Day2Day2
Day2
 
Open source network forensics and advanced pcap analysis
Open source network forensics and advanced pcap analysisOpen source network forensics and advanced pcap analysis
Open source network forensics and advanced pcap analysis
 
Chapter 01 - Overview
Chapter 01 - OverviewChapter 01 - Overview
Chapter 01 - Overview
 

Recently uploaded

Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
top1002
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
ChristineTorrepenida1
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERSCW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
veerababupersonal22
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 

Recently uploaded (20)

Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERSCW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 

Writing Wireshark Filter Expression For Capturing Packets

  • 1. Writing Wireshark filter expressions for packet capture Group Members: Zafran Ullah, Ihsan Ali, Babar Naseer
  • 2. Wireshark O Wireshark is a free and open-source packet analyzer. O It is used for network troubleshooting, analysis, software and communications protocol development, and education.
  • 3. O Two types of filter expressions are used in wireshark  Capture filter  Display filter Wireshark
  • 4. Tasks O Task1: Capturing and analyzing TCP packets O Task2: Capturing and analyzing http packets O Task3: Capturing and analyzing packets from PLAYIT.PK
  • 5. Capture all TCP traffic to/from Facebook, during the time when you log in to your Facebook account O Facebook ip = 31.13.86.8 O User ip =10.110.161.147 O Capture Filter: tcp and host 31.13.86.8 O Packets Captured: 643 over 25 seconds O Packets sent to facebook: 252 Display Filter: ip.dst==31.13.86.8 O Packets received from facebook: 391 Display Filter: ip.dst==10.110.161.147
  • 6. SYN Flag O The SYN flag synchronizes sequence numbers to initiate a TCP connection
  • 7. Capture all TCP traffic to/from Facebook, during the time when you log in to your Facebook account O SYN Flag: For packets with SYN flag set Display filter: tcp.flags.syn==1 , Packets: 5 For packets with SYN flag not set Display filter: tcp.flags.syn==0 , Packets: 638 Number of packets with SYN set & sent to host: Display filter :tcp.flags.syn==1 && ip.dst==10.110.161.147 , Packets:1 Number of TCP packets with SYN flag set and sent to Facebook: Display filter: tcp.flags.syn==1 && ip.dst== 31.13.86.8 , Packets:4
  • 8. PUSH O PSH- Push forces data delivery without waiting for buffers to fill. This is used for interactive traffic. The data will also be delivered to the application on the receiving end with out buffering.
  • 9. Capture all TCP traffic to/from Facebook, during the time when you log in to your Facebook account O PSH Flag: For packets with PUSH flag set Display filter: tcp.flags.push==1 , Packets: 250 For packets with PUSH flag not set Display filter: tcp.flags.push==0 , Packets:393 Number of packets with PUSH set & sent to host: Display filter :tcp.flags.push==1 && ip.dst==10.110.164.135 , Packets:156 Number of TCP packets with PUSH flag set and sent to Facebook: Display filter: tcp.flags.push==1 && ip.dst== 31.13.67.1 , Packets:94
  • 10. Capture all TCP traffic to/from Facebook, during the time when you log in to your Facebook account O PSH & SYN Flag: For packets with PUSH & SYN flag set Display filter: (tcp.flags.push==1&&tcp.flags.syn==1) , Packets: 0 For packets with PUSH & SYN flag not set Display filter: (tcp.flags.push==0&&tcp.flags.syn==0) , Packets: 388 Number of packets with PUSH & SYN set & sent to host: Display filter : (tcp.flags.push==1&&tcp.flags.syn==1) &&ip.dst==10.110.161.147, Packets:0 Number of TCP packets with PUSH & SYN flag set and sent to Facebook: Display filter (tcp.flags.push==1&&tcp.flags.syn==1) &&ip.dst==31.13.86.8 , Packets:0
  • 11. RST Flag O RST- Reset is an instantaneous abort in both directions or shows abnormal session disconnection
  • 12. Capture all TCP traffic to/from Facebook, during the time when you log in to your Facebook account O Reset Flag: For packets with RESET flag set Display filter: tcp.flags.reset==1 , Packets: 0 For packets with RESET flag not set Display filter: tcp.flags. reset==0 , Packets: 625
  • 13. Captured TCP Packets Statistics Task: Capture all TCP traffic to/from Facebook Total Captured Packets Packets Sent to Facebook Packets Received from Facebook Packets Sent to Facebook with SYN flag set Packets Sent to Facebook with PSH flag set Packets Received from Facebook with SYN flag set Packets Received from Facebook with PSH flag set Packets Sent to Facebook with SYN & PSH flags set Packets Received from Facebook with SYN & PSH flags set Total Packets With SYN flag set Total Packets With PSH flag set Total Packets With RST flag set 643 252 391 4 94 1 156 0 0 5 250 0
  • 14. Task 2: Capture all HTTP traffic to and from Facebook while logging O Display Filter: Tcp port 80 and host 31.13.86.8 O Packets received from Facebook ip.dst==10.110.161.147 O Packets sent to Facebook Display Filter: ip.dst==3l.13.86.8
  • 15. Task 3:capture all traffic to and from Playit.pk while playing a Popular video Playit.pk Playit.pk :ip address 162.159.241.198) No capture filters were utilized as Playit.pk servers may change during streaming.
  • 16. Task 3:capture all traffic to and from Playit.pk while playing a Popular video O Total Packets :223 O For packets with SYN flag set Display filter: tcp.flags.syn==1 , Packets: 42 For packets PSH flag set Display filter: tcp.flags.push==1, Packets: 47 Number of packets with RST flag set : Display filter: tcp.flags.reset==1, Packets: 1 Number of TCP packets sent by host and received by Facebook: Display filter (ip.src== 10.110.164.135 and ip.dst==162.159.241.198), Packets:117 Number of TCP packets sent by host and received by Facebook: Display filter (ip.src== 162.159.241.198 and ip.dst== 10.110.164.135), Packets:115
  • 17. When Psh Flag==1 0 5 10 15 20 25 30 35 40 0 to 5 5 to 10 10 to 1515 to 2020 to 2525 to 30 Packets Time sec
  • 18. Histogram of Packets size O Filter used: frame.cap_len >= x && frame.cap_len <y O From x to y frame.cap_len >= 0 && frame.cap_len <100
  • 19. Histogram of Packets size 0 50 100 150 200 250 300 NumberofPackets Size