Featured Content Slider

Home » » hellboundhackers.org JavaScript Hacking 7 Writeup

hellboundhackers.org JavaScript Hacking 7 Writeup

Vo Uu | 04:54 | 0 nhận xét
URL: https://www.hellboundhackers.org/challenges/js/js7/index.php

SRC: view-source:https://www.hellboundhackers.org/challenges/js/js7/index.php

<script language="JavaScript">

function password () {

var s1, a2, v3, e4, input;

s1=window.document.bgColor;

a2=window.document.linkColor;
v3=s1.substring (6,9)+a2.substring (2,8);
e4=v3.toUpperCase ();


input=prompt("Password:","");

if (input!=v3 && input!=e4) {

alert("Wrong!");

window.location.href="../index.php";

}

else {

window.location.href=v3+".php";

}

}

</script>

</head>

<body bgcolor="#D0D0D0" text="#FF9900" onLoad="password()" link="#FF9900">


Ta chỉnh lại 1 chút là đc

<script language="JavaScript">
    var s1, a2, v3, e4, input;

    s1="#D0D0D0";

    a2="#FF9900";
v3=s1.substring (6,9)+a2.substring (2,8);
e4=v3.toUpperCase ();
window.document.write(v3+"<br>")
window.document.write(e4)

</script>

Ta sẽ có kết quả: 0F9900


Share this article :

0 nhận xét:

Đăng nhận xét

Recent Post

Test Footer 1

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. The UG - All Rights Reserved
Template Modify by Creating Website
Proudly powered by Blogger