Logo
Day 11
Overview

Day 11

n nalo_
October 11, 2024
1 min read

warmup/typo

Typo
Author
n nalo_
Category
warmup

This challenge allows us to connect to a remote host in SSH. When connecting, the only thing we see is a train going through our terminal from right to left. When it’s gone, the connection closes by itself.

Train when connecting

This train is the famous sl command.
The goal of this command is to be run when you mistype the ls one. It stands for Steam Locomotive, so this train makes you loose time to learn not to do it again.

If we can’t do anything when connected except this, we need to find a way to run a command before the connection being established.

For this, the SSH command can take a last argument for a command to run and then leave:

Terminal window
$ ssh -p 32100 [email protected] "ls"
flag.txt

Alright, we just have to read the file then:

Terminal window
$ ssh -p 32100 [email protected] "cat flag.txt"
flag{REDACTED}

That’s it!

rev/gocrackme3

GoCrackMe3
Category
rev

TODO