Planet DesKel

DesKel's official page for CTF write-up, Electronic tutorial, review and etc.

12 September 2020

Webhacking.kr write-up: old-36

1 minutes to read
Link point tag
old-36 200 Linux

Greeting there, welcome to another series of webhacking.kr CTF based challenge. Today, we are going through a corrupted text editor challenge.

question

The author of the challenge forgotten to save the file when there is a power outage. Luckily, the author using vi, another type of text editors like notepad or nano. With vi, the unsaved file usually backup as .swp file format even you have forgotten saving the file. To prove such a concept, I have tried to create an index.php using vi and accidentally closed it without saving it. Here are the result

swp

As you can see, there is a hidden .swp is created by the vi. The answer is straight forward, the flag located at

https://webhacking.kr/challenge/bonus-8/.index.php.swp

download

After downloading the file, try to open it up with the vi. Hold Down key + F to locate the bottom of the page. The flag resides right there.

solve

Alternatively, you can use strings command to capture the flag.

tags: webhacking.kr - linux

Thanks for reading. Follow my twitter for latest update

If you like this post, consider a small donation. Much appreciated. :)


Vortex


© 2020 DesKel