IMacros + DeCaptcher Tutorial. Incorporate decaptcher into imacros.

nessebar

BANNED
Joined
May 26, 2008
Messages
162
Reaction score
450
Incorporate decaptcher into imacros.
It's pretty easy to setup.

-==Ok Lets Begin=--

NOTE: To use DeCaptcher You have to Install Apache and PHP5 on Windows:

It is quite simple with WampServe. - DOWNLOAD WampServer 2.0i here - http://www.wampserver.com/dl.php
After download, install and run WampServe. (Remember to run WampServe every time when you restart windows)

Copy and paste the following into your IMacros exactly as it is displayed.


Code:
ONDOWNLOAD FOLDER=C:\wamp\www\api\ FILE=pic.jpg
TAG POS=1 TYPE=IMG ATTR=HREF:*api.recaptcha.net/* CONTENT=EVENT:SAVEPICTUREAS
TAB OPEN
TAB T=2
SET !TIMEOUT 180
URL GOTO=http://localhost/api/main.php
TAG POS=1 TYPE=BODY ATTR=TXT:* EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}

Now Download my DeCaptcher API file: Click Here to download - http://vinefirebot.com/api.zip
Unzip api.zip (Right click on the file).
Open main.php - (to open use Notepad or you favorite editor).

You will see:

define( 'HOST', "127.0.0.1" ); // YOUR HOST
define( 'PORT', MY PORT ); // YOUR PORT
define( 'USERNAME', "mylogin" ); // YOUR LOGIN
define( 'PASSWORD', "mypassword"); // YOUR PASSWORD

Login to http://www.decaptcher.com/client/

It should now look like:

General Information:

Server - - 72.233.64.162
Port - 5343
Priority Payment - $0
Balance - $29.7049


OK. Time to edit main.php.

After editing main.php should now look like.

define( 'HOST', "72.233.64.162" ); // YOUR HOST
define( 'PORT', 5343 ); // YOUR PORT
define( 'USERNAME', "myusername" ); // YOUR LOGIN
define( 'PASSWORD', "mypassword" ); // YOUR PASSWORD

Now save main.php and copy api folder to the:

C:\wamp\www\

Now your done and ready to Start Your Bot. :D
 
fucking sweet :) this will become great use for simple apps which still want catchpa but not really worth payin 100$ for freelancer to code
 
Copy and paste the following into your IMacros exactly as it is displayed.


Code:
ONDOWNLOAD FOLDER=C:\wamp\www\api\ FILE=pic.jpg
TAG POS=1 TYPE=IMG ATTR=HREF:*api.recaptcha.net/* CONTENT=EVENT:SAVEPICTUREAS
TAB OPEN
TAB T=2
SET !TIMEOUT 180
URL GOTO=http://localhost/api/main.php
TAG POS=1 TYPE=BODY ATTR=TXT:* EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}

Where should i add this file into IMacros? This guide really great. Thanks
 
Most appreciated....this way I don't have to use beatcaptchas

Thanks man
 
Well hmm u know what the problem is here. Its that I hav port 0 like I sad before and then it doesnt open my main.php file :S
 
Maybe some1 that has XAMPP on his PC could try it with that because I have no luck with this. Or explain what we could do to fix this
 
so every time a captcha pops up, it will solve it? no need to configure imacros or any scripting program?
 
Well it doesnt work atleast for me.. :( I get 0 port same ip as above. tried that ip and got some error.

Warning: unpack() [function.unpack]: Type C: not enough input, need 1, have 0 in C:\wamp\www\api\ccproto.inc.php on line 74
FAILED

Could u send me a fixed one? X)
 
Last edited:
Is there a way to check whether submission was successful or not, and then run imacros script again? Because either captcha may be recognized wrong or some other kind of error. Similar like Senuke does - two retries and then skip.
Currently I can see the only way is to check result page for some error string or error page url. But this would be a tedious work to generate checking for error pages for 50-100 bookmarking services in imacros script.
How are you guys dealing with failure to recognize captchas and other errors?
 
This is great. Should be in the scripting section. I'm sure more will appreciate it there
 
Let me just say thanks, This is definately useful info, have not tried it yet but will come in VERY VERY HANDY
 
This is fantastic, only 1 question, if i open main.php with an image file called pic.jpg in the dir, (so not using iMacros yet) it displays the name thrice, Is this intentional? and if not how can i fix it please?
 
Where should i add this file into IMacros? This guide really great. Thanks

Where do you add the code into iMacros?

also, I just copied the code and pasted it into an imcaros file and it doesn't work for some reason, It stops on
Code:
TAG POS=1 TYPE=IMG ATTR=HREF:*api.recaptcha.net/* CONTENT=EVENT:SAVEPICTUREAS
I have done everything in the tutorial too.


EDIT:
My browser doesn't go to
http://localhost/api/main.php either. D:
 
Last edited:
@ZeroBladeStaten

Have you got a php server running so it can display the main.php file

also the imacros code is to be changed to match whatever will select the captca image from the page you're attempting to bypass, the example is *api.recaptcha.net* so chance it to whatever works on the page.



I got mine workin 7-80% fo the time but editing a file to only run through a for statement once, but it does come up with a lot of incorrect solutions though
 
@ZeroBladeStaten

Have you got a php server running so it can display the main.php file

also the imacros code is to be changed to match whatever will select the captca image from the page you're attempting to bypass, the example is *api.recaptcha.net* so chance it to whatever works on the page.



I got mine workin 7-80% fo the time but editing a file to only run through a for statement once, but it does come up with a lot of incorrect solutions though

well i downloading that wampserver thing so it should work, right?
 
well i downloading that wampserver thing so it should work, right?
If you have problem with the wampserver, you can download the abyss web server from here: http://www.aprelium.com/abyssws/download.php (its totally free)

Then you can download the php without installer from here:http://www.php.net/get/php-5.2.11-Win32.zip/from/a/mirror

Unzip it and cut it and paste it in your root in the local hard disk... then follow this easy instructions http://www.aprelium.com/abyssws/php.html to integrate abyss and php, and you have your server ready...

I hope this can help you also...
 
IMacros VineFireBot Auto-Submitter.

To get bot with DeCaptcher support:
1. Go To - http://vinefirebot.com
2. Register for free account.
3. Go to My Account and enter promotion code "BHWM"
 
When the bot deciphers the decaptcha and shows it like this:
http://img248.imageshack.us/i/lolwutz.png/

When it pastes it in the Code: box in http://www.theninja-rpg.com
It SOMETIMES pastes
Example:
"sadg89 [EXTRACT] sadg89"

Anybody know why?


Also, how can i get rid of that fatal error thing?
 
Last edited:
I would recommend for Windows 7 or any Windows OS downloading PHP support for IIS. Google PHP for IIS. It is much easier than any other software to run. ((I run windows 7 and this was the only way I could get the API to work))

Next, the macro your write in IMACROS should be something to this effect. I tried to spell it out but ultimately I delete the existing captcha jpg images, save the new one, open a new tab to get the captcha and set VAR1 to hold it and then put it back into the page I needed to put it on. I also clear cache.


'<Your macro starts here>
'You navigate to the page with CAPTCHA here
'
' NOTE: Delete the captcha - i never checked to see if it would overwrite an existing one.
FILEDELETE NAME=C:\inetpub\wwwroot\api\pic.jpg
'
'Set the download folder
'
ONDOWNLOAD FOLDER=C:\inetpub\wwwroot\api\ FILE=pic.jpg
'
'Download the captcha (to do this, use SAVE ITEM command while recording and click on the captcha)
TAG POS=1 TYPE=IMG ATTR=SRC:https://api-secure.recaptcha.net/image?c=* CONTENT=EVENT:SAVEITEM
'
'Open a new tab for local host php script API
'
TAB OPEN
TAB T=2
URL GOTO=http://localhost/api/main.php
'
'
'This will wait until the captcha is process without a timeout being required Or You can set one if you want.
SET !EXTRACT_TEST_POPUP NO
TAG POS=1 TYPE=BODY ATTR=TXT:* EXTRACT=TXT
'
'Set the variable VAR1 with a CAPTCHA text. You can paste the value of this variable into some field later
SET !EXTRACT_TEST_POPUP NO
SET !VAR1 {{!EXTRACT}}
'
'This went and got you the Captcha and set it in {{VAR1}}
'
TAB T=1
'
'This is example of CAPTCHA code usage
'
'TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:frmRegister ATTR=ID:captcha CONTENT={{!VAR1}}
'
'<Your macro will continue here>
'
'
'New page loaded
TAB T=1
TAB CLOSEALLOTHERS
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:* ATTR=ID:recaptcha_response_field CONTENT={{!VAR1}}
WAIT SECONDS=3
TAG POS=1 TYPE=BUTTON ATTR=TXT:Continue
'New page loaded
'
' Log OUT
TAG POS=1 TYPE=A ATTR=TXT:log<SP>out
'
'CLEAR CACHE for Cookies and History
CLEAR
 
Back
Top