Bookmarklet¶
Description¶
Why search for the flag when I can make a bookmarklet to print it for me? Browse here, and find the flag!
Solution¶
simply go to inspect mode of your browser and run the given js code in the console.
javascript:(function() {
var encryptedFlag = "àÒÆÞ¦È¬ëÙ£ÖÓÚåÛÑ¢ÕÓÓÇ¡¥Ìí";
var key = "picoctf";
var decryptedFlag = "";
for (var i = 0; i < encryptedFlag.length; i++) {
decryptedFlag += String.fromCharCode((encryptedFlag.charCodeAt(i) - key.charCodeAt(i % key.length) + 256) % 256);
}
alert(decryptedFlag);
})();
flag: picoCTF{p@g3_turn3r_0c0d211f}