Idiot Test
faith is learning Javascript, the only thing that is protecting her from hackers is luck.REQUIREMENT
=============
Before we go into the javascript mission , you should know the basics of javascript..atleast you should be able to understand the code written in JavaScript!
YOU CAN LEARN BASICS OF JAVASCRIPT FROM: w3schools or SoloLearn
ON OUR MISSION
===========
This mission has a password field in it and a submit button "check password". But,as always we do not have the password.As usual we type in something and click the button to check its response. It says "Fail D:"
now, even i tried with empty password and it still says same message.
But, there is something different here than in basic levels,the message is shown in alert box, which means java-script is clearing in action behind this.Lets view its source code.Right click and select view page source.Now, here you have two option for finding the script in use, first is press "ctrl+f" and find box will appear and in it type <script>..but you will find more than one of these tags and should identify the right one.second method is the best one,as you know when we type wrong password, alert message is 'Fail D:' so in our find box we type the same and search.
Now you are in the right script!
function check(x) | |
{ | |
if (x == "cookies") | |
{ | |
alert("win!"); | |
window.location += "?lvl_password="+x; | |
} else { | |
alert("Fail D:"); | |
} | |
} |
OUR PASSWORD IS
Password
Comments
Post a Comment