TRY2HACK wargame level 3
Introduction
In the previous post of TRY2HACK wargame level 2 introduces the flash decomposer.
Level 3
As soon as you pass level 2, an prompt asking the password for the level 3 is shown.
I tried to enter a random string and get the following message...
And here I am...
Notice that once entering the webpage the prompt would be shown. Just open the developer tools and see what is going on in this page.
Scroll down to the part that prompt out the message box.
Look at the piece of code. The prompt would ask the user's input and compara with a variable named PASSWORD. Despite of the variable hoisting in javascript. The under assignments is counterfeit. See closer to the code. There is another script that has a source named Javascript.
Look for the sources and the file named Javascript is right there!
Click on the file and the password is shown!
Here we go!
Conclusion
The techniques needed in this level are
- Window prompt
- Javascript source inclusion
History
First published: new post - 2016/04/11