Earn some Burstcoin - Fully automatic Moonbit.co.in script (iMacro)



  • Hello Everyone!

    With a bit of inspiration (@dagentlemang) I started working on this little script that can fully automatically claim some satoshis. It's made for the website called Moonbit.co.in, which is an fairly known faucet.

    In this script there is one key difference to other iMacro scripts. It isn't using any captcha solving service. So you don't need to pay anything or solve captchas by yourself. Instead it's using something trickier. More on that below.

    And in the end you can exchange it for some Burstcoins.

    How to setup

    1. Register an account at: Moonbit.co.in
      The above link is a refferal link. It would be great, if you signup using it to give me a little bonus.

    2. Download and install Mozilla Firefox & iMacros & NoScript
      I used Firefox version 49, because the newer ones like Quantum aren't supported by iMacros.
      It's absolutely necessary for you to use version 8.9.7 of iMacros

    #Firefox v.49: https://ftp.mozilla.org/pub/firefox/releases/49.0/
    #iMacros: https://addons.mozilla.org/en-US/firefox/addon/imacros-for-firefox/versions/?page=1#version-8.9.7
    #NoScript: https://addons.mozilla.org/de/firefox/addon/noscript/versions/?page=1#version-5.1.8.4
    
    1. Create a new macro by starting a recording. Then stop and edit it. Paste the following code in:
    //Moonbit.co.in iMacro script
    
    //Configuration
    var IMAGE_PATH = 'C:\\Users\\YOUR-USERNAME\\Documents\\iMacros\\'
    //---------------------------------\\
    
    while(true){
      macro = "";
    
      macro += "CODE:" + "\n";
      macro += "VERSION BUILD=9030808 RECORDER=FX" + "\n";
      macro += "URL GOTO=http://moonbit.co.in" + "\n";
      macro += "SET !TIMEOUT_STEP 60" + "\n";
      macro += "TAB T=1" + "\n";
      macro += "TAG POS=1 TYPE=INPUT:BUTTON FORM=ID:dd2eGG26 ATTR=ID:SubmitButton" + "\n";
      macro += "WAIT SECONDS=2" + "\n";
      macro += "EVENTS TYPE=KEYPRESS SELECTOR=* KEYS=\"[33,33,33,33,33,33,33,33,33,33,33]\"" + "\n";
      macro += "WAIT SECONDS=2" + "\n";
    
      iimPlay(macro);
    
      Components.utils.import("resource://gre/modules/Services.jsm");
      var utils = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIDOMWindowUtils);
    
      var s = window.document.querySelectorAll('#adcopy-puzzle-image')[0];
      var de = window.document.documentElement;
      var b = s.getBoundingClientRect();
      s2 = {top: b.top + window.pageYOffset - de.clientTop,left: b.left + window.pageXOffset - de.clientLeft,width: s.offsetWidth,height: s.offsetHeight};
    
      utils.sendMouseEvent("mousedown",120+s2.left,70+s2.top,0,1,0);
      utils.sendMouseEvent("mousemove",120+s2.left,70+s2.top,0,0,0);
      utils.sendMouseEvent("mouseup",120+s2.left,70+s2.top,0,1,0);
    
      macro = "";
    
      macro += "CODE:" + "\n";
      macro += "VERSION BUILD=9030808 RECORDER=FX" + "\n";
      macro += "SET !TIMEOUT_STEP 60" + "\n";
      macro += "ONDOWNLOAD FOLDER=" + IMAGE_PATH + " FILE=mooncaptcha.jpg" + "\n";
      macro += "WAIT SECONDS=10" + "\n";
      macro += "TAG POS=1 TYPE=DIV ATTR=ID:adcopy-puzzle-image CONTENT=EVENT:SAVE_ELEMENT_SCREENSHOT" + "\n";
      macro += "WAIT SECONDS=4" + "\n";
      macro += "TAB OPEN" + "\n";
      macro += "TAB T=2" + "\n";
      macro += "URL GOTO=https://cloud.google.com/vision" + "\n";
      macro += "FRAME F=1" + "\n";
      macro += "TAG POS=1 TYPE=INPUT:FILE ATTR=ID:input CONTENT=" + IMAGE_PATH + "mooncaptcha.jpg" + "\n";
      macro += "WAIT SECONDS=7" + "\n";
      macro += "TAG POS=1 TYPE=DIV ATTR=TXT:Text" + "\n";
      macro += "EVENT TYPE=KEYPRESS SELECTOR=* CHAR=\"a\" MODIFIERS=\"ctrl\"" + "\n";
      macro += "EVENT TYPE=KEYPRESS SELECTOR=* CHAR=\"c\" MODIFIERS=\"ctrl\"" + "\n";
      macro += "SET !EXTRACT {{!CLIPBOARD}}"; 
    
      iimPlay(macro);
    
      var res = iimGetLastExtract();
    
      if(res.length > 0){
        var fields = res.split(':');
    
        var answer = fields[fields.length - 1];
        iimSet("answer", answer);
    
        iimDisplay(answer);
    
        macro = "";
    
        macro += "CODE:" + "\n";
        macro += "VERSION BUILD=9030808 RECORDER=FX" + "\n";
        macro += "SET !TIMEOUT_STEP 60" + "\n";
        macro += "TAB CLOSE" + "\n";
        macro += "WAIT SECONDS=2" + "\n";
        macro += "TAG POS=1 TYPE=A ATTR=ID:adcopy-page-return" + "\n";
        macro += "WAIT SECONDS=2" + "\n";
        macro += "TAG POS=1 TYPE=INPUT:TEXT FORM=ID:dd2eGG26 ATTR=ID:adcopy_response CONTENT={{answer}}" + "\n";
        macro += "TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:dd2eGG26 ATTR=ID:KhhNjjMMMNs3" + "\n";
        macro += "WAIT SECONDS=600" + "\n";
    
        iimPlay(macro);
      }else{
        iimDisplay("ERROR! We got no answer!");
    
        macro = "";
    
        macro += "CODE:" + "\n";
        macro += "VERSION BUILD=9030808 RECORDER=FX" + "\n";
        macro += "SET !TIMEOUT_STEP 60" + "\n";
        macro += "TAB CLOSE" + "\n";
        macro += "WAIT SECONDS=2" + "\n";
        macro += "TAG POS=1 TYPE=A ATTR=ID:adcopy-page-return" + "\n";
        macro += "WAIT SECONDS=600" + "\n";
    
        iimPlay(macro);
      }
    }
    

    Now you have to change the IMAGE_PATH, which is located in line four. You have to replace "YOUR-USERNAME" with your computers account. Linux users need to do the same. Here is it located at: /home/YOUR-USERNAME/iMacros/ if I remember it correctly.
    Save the file using the button, which says "save" when you hover over it. Save the file as a javascript file with a ".js" ending.
    Navigate to Manage -> Refresh. You should see your script now in the list.

    1. Go to the website moonbit.co.in and allow most of the advertisement sites. BUT don't allow mellowads.com, because is it opening popups, which mess your bot up. The other ones? You have to figure it out by yourself. Look what works best for you.

    2. Go to the website cloud.google.com/vision. Here you want to allow everything! Make sure that the "Try the API" box is working properly by uploading a random image.

    3. Please keep in mind that you will need to be logged in already. Also you have to change the captcha type to Solvemedia.

    4. Close all other tabs. I could add this to the script, but I'm lazy. Sorry.

    And that's it! If I haven't forgotten anything it should work!
    To start simply press on play.

    It's important that your captcha looks something like this:
    0_1523826177546_captcha.png

    I will probably improve this more in the future. Go and buy some Burst with it!
    Have a nice day!