Link to home
Start Free TrialLog in
Avatar of tsph
tsph

asked on

Autologin to Gmail / Yahoo mail with single HTML

I need a html that redirect to yahoo/gmail with auto login

i dont want to use "remember pass" / roboform / greasemonkey / etc..
just a single HTML or even a web shortcut like
http://mail.yahoo.com/login.aspx?<user>:<pass> (if that possible)

found a code from google, seems to work with greasemonkey
javascript:(function(){
var k={
'mail.yahoo.com': [0,{login:'myname',passwd:'mypass'}],
'gmail.google.com':[0,{Email:'myname',passwd:'mypass'}]
}[location.host],
f=document.forms[k[0]],e=f.elements,i=e.length,v;
while(i--)if(v=k[1][e[i]])e[i].value=v;
f.submit();
})();

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Emad Gawai
Emad Gawai
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
and here is the form


Check Your Emails                                                               <form name=form>
                                        <font face="Arial, Helvetica, sans-serif" size="2"><b>User 
                                        Name<br>
                                        <input name=login size="14">
                                        <br>
                                        Password<br>
                                        <input name=passwd type=password size="14">
                                        <br>
                                        Email Account</b></font><br>
                                        <select name=site>
                                          <option selected 
              value=yahoo>Yahoo 
                                          <option value=usanet>USA.NET 
                                          <option 
              value=hotmail>Hotmail 
                                          <option value=mailcity>Mailcity 
                                          <option 
              value=angelfire>Angelfire 
                                          <option value=aol>AOL 
                                          <option 
              value=123india>123 India 
                                          <option value=rediff>Rediffmail 
                                          <option 
              value=altavista>Altavista 
                                          <option value=zdnet>ZDNET mail 
                                          <option 
              value=cnn>CNN mail 
                                          <option 
            value=coolmail>Coolmail</option>
                                        </select>
                                        <br>
                                        <br>
                                        <input align=absBottom onClick=javascript:openMailWindow() type=image src="imgs/search.gif" name="button" border="0" alt="Submit" width="62" height="33">
                                      </form>
                                      

Open in new window

Avatar of tsph
tsph

ASKER

thanks qawai, actually i was looking for this kind of URL
http://login.yahoo.com/config/login?.tries=&.src=ym&.last=&promo=&.intl=&.bypass=&.partner=&.chkP=Y&.done=&login=" + LOGIN + "&passwd=" + PASSWD + "&.persistent=Y

and what's the URL for Gmail ?
Avatar of tsph

ASKER

one more, can you show me how you found that kind of URL ?

for example i want to see the "login URL" for V-bulletin based forum
lets take this forum
http://www.vbulletin.org/forum/index.php

the login address may be something like...

http://www.vbulletin.org/forum/login.php?do=login&vb_login_username=" + LOGIN + "&vb_login_password=" + PASSWD + "&vb_login_md5password=" + somevalue + "&vb_login_md5password_utf=" +otheValue

i believe u know how to view the source code of that page...they have use a function md5hash(); to encrypt

for gmail, it could be...i did not test it....u pls try it


https://www.google.com/accounts/ServiceLoginAuth?service=mail&rm=false<mpl=default<mpl=default&Email="+ LOGIN + "&Passwd=" + PASSWD + "&rmShown=1&signIn=Sign+in
Avatar of tsph

ASKER

the gmail URL works but doesnt correcly redirect to gmail
i'll look into that later, and for vbulletin, it has security token that generated randomly, so I must load entire page first

thanks for the solution

tsph