LazyBotter 188 Posted May 31, 2013 Report Share Posted May 31, 2013 Here is are two functions to help you solve ReCaptcha using the HTTP Post plugin created by Aymen, set(#Out, $plugin function("HTTP post.dll", "$http get", "https://www.livejournal.com/create", "", "", "", ""), "Global") set(#Challenge, $Recaptcha Get Challenge HTTP Post(#Out), "Global") set(#Response, $Recaptcha Get Response HTTP Post(#Out), "Global") define $Recaptcha Get Challenge HTTP Post(#Page_With_Recaptcha) { set(#Out, #Page_With_Recaptcha, "Local") set(#Out, $replace($find regular expression(#Out, "(http|https?):\\/\\/www.google.com\\/recaptcha\\/api\\/challenge\\?k=.*?\""), "\"", $nothing), "Local") set(#Out, $replace($replace($find regular expression($plugin function("HTTP post.dll", "$http get", #Out, "", "", "", ""), "challenge : \'(.*)\'"), "challenge : \'", $nothing), "\'", $nothing), "Local") return(#Out) } define $Recaptcha Get Response HTTP Post(#Page_With_Recaptcha) { set(#Out, #Page_With_Recaptcha, "Local") set(#Out, $replace($find regular expression(#Out, "(http|https?):\\/\\/www.google.com\\/recaptcha\\/api\\/challenge\\?k=.*?\""), "\"", $nothing), "Local") set(#Out, $replace($replace($find regular expression($plugin function("HTTP post.dll", "$http get", #Out, "", "", "", ""), "challenge : \'(.*)\'"), "challenge : \'", $nothing), "\'", $nothing), "Local") in new browser { load html("<img src=\"http://www.google.com/recaptcha/api/image?c={#Out}\"/>") wait for element(<src=w"http://www.google.com/recaptcha/api/image?c=*">, 10, "Appear") set(#Out, $solve captcha(<src=w"http://www.google.com/recaptcha/api/image?c=*">), "Local") } return(#Out) } Hope you like! Carl 2 Quote Link to post Share on other sites
Aymen 385 Posted May 31, 2013 Report Share Posted May 31, 2013 thats great budthx for the code Quote Link to post Share on other sites
VaultBoss 310 Posted June 1, 2013 Report Share Posted June 1, 2013 Aymen's plugin is probably one of THE most useful (and at the same time very complex) plugin in UBS world...And Aymen is not only an excellent developer, but also a great vendor who cares about his customers.Try to ask his help directly, he may solve your issue in a few minutes... Hope this helps... Quote Link to post Share on other sites
magoo 31 Posted June 1, 2013 Report Share Posted June 1, 2013 Aymen's plugin is probably one of THE most useful (and at the same time very complex) plugin in UBS world... And Aymen is not only an excellent developer, but also a great vendor who cares about his customers.Try to ask his help directly, he may solve your issue in a few minutes... Hope this helps...Steve, I think you may have mistaken the OP, LazyBotter was sharing code to help the community, not posting an issue.. Quote Link to post Share on other sites
VaultBoss 310 Posted June 1, 2013 Report Share Posted June 1, 2013 Darn, I need my coffee - BADLY! Thanks, magoo Quote Link to post Share on other sites
LazyBotter 188 Posted June 2, 2013 Author Report Share Posted June 2, 2013 This script doesn't actually work, I think it is because the cookies are stored within the define command/function. I thought it would of worked but doesn't... Never mind. Carl 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.