Bot-Factory 602 Posted May 22, 2014 Report Share Posted May 22, 2014 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)CheersDan 2 Quote Link to post Share on other sites
the_way 52 Posted May 23, 2014 Report Share Posted May 23, 2014 Dan, i just enlarged your avatar, and snogged you. you sexy guru you. Quote Link to post Share on other sites
SaHiN 14 Posted May 23, 2014 Report Share Posted May 23, 2014 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 Quote Link to post Share on other sites
Bot-Factory 602 Posted May 23, 2014 Author Report Share Posted May 23, 2014 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 codeThat'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 Quote Link to post Share on other sites
SaHiN 14 Posted May 23, 2014 Report Share Posted May 23, 2014 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 Quote Link to post Share on other sites
Monovski 4 Posted February 24, 2015 Report Share Posted February 24, 2015 how if we use captcha solving service GSA CB within ubot? Quote Link to post Share on other sites
Bot-Factory 602 Posted February 24, 2015 Author Report Share Posted February 24, 2015 What's your question exactly?You download the captcha picture and then solve it via one of the captcha plugins. And the you post that result. Dan Quote Link to post Share on other sites
earthlingj 13 Posted July 19, 2015 Report Share Posted July 19, 2015 im getting and solving the captcha properly, but when i post its not working with sites anyone get it to work? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.