Javascript Level 6

Potentially ‘Evil’ Scripting

Code:
<script language='JavaScript' type='text/javascript'>
    <!--
        var p4ss= 'notsoevil';
        p4ssword=prompt('Please enter the Password!','');
        if (p4ssword==p4ss) {
            window.location.href=p4ssword+'.php';
        }
        var pass= '666'; // This script is evil. >:D
        password=prompt('Please enter the Password!','');
        if (password==pass) {
            window.location.href=password+'.php';
        }
    //-->
</script>

But you need to view source code of page careful to see full version of code.
When you can see full javascript code, easy to pass this challenge by enter 'notsoevil' and '666' to authenticate.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s