Follow us on Twitter!
Society leans ever heavily on computers, if you have the power to take out computers you can take out society. - cubeman372
Wednesday, April 23, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 22
Guests Online: 20
Members Online: 2

Registered Members: 82885
Newest Member: ConiBE
Latest Articles

Javascript 10, 11 and 12 walkthrough

Arrow Image This is a simple way to complete the javascript challanges 10, 11 and 12. :)



Javascript 10, 11, and 12.
By Sarah_briarmoss

I found these three challanges very simialer, and quite easy, so I decided I\'d write an article for those of you who are stuck on them.

I\'ll start with Javascript 10.

First things first, view the source. If we take out all the unimportant stuff, we\'re left with this:
<script>
//By system_meltdown
function checkpass()
{
pass=docu<i></i>ment.password.pass.value;
rawr=unescape(\'%61%68%6f%79\');
string=\"llama llama duck!\";
a=string.charCodeAt(1);
b=string.charCodeAt(7);
c=string.charCodeAt(4);
schloob=((60*50/3*a)-(b*c))/2/5+b;
asdf=rawr+\"_\"+schloob;
if(pass==asdf)
{
alert(\'Wahoo you got it!\');
}
else
{
alert(\'Awww shame!\');

}
}
</script>

So, if you can understand Javascript, you can tell that the password is the value of asdf. So there are two ways we can do this, I\'ll just stick with my way, which is copying this into a text docu<i></i>ment, and changing the script to have an alert pop up and tell us what we want to know, which is what asdf equals.

So, alter the script to have an alert that tells us what asdf equals, then save that as JS10.htm, and open it in your web browser. If you\'ve done it right, you\'ll get an alert pop up which says the answer, remember that or write it down or something, and then go to the JS 10 page, and enter it in.

You now get a screen saying Well done, points added or something.

Well done! You\'ve just finished Javascipt 10.

Javascript 11 is very simalar. Once again, view the source and find out the important bit, which is this...

<script>
//By system_meltdown
var s = \"Llama llama chicken duck, schloob mcfroob, moo asdf qwerty zxcv. Rawr llama kinasd, [insert random crap here]It\'s hammer on the keyboard time: sfsdfoashdfy78sdfysdfs67dftsdf 6tsdf76as tfa. Well I\'m bored, so if you\'re still reading this I advise you to stop because you are wasting your time....dumbarse :)\";
var asd = s.charCodeAt(14);
var fdsa = s.charCodeAt(42);
var sadfasf = s.charCodeAt(4);
var moo = s.charCodeAt(43);
var teeep = s.charCodeAt(32);
var asdf = asd+fdsa+sadfasf+moo+teeep;
function checkpass()
{
pass=docu<i></i>ment.password.pass.value;
if(pass==asdf)
{
alert(\'Well done dude!\');
}
else
{
alert(\'You suck!\');
}
}

</script>

So once again, the password is the variable asdf. Using the same method as for the last one, saving it to your computer and writing in a script that alerts you to the variable asdf. Save this, and open it in your webbrowser. If you\'ve done it right, you should get an alert saying what the password is. Write this down, or just remember it, then go to the JS11 page, and put it in. Easy! And you got the points!

Javascript 12 is similar to the other two, but this time you\'re not looking for the varaible asdf, you\'re looking for the variable abc. So, view the source, and find the important bit, which is this...

<script>

function checkpass()
{

pass=docu<i></i>ment.password.pass.value;
z=2;
x=z*1.5;
v=z*2;
w=v*1.75;
y=v*1.25;
abc=(((y*v*y*x+z)*x+w)*z+y)*v+w;

if(pass==abc)
{
alert(\'Congratz! You are good at Math\');
}
else
{
alert(\'Sorry, try again when you learn more Math!\');

}

}


</script>

And once again, alter the code so that you get an alert that tells you what abc equals. Write this down or remember it, and put that into the password box for Javascript 12. If you\'ve done it right, you get the points!

Well done, and if you need any help, feel free to PM me.

- Sarah

Comments

skaterkid5on August 11 2011 - 02:35:13
:ninja:
Post Comment

Sorry.

You must have completed the challenge Basic 1 and have 100 points or more, to be able to post.