RingZer0-252 - I love cat
I love cat
Looking for information
Once we ssh in we try to see where we are and what we can see.
pwd
> /home/cat
ls
>bin flag.txt
less flag.txt
> -rbash: less: command not found
I got an error saying that the command was not found.
vi
, vim
we’re not available but i found that eval
was usable.
From a previous exercise, i learn that eval
allows us to output the content
of file without really opening it.
eval $(< flag.txt)
-rbash: $'FLAG-0K14eDrm4t5g7KD54X8Dl3NNcZ956oCK\r****************************': command not found
Eval tries to run the command from the output of $(< flag.txt)
And when he tries to run the command and the command does not exist it will give an error with the content of the file.