I am trying to make a 2captcha bot

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
mendozaomarxd
Posts: 12
Joined: Thu Dec 31, 2020 2:12 pm

I am trying to make a 2captcha bot

Post by mendozaomarxd » Wed Jan 20, 2021 12:57 pm

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
Post Reply