Skip to main content

PicoCTF2018 - Miscellaneous - environ

PicoCTF2018 - Miscellaneous - environ

Objective:
Sometimes you have to configure environment variables before executing a program. Can you find the flag we've hidden in an environment variable on the shell server?

Solution:


So let's just print out the enviroment variables and see what we see

oh, the flag is literally the first output

@pico-2018-shell:/problems/grep-2_0_783d3e2c8ea2ebd3799ca6a5d28fc742/files$ printenv                         
SECRET_FLAG=picoCTF{eNv1r0nM3nT_v4r14Bl3_fL4g_3758492}
FLAG=Finding the flag wont be that easy...

Comments