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

0 nhận xét:
Đăng nhận xét