Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

filtering by domain

I want to filter my pcap file by their domains. I mean, I want to see the packets comes on a website ends with ".com", ".org" or ".net".

I tried: dns contains "com", ip.src_host == com, ip.src_host == com, http contains "com". None of them worked correctly.

like image 530
Eray Balkanli Avatar asked Feb 26 '14 00:02

Eray Balkanli


People also ask

What is DNS based filtering?

DNS filtering defined DNS filtering or DNS blocking describes a cybersecurity measure used to stop internet users from accessing unapproved websites on a server. Organizations use DNS blocking to secure their environment against phishing attacks and other cyberthreats.

How do I filter my email domain?

From Setup, in the Quick Find box, enter Email Domain Filters , and then select Email Domain Filters. Select Create Email Domain Filter. Configure these settings. Restricts the email relay to send emails based on the listed sender domains.


1 Answers

Assuming it's http web traffic, try http.host contains ".com"

Better yet, try http.host matches "\.com$"

Neither one will require DNS resolution since they search on the web host.

From http://wiki.wireshark.org/DisplayFilters

The matches operator makes it possible to search for text in string fields 
and byte sequences using a regular expression, using Perl regular expression 
syntax. Note: Wireshark needs to be built with libpcre in order to be able to 
use the matches operator.
like image 142
Thaddeus Albers Avatar answered Sep 27 '22 20:09

Thaddeus Albers