1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Hushmail account creation but a weird problem (video inside)

Discussion in 'C, C++, C#' started by xpro, Apr 25, 2012.

  1. xpro

    xpro Regular Member

    Joined:
    Jan 21, 2009
    Messages:
    416
    Likes Received:
    16
    Hello

    I'm trying to automate Hushmail account creation but the page sometimes loads hidden values that start with "__hush" they have no value but after clicking create account a Post is made to the server and the values get set to the hidden input fields. After the values are set another post is sent to the server which will create the account. I know it sounds confusing which is why I recorded it and used Tamper to know when the values get set. Here is the link to the video if you want to see the text clearly make sure you switch to 720P

    http://www.youtube.com/watch?v=-PWBUXim964

    I don't understand how this can be happening. Anyway I can automate with HTTPWebRequest? Any help is highly appreciated.
     
  2. sirgold

    sirgold Supreme Member

    Joined:
    Jun 25, 2010
    Messages:
    1,260
    Likes Received:
    645
    Occupation:
    Busy proving the Pareto principle right
    Location:
    A hot one
    Watched the vid it was quality entertainment for sure. :) It probably requests the values with ajax (didn't check it, just blind guessing from what I saw) and populates the fields. Point is you'll still need to POST those values with the correct values and chances are it can still be done by sniffing where they come from, but my question would be why? Save time: use the DOM.
     
  3. xpro

    xpro Regular Member

    Joined:
    Jan 21, 2009
    Messages:
    416
    Likes Received:
    16
    I think they are generated with Javascript. I captured traffic with Fiddler and that Firefox addon called Tamper but I never saw them in Tamper or Fiddler so its still a mystery for me. By DOM you mean the IE webbrowser control?
     
  4. Chris22

    Chris22 Regular Member

    Joined:
    Sep 29, 2010
    Messages:
    400
    Likes Received:
    1,059
    Fair play to them they've made it pretty hard. Having a look now for you mate.
     
  5. theMagicNumber

    theMagicNumber Regular Member

    Joined:
    May 13, 2010
    Messages:
    345
    Likes Received:
    195
    Hello,
    i am sorry, but you are out of luck. The hidden fields are generated by javascript. It will take you too long to figure the mess out.
    I have coded simple application - hxxp://filefactory.com/file/5jecr1ece3pp/n/HushmailCreatorWinForms.zip
    When an account is registered the page says "Congratulations, your secure email account has been created!", however the account is not really created. I suggest to use the WebBrowser control....
     
    Last edited: Apr 25, 2012
  6. xpro

    xpro Regular Member

    Joined:
    Jan 21, 2009
    Messages:
    416
    Likes Received:
    16
    I'm probably going to use Webdriver(Selenium) for this which is automating the browser but it has more features than the IE component and I can use proxies with it. But one thing about the browser is how would I deal with the Hushmail captcha? its one of those captchas that has one URL but the image changes on it. This is the hushmail captcha URL

    https://www.hushmail.com/signup/turingimage?hush_domain=hushmail.com

    and everytime it loads its a different image so I can't just extract the captcha link and save the captcha. What is the solution for this problem?
     
  7. theMagicNumber

    theMagicNumber Regular Member

    Joined:
    May 13, 2010
    Messages:
    345
    Likes Received:
    195
    Hello,
    You have to send the cookies to get the correct captcha, however second attempt to request the captcha with the same cookies will result in different image. So you have to figure the way to extract the image from the browser. I have done it with the WebBrowser control some time ago. I have no experience with Selenium, but i have used Watin a lot - it is automation for IE and Mozilla. I remember a thread in stackoverflow that explains how to get an image from the browser without downloading it again. If you have no success i'll do my best to help you.
     
  8. Mr.Profit

    Mr.Profit Regular Member

    Joined:
    Dec 22, 2009
    Messages:
    219
    Likes Received:
    471
    Occupation:
    Marketer and SEO
    Location:
    Internet
    Home Page:
    Hey mate,

    I've an idea for you, check your PMs. Please response either here or via PM if this worked or not :)

    Regards,
    Mr.Profit