Friday, August 17, 2012

Wireshark quick tips: filters



as we move forward preparing to really get deep into the pen testing and network testing, its good to know some ways to relly use Wireshark filters. so im going to list soem common filters and ones that i use regularly.
Filters:

ip.addr == 10.0.0.1 [Sets a filter for any packet with 10.0.0.1, as either the source or dest]

ip.addr==10.0.0.1 && ip.addr==10.0.0.2 [sets a conversation filter between the two defined IP addresses]

http or dns [sets a filter to display all http and dns]

tcp.port==4000 [sets a filter for any TCP packet with 4000 as a source or dest port]

tcp.flags.reset==1 [displays all TCP resets]

http.request [displays all HTTP GET requests]

tcp contains traffic [displays all TCP packets that contain the word ‘traffic’. Excellent when searching on a specific string or user ID]

!(arp or icmp or dns) [masks out arp, icmp, dns, or whatever other protocols may be background noise. Allowing you to focus on the traffic of interest]

udp contains 33:27:58 [sets a filter for the HEX values of 0x33 0x27 0x58 at any offset]

tcp.analysis.retransmission [displays all retransmissions in the trace. Helps when tracking down slow application performance and packet loss]

Frame Type/Subtype Filter

Management Frames - wlan.fc.type==0

Association Request - wlan.fc.type_subtype==0

Association Response - wlan.fc.type_subtype==1

Ressociation Request - wlan.fc.type_subtype==2

Ressociation Response - wlan.fc.type_subtype==3

Probe Request - wlan.fc.type_subtype==4

Probe Response - wlan.fc.type_subtype==5

Beacon - wlan.fc.type_subtype==8

ATIM - wlan.fc.type_subtype==9

Disassociate - wlan.fc.type_subtype==10

Authentication - wlan.fc.type_subtype==11

Deauthentication - wlan.fc.type_subtype==12

Association Request - wlan.fc.type_subtype==0

Association Request - wlan.fc.type_subtype==0

Control Frames -  wlan.fc.type==1

Power-Save Poll - wlan.fc.type_subtype==26

Request To Send - RTS wlan.fc.type_subtype==27

Clear To Send - CTS wlan.fc.type_subtype==28

Acknowledgement - ACK wlan.fc.type_subtype==29

Data Frames -  wlan.fc.type==2

NULL Data - wlan.fc.type_subtype==36

Search probe requests -wlan_mgt

No comments:

Post a Comment