Home | About | Writeups |
Category: Misc
Solves (at time of writing): 226
Description: Will you hear his story? The answers are all in the past!
This time we get another server and port to netcat into.
Connecting to the port we get a bash shell.
After a quick ls
we can see the flag.txt
right at our fingertips!!
But for some reason cat flag.txt
just doesnt work, it tells us cat
doesnt exist.
Similar command like more
, less
and various text editors didnt work.
After a while, one command worked, printf
!
printf
is like a more low-level echo
.
With printf
we're able to get the flag!
In bash you can get the contents of a file with $(<filename)
So I did printf "%s" $(<flag.txt)
(%s = tell printf to print a string)
And we get the flag!
~sw1tchbl4d3, 31/07/2020 (dd/mm/yyyy)