Skip to content

Instantly share code, notes, and snippets.

@limkokhole
Forked from wberdowski/Popcat no-click bot POC.js
Created August 14, 2021 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save limkokhole/5f66585fcef32ad70b71c30c91020c0b to your computer and use it in GitHub Desktop.
Save limkokhole/5f66585fcef32ad70b71c30c91020c0b to your computer and use it in GitHub Desktop.
Ban-proof popcat bot
/*
1) Open https://popcat.click
2) Open console (F12 or CTRL+SHIFT+I)
3) Insert code & run
4) Monitor bot progress in the console
Note: popcat.click server registers only 800 pops every 30 seconds per IP address (that's why this bot is slow and runnig it in multiple tabs won't work).
If you'll send 800 or more clicks 10 times in a row, you'll get banned for 12 hours ("ban" cookie is set).
This bot addresses this issue and will NOT get you banned.
POLSKA GUROM!
*/
(()=>{
console.clear()
var event = new KeyboardEvent('keydown', {
key: 'g',
ctrlKey: true
});
// Start sendStats interval
document.dispatchEvent(event);
// Total pops
var total = 0;
var iv = setInterval(()=>{
// Get VUE
var vue = document.getElementById('app').__vue__;
// Check if user is marked as bot (just for safety measures, very unlikely to happen)
if(vue.bot){
console.log("%c You've been barked as a bot. Please clear your cookies.", "background: #a00; color: #fff");
clearInterval(iv);
return;
}
// Prevent ban
vue.sequential_max_pops = 0;
// Detect sendStats function run
if(vue.accumulator == 0){
total += 800;
console.log(`[${new Date().toLocaleTimeString()}] %c800 pops sent (Total: ${total})`, "color: #0f0");
// Open and close cat's mount
vue.open = true;
setTimeout(()=>{
vue.open = false;
}, 1000);
}
// Set 800 pops
vue.accumulator = 800;
}, 1000);
console.log("%c Bot started. Waiting for the first request being sent. ", "background: #050; color: #0f0");
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment