Misc
Go deeper !
Format : Hero{flag}
Author : Enarior / xanhacks
- archive.zip
Just a simple bash script that cd
into the next folder if the destination contains one folder too.
#!/usr/bin/env bash
unzip -q archive.zip
folder=you
nb=1
while [ $nb -gt 0 ]
do
cd $folder
folder=$(ls -d */ 2>/dev/null)
nb=$(ls -d */ 2>/dev/null | wc -l)
done
cat flag.txt
Execution :
$ bash solve.sh
Hero{if_yOu_gOt_HEre_By_clIcKInG_mANnUaLly_YoU_sHOuLd_REalLy_SeE_SoMeOne}
The following command tells you that a file named flag.txt
exists.
$ find . | grep flag
./you/are/about/.../flag.txt
Let's see its content !
$ cat $(find . | grep flag.txt)
Hero{if_yOu_gOt_HEre_By_clIcKInG_mANnUaLly_YoU_sHOuLd_REalLy_SeE_SoMeOne}
Hero{if_yOu_gOt_HEre_By_clIcKInG_mANnUaLly_YoU_sHOuLd_REalLy_SeE_SoMeOne}