wireshark


edit > pref > appear > layout ctl-sht-p

edit > pref > appear > columns ctl-sht-p



    # Capture data - GUI
    cap > options               ctl-k
    
        input > snaplen
    
            select interface
    
        ouput > create new file after 500 mb
    
            ring buffer 10 files (max)

Capture data - cmdln

dumpcap -h

List interfaces

dumpcap -D

Log to file in /tmp

dumpcap -i 1

dumpcap -i 1 -w file.pcapng

-b filesize:500000 -b files:10 

( 100 = 100kb; 1000 = 1mb; 10000 = 10 mb; 500000 = 500 mb )

Top 10 Filters

ip.addr == 192.168.0.1

ip.src | ip.dst

dns or http

tcp.port == 443

tcp.analysis.flags # problems in trace file

!(arp or dns or icmp)

tcp.stream eq 32 # follow

tcp contains facebook

http.request # gets

http.response.code == 200

tcp.flags.syn == 1 # rapidly incrementing

tcp.flags.reset == 1

tcp.flags.syn == 1 && tcp.flags.ack == 0

sip && rtp # voip