Jump to content
UBot Underground

How to loop sing up form if captcha is wrong


Recommended Posts

Hi guys me again this is my question how do you loop and reenter captcha when you write it wrong.

So basically I have a form I put all the information inside but I get the captcha wrong like this the form will reload again and I'm stuck becuase at the end of the sub I have wait finish and then continue to the next sub but I don't know how to make it so if the captcha is wrong to repeat the sub once again and let me try again . Any ideas.

Link to post
Share on other sites

Hi guys me again this is my question how do you loop and reenter captcha when you write it wrong.

So basically I have a form I put all the information inside but I get the captcha wrong like this the form will reload again and I'm stuck becuase at the end of the sub I have wait finish and then continue to the next sub but I don't know how to make it so if the captcha is wrong to repeat the sub once again and let me try again . Any ideas.

 

what i normally do is use the if command like so 2-4 times in a row

repeat this 2-4 times

if

search page

the error message you get if captcha is wrong

then

chose by attribute

 

decode chosen captcha

 

fill field

click button

delay 3

 

then at the end of them i add

if

search page

the error message you get if captcha is wrong

then

run java

alert('WOW you really suck at this you have entered the wrong captcha 5 times in a row the bot will now stop please try again latter after you get your eyes checked ');

 

pause script

chose by attribute

 

decode chosen captcha

 

fill field

click button

delay 3

 

or you can

 

set

#captchasolved

=no

 

decode chosen captcha

 

fill field

click button

delay 3

search page

the message you get if captcha is right

then

set

#captchasolved

=Yes

 

while

#captchasolved

=no

if

search page

the error message you get if captcha is wrong

then

chose by attribute

 

decode chosen captcha

 

fill field

click button

delay 3

 

if

search page

the message you get if captcha is right

then

set

#captchasolved

=Yes

 

basically will keep looping until you get it right

Link to post
Share on other sites

Another option is to put the captcha solving process in a sub followed by one if/then statement. The if/then statement can be either inside or outside of the sub, it will have the same result.

 

If (captcha is wrong)

 

Then run sub (captcha)

Link to post
Share on other sites

you can also use the while loop would be the best wayPftg4

As Pftg4 mentioned a while loop would be the best and most flexible.

 

Here's how I handle the multiple attempts as well as setting a max limit

 

set #num-tries = 0
set #max-tries = 5
set #test-pass = 0

WHILE
both
 #test-pass = 0
 #num-tries < #max-tries

inc #num-tries
// do captcha stuff
waitFinish
if
 searchPage("Something Specific to the 'Success' page")
then
 inc #test-pass
END WHILE

if
searchPage("Something Specific to the 'Success' page)
then
// More code here now that captions are solved
else
// Something else here if attempts went over the max allowed.

Link to post
Share on other sites

As Pftg4 mentioned a while loop would be the best and most flexible.

 

Here's how I handle the multiple attempts as well as setting a max limit

 

set #num-tries = 0
set #max-tries = 5
set #test-pass = 0

WHILE
both
 #test-pass = 0
 #num-tries < #max-tries

inc #num-tries
// do captcha stuff
waitFinish
if
 searchPage("Something Specific to the 'Success' page")
then
 inc #test-pass
END WHILE

if
searchPage("Something Specific to the 'Success' page)
then
// More code here now that captions are solved
else
// Something else here if attempts went over the max allowed.

 

 

ALL KNEEL. THE WHILE HAS POWER!

Link to post
Share on other sites
  • 2 weeks later...
  • 7 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...