Traffic Capture – tcpdump


Hits: 2501  

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

Published by

Sandeep Verma

I’m an Entrepreneur. I’m proud to work as Blogger, LAMP Programmer, Linux Admin, Web Consultant, Cloud Manager, Apps Developer, Searcher. Concentrate > Observe > Imagine > Launch