troubleshooting Question

Hotmail (+ others) login script for web pages - Can someone check this code please?

Avatar of carlos0371
carlos0371 asked on
5 Comments1 Solution646 ViewsLast Modified:
Hi guys, this is my first question on here, although I have been lurking for some time (never been quick enough to answer any questions, although I have found a lot of help here).

My question is this; I found some code in one of the (old) threads on here ( asking for the POP address for Hotmail, and one of the replies, someone (dittymeister2) posted a reply giving code which could be used on a webpage to enable the user to login to his/her Hotmail (+ other) accounts from within that webpage.

I'd like to know how secure this code is, and I don't unfortunately have the ability to check it thoroughly, dur to my limited knowledge.

One of my concerns is that the Hotmail login (I tried the code in FP, but didn't complete the login) goes to a webpage with the following address: - This is not an address I'd recognise as a Hotmail address.

This page then generates an invalid security licence message: "The name on the security certificate is invalid or does not match the name of the site"

This code looks to be a pretty good in theory, and I'd like to use it (with some amendments - i.e. colour, accounts listed etc.) but Ineed to know that it is legitimate, and secure for all to use.

I hope someone out there has the answers I'm looking for, and Thanks in advance.


Hope I've given enough (but not too much) detail, here is the code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<body bgcolor="369369">
<p align="center"><font color="#000033" size="5"><strong>Login to various e-mail
<p align="center">====================================================
  <script launguage=javascript>
function send_form()
var user=window.document.genlogin.login.value;
var pw=window.document.genlogin.passwd.value;
     <!--Hotmail goes from here-->

     if(window.document.genlogin.mailaccount.selectedIndex == "0")





     return (true);

     }<!--Hotmail ends here-->
     <!--Yahoo starts here-->
     if(window.document.genlogin.mailaccount.selectedIndex == "1")






     return (true);

     }<!--Yahoo ends here-->

     <!--NetAddress starts here-->

     if(window.document.genlogin.mailaccount.selectedIndex == "2")











     window.document.loginform.NA31port.value=80 ;



     return (true);

     }<!--NetAddress ends here-->

     <!--Rediff Mail starts here-->

     if(window.document.genlogin.mailaccount.selectedIndex == "3")






     return (true);

     }<!-- RediffMail Ends here-->

     <!-- IndiaInfo starts Here-->

     if(window.document.genlogin.mailaccount.selectedIndex == "4")






     return (true);

     }<!--IndiaInfo Ends here-->


     <!--123India starts here-->

     if(window.document.genlogin.mailaccount.selectedIndex == "5")






     return (true);

     }<!--123India Ends here-->

     <!--OneBox starts here-->

     if(window.document.genlogin.mailaccount.selectedIndex == "6")






     return (true);

     }<!--OneBox Ends here-->


     <!--MailCity starts here-->

     if(window.document.genlogin.mailaccount.selectedIndex == "7")








     return (true);

     }<!--Mailcity Ends here-->


     <!--Chequemail starts here-->

     if(window.document.genlogin.mailaccount.selectedIndex == "8")






     return (true);

     }<!--Chequemail Ends here-->


     <!--Epatra mail starts here-->

     if(window.document.genlogin.mailaccount.selectedIndex == "9")






     return (true);

     }<!--Epatramail Ends here-->



  <!-- This starts the Login Page -->
  <!--Hotmail form-->
<form name="passwordform" action="" method="POST" target="_top" >

     <input type="hidden" name="login" >

     <input type="hidden" name="passwd" >

     <input type="hidden" name="svc" value="mail">

     <input type="hidden" name="RemoteDAPost" value="">


     <!--YahooMail form-->

     <FORM action="" method="post" name="a" autocomplete="off">

     <input type="hidden" name="login" >

     <input type="hidden" name="passwd" >

     <INPUT name=".tries" type="hidden">

     <INPUT name=".src" type=hidden value="ym">

     <INPUT name=".last" type="hidden">

     <INPUT name="promo" type="hidden">

     <INPUT name=".intl" type="hidden">

     <INPUT name=".bypass" type="hidden">

     <INPUT name=".partner" type="hidden">

     <INPUT name=".chkP" type="hidden" value="Y">

     <INPUT name=".done" type="hidden"> </form>


     <!--Net address form-->

     <FORM name=loginform action= method=post>

     <INPUT type=hidden value=2 name=LoginState>

     <INPUT type=hidden value=/tpl name=SuccessfulLogin>    

     <INPUT type=hidden name=NewServerName>

     <INPUT type=hidden value=None name=JavaScript>

     <INPUT type=hidden value=4 name=DomainID>

     <INPUT type=hidden name=Domain>

     <INPUT type=hidden name=NA31site>

     <INPUT type=hidden value=80 name=NA31port>

     <INPUT type=hidden name=UserID>

     <INPUT type=hidden name=passwd>

     <INPUT type=hidden value=existing name=FormName>

     <INPUT type=hidden name=login>




     <!--IndiInfo Mail Starts here-->

     <FORM name=mailform  method=post>

    <INPUT type=hidden name=username>

     <INPUT type=hidden name=Password></form>


     <!--123India mail-->

      <FORM name=fn action= method=post>

    <INPUT type=hidden name=uname>

     <INPUT type=hidden name=pwd>

     <INPUT type=hidden value=www name=eref>

     <INPUT type=hidden value=mail name=iref>

     <INPUT type=hidden value=mail name=srv>



     <!--Onebox -->

      <FORM name=TheForm action= method=post>

      <INPUT type=hidden name=username>

      <INPUT type=hidden name=password>




     <FORM name=login_form action= method=post target=_top>

     <INPUT type=hidden value= name=callback>

     <INPUT type=hidden value=mailcity name=partner_key>

     <INPUT type=hidden name=user_name>

     <INPUT type=hidden name=user_passwd>




     <FORM name=frm action= method=post>

    <INPUT type=hidden name=username>  

     <INPUT type=hidden name=passcode>  




     <FORM action= method=post name=login>

     <INPUT type=hidden name=user_login>

     <INPUT name=user_pwd type=hidden>


<!-- This starts thwe actuall script -->

<form name=genlogin method=post action="javascript:send_form()">

     <table border=0>


<td><font face="times" color="black"> User Name: </font></td>

          <td><input TYPE="text" NAME="login" SIZE="16" MAXLENGTH="50" onFocus=";" style="background-color:#00FF00;"></td>

          <td><font face="times" color="black">@</font><select name="mailaccount" style="background-color:#00FF00;">
        <option value="" selected></option>
        <option value=""></option>
        <option value=""></option>
        <option value=""></option>
        <option value=""></option>
        <option value=""></option>
        <option value=""></option>
        <option value=""></option>
        <option value="">Chequemail</option>
        <option value=""></option>


           <td><font face="times" color="black">Password:</font></td>

          <td><input TYPE="password" NAME="passwd" SIZE="16" MAXLENGTH="16" style="background-color:#00FF00;"></td>

            <td>     <input type="button" value="Sign In" name="B1"onclick="javascript:send_form()" style="background-color:#00FF00;"></form></td></tr></table>

Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros