Page 1 of 1

I am trying to make a 2captcha bot

Posted: Wed Jan 20, 2021 12:57 pm
by mendozaomarxd
i am using imacros 10.1.0 extension free
Google Chrome
Version 87.0.4280.88
I am trying to do a 2captcha bot but the second link where the response is returned does not open, it remains blank and it jumps to the next step and ends up doing the normal route
My question is can I do it as I come or is it even possible to input the Js code into the macro? I await your quick responses

Code: Select all

VERSION BUILD=1010 RECORDER=CR
SET MIURL=http://2captcha.com/res.php?key=1abc234de56fab7c89012d34e56fa7b8&action=
ADD !EXTRACT {{!URLCURRENT}}

SET !ERRORIGNORE YES

URL GOTO=https://www.google.com/recaptcha/api2/demo
TAG POS=1 TYPE=DIV ATTR=CLASS:reveal-modal-bg
TAB OPEN
TAB T=2
'Submit the captcha
URL GOTO=http://discount.2captcha.com/in.php?key="1abc234de56fab7c89012d34e56fa7b8"&method=userrecaptcha&googlekey=6LeGfGIUAAAAAEyUovGUehv82L-IdNRusaYFEm5b&pageurl=https://www.google.com/recaptcha/api2/demo
TAG POS=1 TYPE=* ATTR=TXT:* EXTRACT=TXT
SET captid EVAL("var s=\"{{!EXTRACT}}\"; s.split(' ')[0].split('|')[1]")
SET !EXTRACT {{captid}}
WAIT SECONDS=30
TAB close
TAB T=2
'Wait for the answer
'
'
tab open
TAB T=2
URL GOTO={{MIURLget}}&id={{captid}}

'
'
'
WAIT SECONDS=30
REFRESH
TAG POS=1 TYPE=* ATTR=TXT:* EXTRACT=TXT
SET answer EVAL("var s=\"{{!EXTRACT}}\"; s.split(' ')[0].split('|')[1]")
SET !EXTRACT {{answer}}
TAB close
TAB T=2
WAIT SECONDS=0.5
TAG POS=1 TYPE=TEXTAREA FORM=ID:* ATTR=ID:g-recaptcha-response CONTENT={{answer}}
SET !EXTRACT NULL
'Execute the callback
URL GOTO = javascript:onSuccess();
WAIT SECONDS=0.5
TAG POS=1 TYPE=TEXTAREA FORM=ID:* ATTR=ID:g-recaptcha-response CONTENT={{answer}}
'Execute the callback
URL GOTO = javascript:onSuccess();
WAIT SECONDS=0.5
'Submit form
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:recaptcha-demo-form ATTR=ID:recaptcha-demo-submit