My Cat Trashed My File!
Taking a look at the catโs confession, these keystrokes appear to be Vim commands.
gg07lDjp0lDjp04lDjp04lDjp07lDjp05lDjp02lDjp03lDjp01lDjp02lDjpgg04x2jp:5<Enter>$4hDGkP:7<Enter>ddpggjddjlp
And the resulting output of the file is
CTF
pDawgAws
ibiL
{
it
r3_m3
V3l
0w
0
i3s_aus
}
Reversing these commands seemed trickier. So, I decided to take a sample flag, follow these commands to get the spaghetti output, and reverse it while mimicking the steps with the challengeโs output.
Taking the flag DawgCTF{this_is_a_test_flag_12345678} with the same length and following the vim commands, we get
CTF
tDawghis
_is_
{
a_
flag_
345
12
6
test_78
}
Since we know the input and output, we can easily reverse this and the original text.
Flag: DawgCTF{pAwsibiLiti3s_ar3_m30wV3l0us}
Related Writeups
Brick House
I was going through some old tapes from the '80s and came across a strange recording on one labeled "Basic Programs #1." ...
Don't Touch My Fone
Looks like someone's dialing a phone number, see if you can figure out what it is! The flag format is the decoded phone ...
Look Long and Prosper
In this challenge, youโll need to uncover a hidden secret, but first, you must find the key. The key is hidden in plain ...