Menu

#112 hotmail script not working

open
nobody
None
5
2015-01-07
2007-08-17
mg
No

hi, hotmail changed their login and now the script does not work. Can somebody look into this?

Discussion

  • jpgirbig

    jpgirbig - 2007-08-17

    Logged In: YES
    user_id=1316440
    Originator: NO

    I experienced the same since miving to LIVE HOTMAIL.

     
  • Nobody/Anonymous

    Logged In: NO

    Same here. Even after the script update, it still fails with the message Authorization failed.

     
  • Jean-F Jolin

    Jean-F Jolin - 2007-08-21

    Logged In: YES
    user_id=1246519
    Originator: NO

    Same experience here.

    Hotmail script is out of date

    From the journal message:

    "org.mrbook.mrpostman.generic.GenericMailSession","GenericMailSession","login","11:59:18","GRAVE","./hotmail.script: Error logging in: Script './hotmail.script', line 81: IO exception at 'POST http://localhost/': java.net.ConnectException: Connection refused: connect",
    "org.mrbook.mrpostman.pop.PopConnection","PopConnection","parseLine","11:59:18","ATTENTION","'@hotmail.com': Login unsuccessful",

     
  • Some Guy

    Some Guy - 2007-08-23

    Logged In: YES
    user_id=1529399
    Originator: NO

    HI Martin,

    It appears that microsoft hase substantially changed the login screen. I am less than a newbie, but have looked into the problem. It appears that the "Form" which Mr. Postman looks for no longer exists on the HTML of the login page.

    Here is a snip of the postman log:
    "org.mrbook.mrpostman.generic.GenericParser","GenericParser","executeLine","5:34:02 PM","FINER","./hotmail.script (77): Parsing '#--- on the resulting page is a form, which is normally automatically

    submitted by javascript'",
    "org.mrbook.mrpostman.generic.GenericParser","GenericParser","executeLine","5:34:02 PM","FINER","./hotmail.script (78): Parsing 'found,action,form =

    match(page,""<form[^>]*\saction=\""([^\""]*)\""[^>]*>(.*?)</form>"")'",
    "org.mrbook.mrpostman.generic.GenericRobot","GenericRobot","match","5:34:02 PM","FINE","./hotmail.script: No match for '<form[^>]*\saction=""([^""]*)""[^>]*>(.*?)</form>'",
    "org.mrbook.mrpostman.generic.GenericParser","GenericParser","executeLine","5:34:02 PM","FINEST","./hotmail.script (78): found = false",

    I tried to read and understand the html on the login page, but there is hardly anything there. I do not understand how the "form" request needs to be changed to meet the new submission requirements. It's clear that the parser collects all the URL redirects and all the data, but when it can't find the "form" it fails.

    I would attach the full log of the one session attempt that i completed, but even logged into sourceforge, I can't upload an attachment.

    ************************************

    Does anyone reading this know anything about javascript and submitting forms? If so, we can maybe figure this out.

    Mr. postman uses a script to parse and search the hotmail page for the login form. The postman code that does this is above.

    The html on the hotmail page looks like this:

    <!-- ServerInfo: BAYPPLOGN2A51 2007.07.10.00.04.54 Live1 Unknown LocVer:0 -->
    <!-- PreprocessInfo: ppbuild:PASSBLD08, Mon 07:09:2007-23:20:13.28 -- Version: 5,0,7500,0 -->
    <html dir="ltr"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/><base href="http://login.live.com/pp500/"/><noscript><meta http-equiv="Refresh" content="0; URL=http://login.live.com/jsDisabled.srf?lc=1033"/>Windows Live ID requires JavaScript to sign in. This web browser either does not support JavaScript, or scripts are being blocked.<br /><br />To find out whether your browser supports JavaScript, or to allow scripts, see the browser's online help.</noscript><title>Hotmail is now Windows Live Hotmail. Free e-mail with security by Microsoft.</title><meta name="description" content="MSN Hotmail is now Windows Live Hotmail. 2 GB of storage, new design, even more features and enhanced security by Microsoft. It’s better than ever and it’s still free!"><meta name="robots" content="noodp"><meta name="PageID" content="i5030"/><meta name="SiteID" content="64855"/><meta name="ReqLC" content="1033"/><meta name="LocLC" content="1033"/><script type="text/javascript">var g_QS="wa=wsignin1.0&rpsnv=10&ct=1187903696&rver=4.5.2130.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx&id=64855&bk=1187903697";</script><script type="text/javascript">var srf_sBrTtl='Windows Live Hotmail';var srf_sBrSTtl='The new Hotmail brings you more. More space &#40;2 GB&#41;, more security, still free. Sign up for our award-winning service.';var srf_uBrImg='http://gfx1.mail.live.com/mail/w1/ltr/LoginImages/login_en.jpg';var srf_uPost='https://login.live.com/ppsecure/post.srf?wa=wsignin1.0&rpsnv=10&ct=1187903696&rver=4.5.2130.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx&id=64855&bk=1187903697';var srf_uRet="http://mail.live.com/default.aspx";var srf_uSSL='https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=10&rver=4.5.2130.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx&id=64855&bk=76497595';var srf_uReg="http://join.msn.com/GBB?wa=wsignin1.0&rpsnv=10&ct=1187903696&rver=4.5.2130.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx&id=64855&bk=1187903697&cru=http://login.live.com/login.srf%3fwa%3dwsignin1.0%26rpsnv%3d10%26rver%3d4.5.2130.0%26wp%3dMBI%26wreply%3dhttp:%252F%252Fmail.live.com%252Fdefault.aspx%26id%3d64855";var srf_uPwRst="https://login.live.com/resetpw.srf?wa=wsignin1.0&rpsnv=10&ct=1187903696&rver=4.5.2130.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx&id=64855&bk=1187903697&lc=1033";var srf_uLogin = "http://login.live.com/login.srf?wa=wsignin1.0&rpsnv=10&ct=1187903696&rver=4.5.2130.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx&id=64855&vv=500&lc=1033";var srf_uSwUsr='http://login.live.com/logout.srf?wa=wsignin1.0&rpsnv=10&ct=1187903696&rver=4.5.2130.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx&id=64855&wlsu=1&ru=http://mail.live.com/default.aspx&bk=1187903697&lm=I';var srf_iCredType=0;var srf_fCSObj=1;var srf_aFedTiers=[4,1];var srf_sFedQS='';var srf_iFedState=0;srf_sBlkDom=',,';var srf_fEnInstr=1;var srf_sRBlob='P';var srf_sNUsr='';var srf_sLOpt='';var srf_iCredPostType='';var srf_sPreMn='';var srf_sDispMn='';var srf_sFT='<input type="hidden" name="PPFT" id="i0327" value="ByheP3nkNjjI9FM5rzREzL*5nCiTeCgFFOs7TDHqdC6ttdMebe9kvxefoT2PO2yUgVF9dHKXpmlN7RHftuK0AcoHpZ*3lQf8QEeFJ4R4RtFvKvNpk3NkOCEtLA!nFyC7ELMXd2S39Mnn74DBqGZ4ZgrxRJJVBfsRq0bYlgwMjSpftcgOqQEvfnsWNAim"/>';</script><link rel="stylesheet" type="text/css" href="css/WEBWinLive1033.css?x=5.000.7500.00"/>
    <script type="text/javascript" src="WLLogin_JS.srf?x=5.0.7495.0&lc=1033"></script>
    </head>
    <body onload="onLoad_Login();">
    </body></html>

    I don't understand javascript or how form information is submitted, but I figured out that the postman script is unable to find the old "form" information.

    IF anyone reading this can offer some ideas, maybe we can fix the postman script to work.

     
  • Nobody/Anonymous

    Logged In: NO

    Apparently the old page is still there if you use the right uri parameters.
    When I modified the hotmail.script, this seem to work for me:
    - status,page,headers = get("http://www.hotmail.com")
    + status,page,headers = get("http://login.live.com/login.srf?id=2&svc=mail")

    I hope this helps anyone.

     
  • Jean-F Jolin

    Jean-F Jolin - 2007-08-28

    Logged In: YES
    user_id=1246519
    Originator: NO

    The patch found by "nobody" at 2007-08-24 12:49
    works also for me !

    If someone with sufficient privilleges can update the script from cvs.
    Everyone could benefit from it. The path in cvs is:
    /mrpostman/install/hotmail.script

     
  • Nobody/Anonymous

    Logged In: NO

    The helpful script change noted above worked for awhile. However, a few days ago, Microsoft altered their web pages again. In so doing, the code in the hotmail.script no longer finds the various hotmail links because the web pages have changed. (I had to comment out the "setfollowredirects(false)" command that immediately follows the command 'setcookiemode("COMPATIBILITY")') in order for the script to get to the inbox page. Nevertheless, I have not had time to change the rest of the script to get it to function properly.

     
  • Nobody/Anonymous

    Logged In: NO

    Same here.
    Apparently they are still beta testing there so any changes we make might break at any time.
    What I found was this. I have a few hotmail accounts and I upgraded with some of them.
    The ones I upgraded no longer work. The old unmodified ones still work. It has something to do with the content of the new pages.
    That being said, I haven't had a chance to look at the debug output yet so it might not be too difficult to analyse.
    It looks like the new pages are completely different though and a check needs to be made to see what version of the mailbox is being used.
    My old account still only has 1G of space, but I don't need more right now so ...
    What ever happened to the original maintainers of this program? Is there a beter tool for doing this out there somewhere?
    Hugh.

     
  • Nobody/Anonymous

    Logged In: NO

    Same here.
    Apparently they are still beta testing there so any changes we make might break at any time.
    What I found was this. I have a few hotmail accounts and I upgraded with some of them.
    The ones I upgraded no longer work. The old unmodified ones still work. It has something to do with the content of the new pages.
    That being said, I haven't had a chance to look at the debug output yet so it might not be too difficult to analyse.
    It looks like the new pages are completely different though and a check needs to be made to see what version of the mailbox is being used.
    My old account still only has 1G of space, but I don't need more right now so ...
    What ever happened to the original maintainers of this program? Is there a beter tool for doing this out there somewhere?
    Hugh.

     

Log in to post a comment.

MongoDB Logo MongoDB