we will solve Picker I from PicoCTF

Untitled

Let’s download the source code and read it

Untitled

Please notice that out input land in eval function

Untitled

notice that there was a function called win if we type win in out input the function will be called!

nc saturn.picoctf.net 63879
Try entering "getRandomNumber" without the double quotes...
==> win

Untitled

Notice that there was a random hex decimal numbers let’s go to cyberchef to decode it

picoCTF{4_d14m0nd_1n_7h3_r0ugh_b523b2a1}

Untitled

and we go the flag!