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

[C++] Get captcha Solve it and post it

Discussion in 'C, C++, C#' started by vicellous, Dec 6, 2011.

  1. vicellous

    vicellous Newbie

    Joined:
    Dec 6, 2011
    Messages:
    3
    Likes Received:
    0
    Hi,

    I want to know how to retrieve a captcha solve it and then return it to the web page without reloading by using c++. For the http request i using qtnetwork
     
  2. carrion

    carrion Newbie

    Joined:
    Jan 20, 2010
    Messages:
    44
    Likes Received:
    8
    You should just use a captcha service. Different types of captcha take different techniques to solve and some are far more difficult then others.

    This is one of those situations (and I don't say this often) where if you have to ask, you probably shouldn't do it.

    However, if you insist, what TYPE of captcha are you targeting?
     
  3. -SICK-

    -SICK- Registered Member

    Joined:
    Jul 17, 2011
    Messages:
    53
    Likes Received:
    22
    Firstly, you have to parse the whole page.
    Since you use qt librarys, I recommend using the qt xml parser, which is very fast and easy to use.

    After that, you have to get the captcha node. Now, you can work with it.
    Depending on the captcha system, each captcha has its unique identifier, which can be posted to captcha-solving services.

    You could also get the captcha picture (in most cases enclosed in some <img>...</img> - use the xml parser to find it) and show it to the user, so he/she is able to solve it.

    So basically, it's not rocket science, just some simple parsing, GETting and POSTing.

    It really depends on the site and captcha type, though. Also, dont expect any source code here. You should be able to do that yourself.

    kind regards,
    SICK
     
    Last edited: Dec 6, 2011
  4. vicellous

    vicellous Newbie

    Joined:
    Dec 6, 2011
    Messages:
    3
    Likes Received:
    0
    The problem is that the page is refereshed
     
  5. lancis

    lancis Elite Member

    Joined:
    Jul 31, 2010
    Messages:
    1,632
    Likes Received:
    2,384
    Occupation:
    Entrepreneur
    Location:
    Milky Way
    Home Page:
  6. -SICK-

    -SICK- Registered Member

    Joined:
    Jul 17, 2011
    Messages:
    53
    Likes Received:
    22
    No need for curl, you can do POST stuff with qt aswell.

    kind regards,
    SICK
     
  7. vicellous

    vicellous Newbie

    Joined:
    Dec 6, 2011
    Messages:
    3
    Likes Received:
    0
    Im gonna try to code this with qt. I hope that i can get the captcha resolve it with a bypass service and post the result without refresh the page between the two step
     
  8. DanielMA

    DanielMA Registered Member

    Joined:
    Nov 4, 2011
    Messages:
    65
    Likes Received:
    5
    Location:
    DK
    Qt will be fine for this, and as ppl said, don't try to build a solver. You'll need a massive amount of data consisting of the captcha image, along with the solution, and then use Machine Learning to solve them. The Machine Learning part is not that difficult (computer scientist ;)), it's getting the huge amount of data..