Skip to content

Latest commit

 

History

History

dont-use-client-side

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Notes

Challenge:dont-use-client-side

Given Website link:

https://jupiter.challenges.picoctf.org/problem/17682/
  • The js code was found on the page
  function verify() {
    checkpass = document.getElementById("pass").value;
    split = 4;
    if (checkpass.substring(0, split) == 'pico') {
      if (checkpass.substring(split*6, split*7) == '706c') {
        if (checkpass.substring(split, split*2) == 'CTF{') {
         if (checkpass.substring(split*4, split*5) == 'ts_p') {
          if (checkpass.substring(split*3, split*4) == 'lien') {
            if (checkpass.substring(split*5, split*6) == 'lz_b') {
              if (checkpass.substring(split*2, split*3) == 'no_c') {
                if (checkpass.substring(split*7, split*8) == '5}') {
                  alert("Password Verified")
                  }
                }
              }
      
            }
          }
        }
      }
    }
    else {
      alert("Incorrect password");
    }
    
  }
  • So the flag is
picoCTF{no_clients_plz_b706c5}