Skip to content

Latest commit

 

History

History

Bookmarklet

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Bookmarklet

The provided link had a input link with js code on the input field.

  • The code:
        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);
        })();

Running that code on the console of the browser gives the flag on alert window.

Flag

picoCTF{p@g3_turn3r_0c0d211f}