Planet DesKel

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

2 September 2020

Webhacking.kr write-up: old-16

Link point tag
old-16 100 JavaScript

Welcome again to another webhackingkr CTF challenge. Another JS challenge for the day.

question

There are 3 stars on the front page but it doesn’t matter as it has zero relationships on solving the problem. Let’s look at the code.

code

Look at those if cases! Are you coding, son? Change to switch case next time. Alright, alright, the last line of the code is the key to solve the challenge.

String.fromCharCode(124)+".php";

Putting the line of code into the online JS compiler yield the following result.

js

That’s it.

solve

tags: webhacking.kr - javascript

Thanks for reading. Follow my twitter for latest update

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


Vortex


© 2020 DesKel