Tools/Tshark

From C4 Wiki
< Tools
Revision as of 00:22, 7 October 2004 by 81.173.165.56 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Why tethereal rocks

  • more functions than tcpdump
  • shares features with ethereal
  • lives in /usr/bin
  • can capture to a ring buffer
  • capture and read filters

tethereal command lines

statistics

tethereal -qz io,stat,0.01,ip.addr==172.17.23.1
tethereal -qz conv,eth
tethereal -qz proto,colinfo,nfs
tethereal -qz sip,stat
tethereal -o "smb.sid_name_snooping:TRUE" -qz smb,sids

ring buffer capture

tethereal -b 5 -a filesize:9728 -w mm.cap

read filter (live capture, read capture file)

tethereal -r mm.cap -R "tcp.port!=50050&&ip.addr==172.17.23.5" -w clean.cap
  -R "not(ip.addr==172.17.23.5&&tcp.len==0)"
  -R 'pop.request || http.request.method==GET || http.request.method=="POST"'

capture filter (live capture)

-f not host 172.17.23.255

decode ports as specific service

tethereal -d tcp.port==8888,http