Bookmarklet
- Description: Why search for the flag when I can make a bookmarklet to print it for me?
- Difficulty: Easy
🔎 Solution
Upon accessing the website, a snippet of JavaScript code is provided.
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);
})();
By executing this script, the flag is revealed.
🚩Flag
picoCTF{p@g3_turn3r_0c0d211f}