- User: race
- Password: car
Connect Through SSH
Walk Flag
We see an executable, a C file which the binary is probably compiled from, and the flag that we need to read. At first glance we see that the flag obviously cannot be read with our permissions.Home Directory of the user Walk
Contents of the C File
anti_flag_reader executable. As expected, we can.
Reading a dummy file using the executable
Creating a Symlink after the checks are done
Run Flag
Same as before, we see an executable, a C file which the binary is probably compiled from, and the flag that we need to read.Home Directory of the user Run
Contents of the C file
Bash Script for the above purpose
Getting the flag in the right time interval
Sprint Flag
Finally, our final user has the same files (an executable, a C file, and the flag) as before.Home directory of the user Sprint
- withdraw: Withdraws 10000 units from the balance
- deposit: Deposits 10000 units to the balance
- purchase flag: Checks if there’s enough balance in the account (15000) if so then gives us the flag.
Using the application on port 1337
Corresponding section of the C code
A script that I wrote, that deposits to the balance infinitely
The two scripts that we wrote
Flag of the last challenge