Last active
December 27, 2017 16:00
-
-
Save J2TEAM/a97feee378c4257a417c to your computer and use it in GitHub Desktop.
JS cheat code for http://www.whoismrrobot.com/fsociety/ (obfuscated keyboard level)
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
/* 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