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

[Help] Getting Captchas from Hotmail and AddMeFast

Discussion in 'General Programming Chat' started by 0_00_0, Jan 8, 2013.

  1. 0_00_0

    0_00_0 Senior Member

    Joined:
    Oct 7, 2010
    Messages:
    1,024
    Likes Received:
    486
    Location:
    Canada
    They have now added a captcha for viewing YouTube videos on AddMeFast now so I have successfully broken it. I am just having trouble downloading the image. Similarly to the Hotmail captcha the source of the image is encoded so I'm absolutely mystified on how to download the image for processing every time.

    If someone is able to help out I would be more than happy to share my script that breaks the captchas no problem :).

    Here is an example of the source of the captcha image:
    Code:
    data:image/jpg;base64, /9j/4AAQSkZJRgABAQEASABIAAD/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/hAylodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTT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B6ADpqyDA0iMcih8yGRvGdzC9rouy9rFi//2Q==
    I would also appreciate if anyone could shed some light on how to download hotmail captchas as well because they use the exact same technique. There must be some sort of temporary internet files or javascript trick that I'm missing out on. SeNuke seems to get the captcha no problem!
     
  2. Arodax

    Arodax Newbie

    Joined:
    Jan 6, 2013
    Messages:
    11
    Likes Received:
    7
    If you can extract the data that you have quoted in every case, your problem is easily solved. Here's a C# snippet that converts the base 64 encoded image you've pasted back into its byte form and saves it to a file on the desktop called CAPTCHA.jpg:

    Code:
    byte[] captchaBytes = Convert.FromBase64String("/9j/4AAQSkZJRgABAQEASABIAAD/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/hAylodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjQ0MTdDNDIxMTI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IO.File.WriteAllBytes(System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory), "CAPTCHA.jpg"), captchaBytes);
    Unfortunately I do not know for certain that this is what you need; I'm being a bit lazy in not going to observe these CAPTCHAs in the wild and am simply going off your post to answer. If you need more help, I'd be more than happy to as long as I am able.
     
    • Thanks Thanks x 2
  3. 0_00_0

    0_00_0 Senior Member

    Joined:
    Oct 7, 2010
    Messages:
    1,024
    Likes Received:
    486
    Location:
    Canada
    YOU ARE BRILLIANT! Thank you so much I've been trying to figure out a solution to this forever but I finally got fed up last night and decided to post this :). This will work perfectly for my C# program I'm working on!

    I'm working on an AutoIT script as well that I'm having issues translating this code to. I don't suppose you have any experience with AutoIT? Don't worry if not I'm just being lazy I will eventually figure this out.

    Thanks again!!!
     
  4. Arodax

    Arodax Newbie

    Joined:
    Jan 6, 2013
    Messages:
    11
    Likes Received:
    7
    I've got a fair amount of experience with AutoHotKey...I thought that it had previously been called AutoIt, but I just searched Google and at first glance that does not appear to be the case.
     
    Last edited: Jan 9, 2013
  5. 0_00_0

    0_00_0 Senior Member

    Joined:
    Oct 7, 2010
    Messages:
    1,024
    Likes Received:
    486
    Location:
    Canada
    Yeah there is a difference between AutoIT and AutoHotKey. Don't go too much out of your way to try and find an answer I'm going to just compile the C# solution and call it VIA command line with AutoIT if I can't find a pure AutoIT solution.

    The C# code helps immensely because I am trying to create hotmail accounts with one of my C# programs and this was the hold up. You've really helped me here :).
     
  6. Arodax

    Arodax Newbie

    Joined:
    Jan 6, 2013
    Messages:
    11
    Likes Received:
    7
    No problem. I did a bit of searching and found that there is an include named "Base64.au3" that you can include in your script that contains this function:

    Code:
    Func _Base64Decode($sData)
    I read that it was going to be included in the AutoIt installer files, but if it's not a quick Google search for Base64.au3 will yield results for you. If this is the case, you can just port the C# code to AutoIt using that function.
     
  7. Furious George

    Furious George Supreme Member Premium Member

    Joined:
    Dec 13, 2012
    Messages:
    1,437
    Likes Received:
    2,176
    Very curious about this. Sent you both a pm. :)
     
  8. Arodax

    Arodax Newbie

    Joined:
    Jan 6, 2013
    Messages:
    11
    Likes Received:
    7
    Sorry, I can't respond to PMs yet as I haven't made enough posts. Hopefully you don't mind, but I'll quote the question from your message here as it's relevant to the thread:

    A generalized answer to this question is you need to make an HTTP GET request for the page that serves the CAPTCHA and then use any text-parsing technique of your choice to extract the image (perhaps a Regular Expression). As an example, if Google required a CAPTCHA to use its search and the CAPTCHA was embedded in the source code as an input to a form (displayed using some sort of JavaScript or what-have-you), the pseudo code for a bot that could perform automatic searches would look something like this:


    1. HTTP GET Google's Search Page
    2. Find the starting index of the following string in the response from Google:
      Code:
      <input type="hidden" id="base64Captcha" value="
    3. Parse the CAPTCHA's base 64 encoded form by using your language's string splitter (maybe some variant of a substring method).
    4. Use your language's base 64 decoding method to get the CAPTCHA saved to a file that can be posted to some sort of OCR service or displayed to the user to enter.
    5. Perform the search using the CAPTCHA.

    I apologize if I misunderstood your question as it was a bit vague, but hopefully this helps.
     
    • Thanks Thanks x 1