Have you ever needed to see traffic in front of your eyes? There exists a tool in linux to do this. You can see it all, even passwords.
monitor session 1 source interface fastethernet 0/1monitor session 1 destination interface fastethernet 0/2 encap ingress vlan 1
Tcpdump commands
I am assuming you are using eth0, -n turns off DNS.
tcpdump -i eth0 -n port 80
Now a little more fancy, using egrep - this will show all your web requests in real time!
tcpdump -i eth0 -A -n port 80 | egrep -i (GET./|POST./|Host:)
Did you know you can tcpdump for a subnet by just excluding the last octet?
tcpdump -i eth0 -n port 80 and host 10.0.5
If you forgot your pop3 password, but have it stored in the client
tcpdump -i eth0 -n port 110 -A | egrep -i (user|pass)
This also applies to passwords for the web, I have used this a lot instead of the 'forgot password' mechanism.
If I forgot to mention anything, please let me know.
| Look for more network related tips and tricks on my website! Espen Holm Nilsen is a network technician for a Norwegian ISP, you can find his Cisco Network blog at http://www.gho.no/ Article Source: http://EzineArticles.com/?expert=Espen_Holm_Nilsen |


0 comments:
Post a Comment