Sdctf 2021

No flag for you

Solved By : Taz

  • We found out that ls, cat, echo commands were available.
  • So started looking around for these.
  • Found a way to list dir using echo:
echo /*

  • started looking around for the flag and found it in the /home/user/run/opt dir
echo /home/user/run/opt/*
  • Did some research on ways to read a file using echo, and got something.
  • Reference link: https://stackoverflow.com/questions/22377792/how-to-use-echo-command-to-print-out-content-of-a-text-file
echo "$(</home/user/run/opt/flag-b01d7291b94feefa35e6.txt)"

Published on : 10 May 2021