Skip to content

Instantly share code, notes, and snippets.

@Nygosaki
Created March 31, 2024 08:24
Show Gist options
  • Save Nygosaki/c72b299ab90dd6cd6360ff593982d9b3 to your computer and use it in GitHub Desktop.
Save Nygosaki/c72b299ab90dd6cd6360ff593982d9b3 to your computer and use it in GitHub Desktop.
console.clear = () => console.log('Console was cleared');
console.log('Cloudflare Revealer is running');
const i = setInterval(() => {
if (window.turnstile) {
clearInterval(i);
window.turnstile.render = (a, b) => {
let params = {
sitekey: b.sitekey,
pageurl: window.location.href,
data: b.cData,
pagedata: b.chlPageData,
action: b.action,
userAgent: navigator.userAgent,
json: 1
};
// we will intercept the message in puppeteer
console.log('intercepted-params:' + JSON.stringify(params));
window.cfCallback = b.callback;
return;
};
}
}, 50);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment