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
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();
})();
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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 ?
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 ?
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
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
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
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
https://www.google.com/accounts/ServiceLoginAuth?service=mail&rm=false<mpl=default<mpl=default&Email="+ LOGIN + "&Passwd=" + PASSWD + "&rmShown=1&signIn=Sign+in
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
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
Open in new window