Monday, December 24, 2012

Moxie Marlinspike : sslstrip

There are only a very few people in this world that have managed to capture my constantly fleeting attention. One of them is Moxie Marlinspike.




People believe he has a vast network of hidden antennas in those dreadlocks so that he can continuously scan networks and crack their passcodes as he passes by. I wouldn't be surprised if he actually did something like that. He is an epic genius.

I swear, this guy is the most coolest dude I have ever seen. He's a computer security researcher and was also the founder of Whisper systems co. He's done a lot of research in the field of network vulnerability and security and some of his innovations are really fascinating. I saw his presentation at DEFCON 17 (DEFCON is a hacker-conference) on YouTube; I fell in love with him at first sight. <3

He was talking about these various methods by which you could defeat SSL in practice. 

SSL is this industry-standard encryption which websites use to encrypt their data flow, so that no one can eavesdrop and grab your username and password as you type it into the facebook login page. It's really hard to crack an SSL encryption. Using a brute-force attack on it can take upto a million years. You know you're using an SSL encryption when your URL bar shows https:// instead of http://. It stands for Hyper Text Transfer Protocol Secured. You can find it when you log onto sites like FaceBook or Gmail or those Online Banking sites that use this technology to protect your data from hackers.

However, I have heard rumours about a Chinese professor that has stumbled upon some vulnerability within the encryption.

Who knows?
Maybe in a year or two, they might have actually found a way.

Coming to the point, Moxie has developed a piece of Python code called sslstrip that does a neat trick regarding SSL connections.

Normally, when you type in the name of a website into your URL bar, you generally do something like this: "www.facebook.com". What happens here is, you've requested for the FB site without SSL encryption. In other words, the http form of the site. The FB server recognizes this fact, and tells your browser, "Look, you're asking for an unsecured connection. You'll be better of with a secured one. Here, take this." and redirects you to the https site. 

Wonderful isn't it? Your password is kept safe, you've logged onto FB without any problems, and can lazily go through your notifications. What could possibly go wrong?

PLENTY OF THINGS.
DAMN PLENTY.

Imagine this:
What if someone got in between the connection between you and the FB server? This is also called a Man in the Middle Attack, abbreviated to MITM. And this computer (we shall call it the attacking computer) sneakily intercepts all communication between you and the server by faking its IP and Mac Address and forcing your computer to think that it is actually the FB server. It also does the same trickery with the FB server, making it believe that the attacking machine is the client. In this way, the hacker who's doing all this, successfully eavesdrops communications between you and the server. 

You must be thinking, "So what if he eavesdrops? All of my messages are encrypted using SSL. What could he possibly do? He definitely won't get my password. Haha. I'm totally safe!"

WRONG AGAIN. This false sense of security is quite amusing. You people think you're completely protected behind those firewalls and anti-viruses of yours, don't you?
Haha. Please. 

Think of it this way. You're typing in "www.facebook.com", aren't you? So here's what. The attacker intercepts your request, and instead of saving it and forwarding it to the server, so that the server can give you a secure https session, the attacker gives you an http session, forcing you  to believe that you've received the https version from the server and there's nothing wrong. But if you happen to take a glance at your URL bar, you'll notice this flaw, as the browser reads "http://www.facebook.com" and not "https://www.facebook.com". If you're aware of this vulnerability, you can easily prevent your personal information from being stolen. However, most users aren't even aware about the subtle differences mentioned above, and hence tend to fall prey to cyber-thieves.

Moxie designed sslstrip keeping this fact in mind. In fact, you can easily use BackTrack and sslstrip to do everything that I've said above.

Here comes the fun part: I'm gonna show you how to do it.
 

xD
 

It's quite simple really, all it takes is determination and patience. Also, a patient mom who has no problem in you sitting 6 hours straight on a laptop (Mine wasn't -_-. I've suffered a lot of consequences because of that, but aaahh, what the heck. It was all worth it. xD)

But beware. Do not misuse this. I'm sorry guys, but whatever you do with this information, is upto you. I am not responsible if your processor overclocks and burns to dust while you're attempting this. I'm also not responsible if you try using this technique for illegal purposes. With great power comes great responsibility, as you've all have heard, so please. Abide the law. It'll do you a lot of good, I promise.

Now, I'm going to move onto the ingredients required for this rather tasty piece of networking delicacy.

-BackTrack 5 R3
-A WiFi connection
-A wireless network adapter (duh)

That's about it. BT 5 comes pre-installed with the latest version of sslstrip, so you'll be fine.

Step-by-step instructions will be posted in my next post. When I get the time.
Till then, Merry Christmas, folks!

(k_s)

Sunday, December 23, 2012

BackTrack / Cain and Abel

So like I said, I have an interest in the above-mentioned exploitation tools. 

I learned about BackTrack 3 years ago, while surfing the web, looking for anything that I could use to get my hands on the password of a certain bully ( I used a keylogger in the end xD). Apparently, I saw BackTrack as a hugely complicated Operating System, with a whole string of command lines and codes, and very limited GUI. So I pushed it to the back of mind, promising myself that I would look into it later (and I did xD).

Cain and Abel is sort of a recent discovery. I was surfing the popular file-sharing website, www.majorgeeks.com, and was casually looking into the "covert ops" section, when I chanced upon Cain and Abel. Sure enough, I was fascinated by this little piece of flashy, GUI-based, password recovery tool. Even with my limited knowledge back then, I was at least able to recover a looong forgotten password of a wifi network that I'd connected to. I was quite pleased with that achievement, and have fondly kept Cain and Abel in my system for quite some time, like a memento of my exploits. But it would lie there, unused, like some old forgotten kitchen knife buried deep inside the drawer, awaiting disposal. 

These two tools, if used properly, make a powerful exploitation suite, by which many professional techniques can be executed with relative ease.

I plan to record my experiences with BackTrack in this blog, making a sort of tutorial for any who's interested. I will also be covering certain areas of Cain and Abel, though in my opinion, this software is gonna be rendered obsolete within a few years, due to advances in computer and network security.

A little more about these two nifty pieces of code.

BackTrack

BackTrack is a variant of the Linux OS. It was made by two competing distributions of Linux which mainly focused on  penetration testing, or penetesting. It's logo is damn slick, they call it a ninja dragon. It's motto is "
The quieter you become, the more you are able to listen". As you can see, BackTrack is based and concentrates on stealth; everything else is secondary. Which is why, when you boot up the OS, you'll realise that networking and certain vital services and features have been disabled, so that you don't accidentally give yourself away.
 
It's similiar to any other variant of Linux, like say, Ubuntu or RedHat. They all share nearly the same GUI interfaces, and also a few common pre-installed apps.

Ha.

The similiarity ends there.

BackTrack is bundled with a massive host of cracking and exploitation packages, including the famous airodump-ng, aircrack-ng and metasploit (these will be explained later, as I make progress). These can only be used through the command-line, known as Konsole, and it takes quite some time to get used to the entire experience. And there will be times when frustration hits you so hard, you'll want to give up. In fact, there's a chance that you'll hate it as you see that sometimes your commands don't work. But once you get used to it, I swear, you'll never leave it. In fact, you'll love it. The thrill and adrenaline that you get from it is exhilarating. 

A bit of patience and determination is all it takes. 

Also, a neat laptop and maybe an injection-capable wireless adapter. =P

But we'll look into that later.

Cain and Abel

Ahh. Cain and Abel. Reminds me of the opening scene of Batman : Arkham City.
(Here's the link, if you haven't seen it: http://www.youtube.com/watch?v=NN6CN7UpimI)

Cain and Abel, is somewhat like a miniature version of BackTrack, although it isn't as extensive. Also, Cain is somewhat of a 55-year old man. He knows about computers, and can handle them well enough, but cannot adapt to the fast changes that take place nowadays. 
Thus, Cain is half-obsolete.
Most of it's features are only susceptible to Win 2000/NT/XP based machines.
Back in the old days, Cain could be used easily to exploit the vulnerabilities within these OSes, and with a little knowledge, you could take over an entire computer through an unauthorized RDC (Remote Desktop Connection).

But sadly, the new security features in Win Vista, Win 7 and Win 8 completely renders the technology obsolete. And it's a shame that the creators, Oxid.it aren't supporting this beauty of a software.

However, this old man (more like these old men) can still pack a punch.

Cain and Abel is a two-man army. Cain is the GUI, while Abel is the neat service that does all the behind-the-scenes work. It can do a range of stuff, like password recovery from a secret cache that Windows stores somewhere, cracking encryption like MD4, MD5, Base64, et cetera and tricking computers to give you information by faking IP and Mac addresses.
Just like BackTrack, with a little knowledge, Cain and Abel can be used to do all kinds of neat stuff.
 
Like looking at what you're girlfriend is doing while she's connected to your Wi-Fi network. Or maybe perhaps what website your roommate seems to be examining with rather intriguing displays of sexual excitement as he uses the college Wi-Fi. Or maybe.....
even grab their passwords! But that's a long way off to go, so don't get excited yet.

xD

I'll be examining these with more detail in the following posts. I will also be posting step-by-step instructions on how to use these softwares to execute various attacks.

Yeah, it's gonna be fun. XD
 
(k_s)

Saturday, December 22, 2012

ABOUT : ME

<script type="text/javascript">document.write
('<b>
Hello World</b>');
</script>

As you can see, this blog is a dreamer's escape from reality. I'm a 16 year old boy from Kerala, a state in South India. Right now, I'm studying in this school near Mumbai, in northern India, as an International Baccalaureate student.
I like computers and cats. And video games. And chocolate pudding. C:
 

I also have a deeeeep interest in Penetesting, and as of making this blog, I've started using BackTrack 5 and Cain and Abel for some amateur exploitation. I also like Physics and Math to an extent, though I did not have as keen an interest in the previous years of my life.
 

I'm 5'5 (hope to grow taller), I sort of play football, I play with passion however, and not with skill. I also like to paint, though I rarely do due to time constraints. I also dabble in quite a lot of poetry, in fact, I love it.

My favorite video games of all time would be AoE 2, StarCraft 2 and Batman:AA and Batman:AC. My favourite font is Ms Trebuchet. I liek listening to Rock, Metal and their cousins of varying intensities. AC/DC and Linkin Park are my favs.  I also listen to alternative music at times, though I hate pop and think it's a disgrace to humanity (I'm sorry Maroon 5 fans, Adam Levine is a fag IMO). I find Daft Punk and the Gorrillaz quite exquisite. My favourite athletes are EG_Stephano and Day9. xD
 

I post all kinds of stuff here, ranging from my experience with Hacking to my personal calamity of a life.
I love Ozzy Osbourne and Nathan Fillion, they are badasses, and I have great respect for them.
I prefer blondes to brunettes, cats over dogs, and Computers to women. Peace.