InCTF Jr 2022
August - November, 2022
InCTF Jr

JSOP

Easy Web

Author: Aneesh

Analysis

We were given a flag checker website where can enter flag and it checks if it is right or wrong

On viewing the source we can see there some javascript code in the page which is responsible for checking our input

we can see the inside the check() function with the letters it creates two flags and adding them to flags array , and at last, it compares our input with the first value in the flags array. So just have to find the first element in the flags array

Solution

We can either set a breakpoint inside the check() function after the flags are created and you can print it in the console or we can just run the js code up to the creation of the flags in the console and get the flag