Jump to content
UBot Underground

Recaptcha + http plugin 95% working


Recommended Posts

Hi Guys,

 

Here is a quick example how to work with recaptcha.

There is still something wrong with the last post command. But I haven't had time to look into that today. 

 

But maybe it gives you some ideas. 

 

And if someone knows the fix, let me know. 

 

Will update the thread when I have it working.

 

 

set(#proxy"""Global")
set(#url"http://www.wmssamples.com/user_interaction/recaptcha.aspx""Global")
set(#get$plugin function("HTTP post.dll""$http get"#url"Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/537.36"""#proxy""), "Global")
set(#VIEWSTATE$plugin function("HTTP post.dll""$xpath parser index"#get"//input[@name=\'__VIEWSTATE\']", 0, "value"), "Global")
set(#EVENTVALIDATION$plugin function("HTTP post.dll""$xpath parser index"#get"//input[@name=\'__EVENTVALIDATION\']", 0, "value"), "Global")
set(#captchaurl$find regular expression(#get"(?<=\\<iframe\\ src\\=\\\").+?(?=\\\")"), "Global")
set(#captchacode$plugin function("HTTP post.dll""$http get"#captchaurl"Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/537.36"""#proxy""), "Global")
set(#captchaurl2$find regular expression(#captchacode"image\\?c.+(?=\\\")"), "Global")
set(#recaptchachallengefield$plugin function("HTTP post.dll""$xpath parser index"#captchacode"//input[@name=\'recaptcha_challenge_field\']", 0, "value"), "Global")
plugin command("HTTP post.dll""http file download""https://www.google.com/recaptcha/api/{#captchaurl2}""d:\\captcha.jpg""")
set(#recaptcharesponsefield$plugin function("HTTP post.dll""$http captcha dialog""d:\\captcha.jpg"), "Global")
set(#postdata$plugin function("HTTP post.dll""$url encode""__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE={#VIEWSTATE}&__EVENTVALIDATION={#EVENTVALIDATION}&recaptcha_challenge_field={#recaptchachallengefield}&recaptcha_response_field={#recaptcharesponsefield}&btnSubmit=Submit&searchbox="), "Global")
set(#post$plugin function("HTTP post.dll""$http post""http://www.wmssamples.com/user_interaction/recaptcha.aspx"#postdata"Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/537.36""http://www.wmssamples.com/user_interaction/recaptcha.aspx"#proxy, 20), "Global")
load html(#post)

Cheers

Dan

  • Like 2
Link to post
Share on other sites

Hi dan,

 

http post %100 succes Method;

 

page scrape(or Get method) and recaptcha api url : http://api.recaptcha.net/challenge?k=6LcAmgAAAAAAADO6kxnkCF5LnukN_nKUJjxsS4UW   ( challenge?k=)

 

and new scrape api url and search challenge code : '03AHJ_VuvPHA-7JmGT_L8am2fZQ_dE7WN41C_KWczv-6-d......'

 

and :)

 

captcha url : http://www.google.com/recaptcha/api/image?c= #Scrape challange code

Link to post
Share on other sites

Hi dan,

 

http post %100 succes Method;

 

page scrape(or Get method) and recaptcha api url : http://api.recaptcha.net/challenge?k=6LcAmgAAAAAAADO6kxnkCF5LnukN_nKUJjxsS4UW   ( challenge?k=)

 

and new scrape api url and search challenge code : '03AHJ_VuvPHA-7JmGT_L8am2fZQ_dE7WN41C_KWczv-6-d......'

 

and :)

 

captcha url : http://www.google.com/recaptcha/api/image?c= #Scrape challange code

That's exactly what the script above does :-)

 

The problem is that posting via http post to that site who shows the captcha doesn't work for some reason. So I'm not sure if I get the correct captcha or if there is any other issue.

Getting the captcha image itself is working fine. I can also validate the captcha against the recaptcha api with that challenge token. That all works.

 

But for some reason it doesn't work when I post to the the original page.

 

Dan

Link to post
Share on other sites

That's exactly what the script above does :-)

 

The problem is that posting via http post to that site who shows the captcha doesn't work for some reason. So I'm not sure if I get the correct captcha or if there is any other issue.

Getting the captcha image itself is working fine. I can also validate the captcha against the recaptcha api with that challenge token. That all works.

 

But for some reason it doesn't work when I post to the the original page.

 

Dan

 

Dan,

http://www.wmssamples.com/user_interaction/recaptcha.aspx  site recaptcha api url : http://api.recaptcha.net/challenge?k=6LcAmgAAAAAAADO6kxnkCF5LnukN_nKUJjxsS4UW

 

please site source code and search  "http://api.recaptcha.net/challenge?k"

 

my method,

very fast and succes rate very good.

 

Edit: Post proble, okey. my english very bad ı m sory :)

Link to post
Share on other sites
  • 9 months later...
  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...