Traffic Capture – tcpdump

On October 9, 2009, in Fedora, LAMP, Linux, Tips, Tricks, by Sandeep Verma

Hits: 84  

Packet Sniffer

[root@svnlabs ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     1      0        0 eth0
default         ip12.mshome.n 0.0.0.0         UG    0      0        0 eth0

# /sbin/route -n

# tcpdump -i eth0 ‘port 80′

# tcpdump -n -c 30000 -w /root/port.80.debug.txt

# tcpdump -X -vv -r /root/port.80.debug.txt

# tcpdump port http -w /home/s.txt (port 80)

Source:

http://www.ntop.org/download.html

http://linux.die.net/man/8/ifconfig

http://en.pudn.com/sourcecode/hack/sniffer/download61.html

http://www.cyberciti.biz/faq/tcpdump-capture-record-protocols-port/

http://openmaniak.com/tcpdump.php#tcp_use# netstat -n



Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...