Jump to content
UBot Underground

Is there a math captcha solver built in UB ?


Recommended Posts

  • 2 weeks later...
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...

Link to post
Share on other sites
  • 2 months later...

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

Link to post
Share on other sites
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!!

Link to post
Share on other sites
  • 1 month later...

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

Link to post
Share on other sites

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 use

Hint: 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...

Link to post
Share on other sites

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=2

1+2=3

2-1=1

2x3=6

etc...

 

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 ?

Link to post
Share on other sites

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.

Link to post
Share on other sites
  • 2 weeks later...

Ok i do see in the debugger the right answer

ex:

#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 it

type text(<name="answer">#answer"Standard")

 

Unless you have a better option ?

Link to post
Share on other sites

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 .

Link to post
Share on other sites

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 catpchas

so

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 {
    }
}

Link to post
Share on other sites

Can it solve multiplications 8x8=64 or divisions ?

 

Cause right now it's not working on my end.

Working fine with "+" and "-"

Link to post
Share on other sites
  • 2 weeks later...

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

Link to post
Share on other sites

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")
Link to post
Share on other sites

Humm don't know what i'm doing wrong now

I'm using

this regex

"\\d\\s.*\\d\\s"), "\\sx\\s", "*"))

and it's doesn't work ?

 

Thanks

Link to post
Share on other sites

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)

Link to post
Share on other sites

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...