Here is a one line command that will sniff FTP passwords as they come across the local network:
sudo tcpdump -A -s 0 -i eth0 -l -e port ftp | grep -e "Welcome\|USER\|PASS"
To use this on OSX, just switch the eth0 interface above with en1.
Here is the output as an unknowing user on a different machine on the LAN logs into ftp.kernel.org with their ultra-secret anonymous/secret user/pass pair...
v......>220 Welcome to ftp.kernel.org.
...ev...USER anonymous
...xv./.PASS secret
So there are many lessons here:
- 1) Don't use "good" passwords with FTP -- expect any FTP password to be compromised...
- 2) Use SSL whenever possible (it makes casual sniffing like this much harder)
- 3) Remember your passwords! Well, this is a much bigger problem -- keychain software needs to get better and more popular.
So I ran the one line sniffer above on my machine, asked Dreamweaver to login to the site from her machine, and oula! The password was revealed! After all that, what was this impossible to crack password? It turned out to be the classic "hand-off" password when you don't want to share your secrets with someone who is helping you -- it was the first name of the developer who last helped my wife upload her website. ;)



1 comments:
Hello. This post is likeable, and your blog is very interesting, congratulations :-). I will add in my blogroll =). If possible gives a last there on my blog, it is about the SBTVD, I hope you enjoy. The address is http://sbtvd.blogspot.com. A hug.
Post a Comment