There is No hint Given to us!All we have is the name
JS Obfuscation. FTW!
What this means?Obfuscation- the action of making something obscure, unclear, or unintelligible.
So clearly,it has some thing to deal with the JavaScript code.Lets find out.
As usual, I typed in something in the input box and hit "check password"
Got an alert "WRONG! Try again!"
Now , as usual we have to go for this in the source code.
Right click and select view page source (for chrome).In that search for
"WRONG! Try again!"
Wow! no code found!what will we do?don't worry! go back to our page and right click on check password and select inspect.Got the code below:
<button onclick="javascript:if (document.getElementById("pass").value=="j00w1n"){alert("You WIN!");window.location += "?lvl_password="+document.getElementById("pass").value}else {alert("WRONG! Try again!")}">Check Password</button>
You can see,Our input is being checked here,JavaScript is written here.
" is same as "
so document.getElementById("pass").value
Gets the value we give as input and checks it with "j00w1n"
that is "j00w1n"
So, Now you have the password.We Have Completed all the JavaScript challenges!
Comments
Post a Comment