Giter Club home page Giter Club logo

popcat-popbot's Introduction

Let's fight for Malaysia's PopCat world ranking 🇲🇾

This is a JS/Python bot script for PopCat challenge that bypass bot detection and send pops (clicks) to the PopCat's API endpoint directly, so to ensure that:

  1. You hit the max 800 clicks per 30s (according to the API rate limit)
  2. You won't get marked as bot (100% works - Direct send clicks to API endpoint)

📢 Update v3.1.3: Added Mobile browser support, improved error messages & fixed minor bugs

How to Use (JS version)

  1. Copy all content of the file: clickbot-v3.1.3.js (OR minified version clickbot-v3.1.3.min.js)
  2. Visit https://popcat.click/
  3. Tap F12 to open browser devtool & navigate to "Console" tab
  4. Tap Ctrl + v to paste all content into console
  5. Tap Enter to run the script
  6. Wait for the magic to happen...

⚠️NOTICE: Limited to only 1 PopCat running per device/IP address.

✅ Support PC & Mobile browsers

❗❗ Troubleshoot Guides

❗❗ Issue still not resolved? Create an issue

How to Use (Python version)

  1. Make sure you have install Python 3 with PIP (Python package manager)
  2. Install Selenium package via PIP
  3. Click here to download script
  4. Extract files & double click "clickbot-v2.py" to run

About Popcat Rules

  • API rate limit = 800 clicks per 30 seconds (So far I can't bypass this)
  • If you send 800 clicks or above, system will only record 800 clicks & spam score +1
  • If you hit 10 spam scores, system will mark you as bot & no further clicks will be sent to the PopCat API

UPDATE: Clearing bot cookie won't work at script level, because PopCat also set this.bot variable to true, unless you clear the cookie & refresh the browser (reload the script). The bot cookie is only useful for them to record you as bot when you refresh the browser.

You may check the script extracted from PopCat's App.vue (line 152).

See the file: popcat-App.html

Changelog

- Clickbot script v3.1

  • Added mobile browser support
  • Added error reporting messages
  • See which country you're targeting & total clicks sent

See the file: popbot-v3.1.3.js

- Clickbot script v3

  • Send 800 clicks per 30 seconds
  • Directly send clicks via the Popcat's API endpoint

See the file: clickbot-v3.js

- Clickbot script v2 (DEPRECATED)

  • Send 800 clicks per 30 seconds
  • Use PopCat native sendStats() function
  • Clear spam scores automatically

NOTE: Some reported that they'll still get the "red eyes" using the JS script. So I have updated the script to v3 which solves the issue.

See the file: clickbot-v2.js

Screenshot

Still working after running over 12 hours:

Credit

Special thanks to senpai "Lim Shang Yi" (FB) for the inspiration.

Disclaimer

The author is not responsible for any loss or damage of your personal assets including your laptops, PCs and brain 😎

Attribution & License

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License. You must give appropriate credit, provide a link to the original GitHub repository, and indicate if changes were made.

Please includes the line below in your redistributed and/or modified script:

Original author: Xavier Loo (https://github.com/jvloo/popcat-popbot)

popcat-popbot's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

popcat-popbot's Issues

Hi

I have fixed code:

  1. remove duplicate loop func :)
  2. sync display count and cookie
// Set country code to MY
document.cookie = "country=VN;expires=Sat, 31 Dec 2022 12:00:00 UTC;path=/";

// Access Popcat vue instance
var app = document.querySelector('#app').__vue__;

// Get first batch of reCAPTCHA token
await app.$recaptchaLoaded();
var token = await app.$recaptcha('pop');

// Add JQuery script (Yes, I just wanna use JQuery)
var jq = document.createElement('script');
jq.src = "https://code.jquery.com/jquery-3.3.1.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);

// Start iteration once JQuery loaded
var loaded = setInterval(() => {
    if (typeof $ != 'undefined') {
        clearInterval(loaded);
        setInterval(() => {
            send()
        }, 30000);
        //send();
    }
}, 100);

// Send API request function
async function send() {
    try {
        await $.ajax({
                url: 'https://stats.popcat.click/pop?pop_count=800&captcha_token=' + token
            })
            .then(function(r) {
                console.log(`Successfully sent 800 clicks`);
                token = r.Token;
                pop();
            })
            .fail(function(e) {
                console.log(`Failed due to error ${e.responseText}. Retrying..`);
            })
    } catch (e) {
        console.log('Failed to initialize API call. Retrying..');
    }
}

// Increment counter function (optional)
function pop() {


    var n = parseInt($('.counter').text().replace(/,/g, ''));
    var n2 = n + 800

        $('.counter').text(n2.toLocaleString('en-US'));

    document.cookie = "pop_count=" + n2 + ";expires=Sat, 31 Dec 2022 12:00:00 UTC;path=/";
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.