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

PHP Curl - Captcha in a non-form page ("submit via javascript")

Discussion in 'General Programming Chat' started by supremo900, Feb 22, 2016.

  1. supremo900

    supremo900 Newbie

    Joined:
    Jan 29, 2016
    Messages:
    2
    Likes Received:
    0
    Hello guys :)

    I'm trying to fill a captcha in a page but it has no form and no post page to send data, so I'm unable to send my captcha text to some url and get access to the system via cURL.

    Could someone help me find out how to do this? All cURL after this part I have already done. I just can't pass this captcha part :'(


    Site with captcha and field to type (please, see below the full url to type here)
    siteurl/juridico/sf/captcha.jsp

    Image only (I have already created a curl to grab this image and save locally in order to type manually in my own form)
    siteurl/juridico/sf/captcha.svl

    siteurl ->
    www4.
    (erasethis) tjmg. (erasethistoo) just.br (alsothis)

    I need this solution in PHP (no other language).
    Would you guys be able to take this challange :p ? :cheerlead
    PS: I don't need to bypass captcha. It would be great to have that, but it's not necessary.
     
  2. kahuna74

    kahuna74 Regular Member

    Joined:
    Aug 19, 2014
    Messages:
    270
    Likes Received:
    102
    Gender:
    Male
    Occupation:
    Software Developer
    Location:
    Grand Rapids, MI
    Open up chrome and look at the network activity tab in your developer tool console. You'll see where to POST the data.
     
  3. Des_cartes

    Des_cartes Junior Member

    Joined:
    Jan 19, 2012
    Messages:
    160
    Likes Received:
    64
    Seems that it's using JS to validate the captacha so you can't use CURL for that.
     
  4. kahuna74

    kahuna74 Regular Member

    Joined:
    Aug 19, 2014
    Messages:
    270
    Likes Received:
    102
    Gender:
    Male
    Occupation:
    Software Developer
    Location:
    Grand Rapids, MI
    I was going to tell him that phantomjs would be his best option, but he doesn't want to hear that :)