webpro 31 Posted December 13, 2012 Report Share Posted December 13, 2012 Is there a math captcha solver built in UB ? Ex:Do the math 90 + 16 : Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted December 13, 2012 Report Share Posted December 13, 2012 $eval( scrape the math problem into it ) this will return the result Quote Link to post Share on other sites
AutomationNinja 194 Posted December 15, 2012 Report Share Posted December 15, 2012 I think most of those math captchas are image based though. I created one that reads the images and then returns the answers. I don't know if that would help you at all, but if you PM me I can send it your way. Quote Link to post Share on other sites
sjarad 0 Posted December 26, 2012 Report Share Posted December 26, 2012 Another relative question....Is there a way for ubot to solve captchas like on this page? journalspace(dot)com/register Please advise. Thanks! Quote Link to post Share on other sites
webpro 31 Posted December 26, 2012 Author Report Share Posted December 26, 2012 Odd, site ain't loading from here Quote Link to post Share on other sites
a2mateit 395 Posted December 27, 2012 Report Share Posted December 27, 2012 Another relative question....Is there a way for ubot to solve captchas like on this page? journalspace(dot)com/register Please advise. Thanks! Never seen that one before... Looks pretty difficult, might require a manual prompt to enter the captcha... Quote Link to post Share on other sites
Frank 177 Posted December 27, 2012 Report Share Posted December 27, 2012 That's a new one on me too. I'll have to agree with a2mateit for the time being on this one. Frank Quote Link to post Share on other sites
Camel 0 Posted March 14, 2013 Report Share Posted March 14, 2013 I am trying to get this going. When I use the 'solve captcha' in 'text to type' my results are not adding up. Pun intended. 8+3=83. It is simple, what am I over-looking?Thanks,Camel Quote Link to post Share on other sites
Camel 0 Posted March 14, 2013 Report Share Posted March 14, 2013 I am trying to get this going. When I use the 'solve captcha' in 'text to type' my results are not adding up. Pun intended. 8+3=83. It is simple, what am I over-looking?Thanks,Camel I had some discrepancies in the captcha element text. I had too much info in it and just cut it down. Posting makes you think in a different direction - thanks!! Quote Link to post Share on other sites
Anonym 53 Posted March 14, 2013 Report Share Posted March 14, 2013 You seem to add strings instead of adding numbers. Try using the $eval function on the numbers. Quote Link to post Share on other sites
webpro 31 Posted April 23, 2013 Author Report Share Posted April 23, 2013 I will try to make my first math captcha working but right now it's not doing a thing.Here is the html below <form method=post> <input type=hidden name=id value="4"> 17 - 15 = <input size=2 type=text name="answer"> <br><br><input type=submit name=submit value="Submit"> </form> Ubot: set(#captcha, $page scrape("<input type=hidden name=id value=\"4\">", " = <input size=2 type=text name=\"answer\">"), "Global") set(#captcha, $replace(#captcha, " ", $nothing), "Global") type text(<name="answer">, $eval(#captcha), "Standard") Thanks guys Quote Link to post Share on other sites
VaultBoss 310 Posted April 24, 2013 Report Share Posted April 24, 2013 Try using the DEBUGGER to see what happens with your variables along the bot running...Place stop script OR pause script in certain places so that you can evaluate the results partially, etc... Now, strictly on topic: I didn't check your scrape, but if it works as you want it to and it returns what I see there"17 - 15 = ", then this line of code: set(#captcha, $replace(#captcha, " ", $nothing), "Global") ... should return the value: '17-15=' in DEBUGGER Obvioulsy, $eval CANNOT do the math on a text like that.(You can do it in Google's search box if you want to, though...) You need to 'transform that string into something that $eval could useHint: for instance remove the equal sign '=' You might even have to use a $trim on that, to eliminate the line feed above the math string, too... Quote Link to post Share on other sites
webpro 31 Posted April 25, 2013 Author Report Share Posted April 25, 2013 Thanks One thing i must make sure about trying to solve this. If i understood this right in english, the $eval parameter isn't solving the math problem ? You need to solve them first by creating every possible math problem using $eval ?Teach the bot if you prefer ?That:1+1=21+2=32-1=12x3=6etc... If it's the case, i won't try this LOL ! There's way too much possibilies with even only 2 digits number (with + - / x)Is there a code somewhere that already has the math solutions done ? Quote Link to post Share on other sites
VaultBoss 310 Posted April 25, 2013 Report Share Posted April 25, 2013 No, what I said was that the string you were scraping, containing the sign '=' in it, is not allowed in an $eval() You can use there only what it accepts, such as 1+2 for instance and it will return 3 but not if you use the = sign, because then it will become a string that $eval cannot evaluate. Quote Link to post Share on other sites
webpro 31 Posted May 6, 2013 Author Report Share Posted May 6, 2013 Ok i do see in the debugger the right answerex:#answer: 60#mathquestion: 51 + 9 = define the ultimate math captcha { set(#mathquestion, $scrape attribute(<method="post">, "innertext"), "Global") set(#answer, $eval($trim($replace(#mathquestion, "=", $nothing))), "Global") } math captcha() <form method="post"> <input type="hidden" name="id" value="8"> 51 + 9 = <input size="2" type="text" name="answer"> <br><br><input type="submit" name="submit" value="Submit"> </form> I'm missing something as the answer doesn't get copied into the answer box ? Any ideas why ?Thanks EDITED: Got ittype text(<name="answer">, #answer, "Standard") Unless you have a better option ? Quote Link to post Share on other sites
webpro 31 Posted May 7, 2013 Author Report Share Posted May 7, 2013 Now on some occasions, it get the wrong answer ? So i figured i should add something to tell the bot that if it sees WRONG ANSWER! to reload the page to get a new math captcha and solve it before moving on . Quote Link to post Share on other sites
webpro 31 Posted May 7, 2013 Author Report Share Posted May 7, 2013 Ok this works. I thought i would share this as it wouldn't be a bad idea to pad yourself to get a second chance at solving catpchasso if($exists(<innertext="Answer this question to prove you are a real human before continuing:">)) { then { math captcha() } else if($exists(<outerhtml=w"<font color=\"*\">Wrong answer!</font>">)) { then { run javascript("location.reload(true);") wait for browser event("Everything Loaded", "") wait(1) math captcha() } } else { } } Quote Link to post Share on other sites
webpro 31 Posted May 13, 2013 Author Report Share Posted May 13, 2013 Can it solve multiplications 8x8=64 or divisions ? Cause right now it's not working on my end.Working fine with "+" and "-" Quote Link to post Share on other sites
webpro 31 Posted May 21, 2013 Author Report Share Posted May 21, 2013 This works fine for "+" and "-" set(#mathquestion, $scrape attribute(<method="post">, "innertext"), "Global") set(#answer, $eval($trim($replace(#mathquestion, "=", $nothing))), "Global") type text(<name="answer">, #answer, "Standard") But it's not working for multiplications ? I don't understand why ?Here is the html code to scrape: <form method="post"> <input type="hidden" name="id" value="9"> 2 x 7 = <input size="2" type="text" name="answer"> <br><br><input type="submit" name="submit" value="Submit"> </form> Can someone please try this on their end ?What the heck am i doing wrong as like i said, it works fine for "+" and "-"Now i'm beginning to wonder if it won't work also for divisions (didn't get on one so far as captcha so...) Thanks a lot guys Quote Link to post Share on other sites
Pete 121 Posted May 21, 2013 Report Share Posted May 21, 2013 load html("<form method=\"post\"> <input type=\"hidden\" name=\"id\" value=\"9\"> 2 x 7 = <input size=\"2\" type=\"text\" name=\"answer\"> <br><br><input type=\"submit\" name=\"submit\" value=\"Submit\"> </form>")type text(<name="answer">, $eval($replace regular expression($find regular expression($document text, "\\d\\s.*\\d\\s"), "\\sx\\s", "*")), "Standard") Quote Link to post Share on other sites
webpro 31 Posted May 21, 2013 Author Report Share Posted May 21, 2013 Thanks ZAP i'll give this a shot Quote Link to post Share on other sites
webpro 31 Posted May 21, 2013 Author Report Share Posted May 21, 2013 Humm don't know what i'm doing wrong nowI'm usingthis regex "\\d\\s.*\\d\\s"), "\\sx\\s", "*")) and it's doesn't work ? Thanks Quote Link to post Share on other sites
webpro 31 Posted May 21, 2013 Author Report Share Posted May 21, 2013 Do you guys have a regex code laying around which could grab from 0+0 to 999+999 = 0-0 to 999-999 = 0x0 to 999x999 = 0/0 to 999/999 = I suck at regex (ubot too to be honest hahahahaha) Quote Link to post Share on other sites
Pete 121 Posted May 21, 2013 Report Share Posted May 21, 2013 maybe if you look at it longhand you can work it outbot.ubot Quote Link to post Share on other sites
webpro 31 Posted May 21, 2013 Author Report Share Posted May 21, 2013 Oh thanks a lot ZAP, it works with your test so i will be able to learn/implement this i guess. 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.