Instantly share code, notes, and snippets.

Embed
What would you like to do?
JS cheat code for http://www.whoismrrobot.com/fsociety/ (obfuscated keyboard level)
/* Coded by Juno_okyo */
function getRealKey(char) {
var keyMap = keys = '',
index = 0,
el = document.getElementsByClassName('key char');
keyMap = 'qwertyuiop';
keyMap += 'asdfghjkl';
keyMap += 'zxcvbnm';
for (i = 0; i < el.length; i++) {
keys += el[i].textContent;
}
index = keys.indexOf(char);
return keyMap.toUpperCase()[index];
}
function payload() {
var txt = 'CORRUPTION'.split(''),
result = '';
for (i in txt) {
result += getRealKey(txt[i]) + ' ';
}
return result;
}
payload();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment