Logo
Day 10
Overview

Day 10

n nalo_
October 10, 2024
1 min read

warmup/finders-fee

Finders Fee
Authors
L LookAtThis
,
n nalo_
Category
warmup

This challenge gives us a remote host to connect to, and to retrieve the flag inside flag.txt of the finder user’s home directory. Thus, the file we want to read is located at /home/finder/flag.txt.

Once connected to host using a basic ssh, we can try the easy method of cat to read the content of the file:

Terminal window
$ cat /home/finder/flag.txt
cat: /home/finder/flag.txt: Permission denied

Well, it would have been too easy.
Maybe we can use grep to “search” (inside one file) for a “flag” string?

Terminal window
$ grep -H "flag" /home/finder/flag.txt
grep: /home/finder: Permission denied

Too bad. The last chance is using find to look for the file, and run a command using its -exec option:

Terminal window
$ find /home/finder/flag.txt -exec cat {} \;
flag{REDACTED}

That’s it!

rev/gocrackme2

GoCrackMe2
Category
rev

TODO