Writeups from challenges and CTFs i take part in.
Welcome to this series of write‑ups covering the tr2hack challenges from 2003.
We are asked to enter a password:

The first level is straightforward: after taking a look at the page’s source code, we can spot a cleartext password inside a <script> tag that reveals how the page validates the password:
<script type="text/javascript">
<!--
function Try(passwd) {
if (passwd =="h4x0r") {
alert("Alright! On to level 2...");
location.href = "level2-xfdgnh.xhtml";
}
else {
alert("The password is incorrect. Please don't try again.");
location.href = "http://www.disney.com/";
}
}
//-->
</script>
This means that the password is h4x0r