1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

IMacros + DeCaptcher Tutorial. Incorporate decaptcher into imacros.

Discussion in 'BlackHat Lounge' started by nessebar, Oct 27, 2009.

  1. nessebar

    nessebar BANNED BANNED

    Joined:
    May 26, 2008
    Messages:
    163
    Likes Received:
    445
    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
     
    • Thanks Thanks x 23
  2. antsaoo

    antsaoo Supreme Member

    Joined:
    Oct 1, 2008
    Messages:
    1,291
    Likes Received:
    637
    fucking sweet :) this will become great use for simple apps which still want catchpa but not really worth payin 100$ for freelancer to code
     
  3. blackhatjohn

    blackhatjohn Regular Member

    Joined:
    Feb 25, 2009
    Messages:
    396
    Likes Received:
    367
    Where should i add this file into IMacros? This guide really great. Thanks
     
  4. elchichita

    elchichita Newbie

    Joined:
    Feb 26, 2007
    Messages:
    41
    Likes Received:
    5
    Most appreciated....this way I don't have to use beatcaptchas

    Thanks man
     
  5. lordjeri

    lordjeri Regular Member

    Joined:
    Dec 11, 2008
    Messages:
    215
    Likes Received:
    561
    Occupation:
    Design
    Location:
    BlackHatWorld
    Home Page:
    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
     
  6. huipass

    huipass Newbie

    Joined:
    Jan 9, 2009
    Messages:
    25
    Likes Received:
    4
    Home Page:

    the same as i
     
  7. lordjeri

    lordjeri Regular Member

    Joined:
    Dec 11, 2008
    Messages:
    215
    Likes Received:
    561
    Occupation:
    Design
    Location:
    BlackHatWorld
    Home Page:
    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
     
  8. djquik

    djquik Registered Member

    Joined:
    Nov 15, 2008
    Messages:
    60
    Likes Received:
    5
    so every time a captcha pops up, it will solve it? no need to configure imacros or any scripting program?
     
  9. lordjeri

    lordjeri Regular Member

    Joined:
    Dec 11, 2008
    Messages:
    215
    Likes Received:
    561
    Occupation:
    Design
    Location:
    BlackHatWorld
    Home Page:
    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: Oct 30, 2009
  10. siniy

    siniy Registered Member

    Joined:
    Sep 5, 2009
    Messages:
    53
    Likes Received:
    16
    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?
     
  11. CashDummy

    CashDummy Junior Member

    Joined:
    Oct 3, 2007
    Messages:
    186
    Likes Received:
    86
    Location:
    http://DownloadMultiMessenger.com
    Home Page:
    This is great. Should be in the scripting section. I'm sure more will appreciate it there
     
  12. proscale

    proscale Regular Member

    Joined:
    Mar 9, 2009
    Messages:
    319
    Likes Received:
    98
    Let me just say thanks, This is definately useful info, have not tried it yet but will come in VERY VERY HANDY
     
  13. spliff666

    spliff666 Newbie

    Joined:
    Sep 29, 2009
    Messages:
    3
    Likes Received:
    0
    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?
     
  14. ZeroBladeStaten

    ZeroBladeStaten Newbie

    Joined:
    Dec 16, 2009
    Messages:
    5
    Likes Received:
    0
    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: Dec 16, 2009
  15. spliff666

    spliff666 Newbie

    Joined:
    Sep 29, 2009
    Messages:
    3
    Likes Received:
    0
    @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
     
  16. ZeroBladeStaten

    ZeroBladeStaten Newbie

    Joined:
    Dec 16, 2009
    Messages:
    5
    Likes Received:
    0
    well i downloading that wampserver thing so it should work, right?
     
  17. elbeto

    elbeto Registered Member

    Joined:
    May 1, 2009
    Messages:
    98
    Likes Received:
    75
    Occupation:
    Beer drinker
    Location:
    close to the laptop
    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...
     
  18. nessebar

    nessebar BANNED BANNED

    Joined:
    May 26, 2008
    Messages:
    163
    Likes Received:
    445
    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"
     
  19. ZeroBladeStaten

    ZeroBladeStaten Newbie

    Joined:
    Dec 16, 2009
    Messages:
    5
    Likes Received:
    0
    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: Dec 20, 2009
  20. alloyd1

    alloyd1 Newbie

    Joined:
    Dec 24, 2009
    Messages:
    3
    Likes Received:
    3
    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
     
    • Thanks Thanks x 1