Follow us on Twitter!
Your life is ending one minute at a time. If you were to die tomorrow, what would you do today?
Monday, April 21, 2014
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Members Online
Total Online: 26
Guests Online: 24
Members Online: 2

Registered Members: 82857
Newest Member: varshith_kh
Latest Articles

O_o Javascript 15 o_O

Arrow Image 2nd 'serious' article so far.. but it's kinda small...

Again, I got bored so i'm gonna write an article about JS 15, seeing as many people are stuck on it, but when you finish this article, you'll realise how easy it was.. it doesnt deserve 50 points... And i don't care how you rate it, cause myself i hate one challenge articles, if i write one about another JS later, i'll merge them, making a nice article :)

A. Understanding it
As always, we start by viewing the source, and the script is lying there, waiting for you to crack it..

*First off you have SlimTim10 showing off (jk).... and then the function that the button "check" uses to check your password starts.. So the password is definately within this function... Now if you're lazy like me, you directly look at the comparision the script does, to see what the password's string name is, and make the code output/alert it, you find this big condition line, and you try to get stuff from it, but it doesnt work.. I wont explain that method cause other articles talk about it.

*You read the code more carefully and you find out that "password" is the password you put into the textbox, and a,b,c,etc. are variables containing it's characters and indicating their position in the password. You still have no idea what the password should be, but if you read on, you see the big IF condition, it says that those letters (the ones within the a,b,c,etc variables), placed after each other within the alphabetical order, should form the riddle 'var' which says "query test mess".. you also notice that 'riddle' has as much characters as the number of a,b,c,etc.'s... Great!! even if you don't know it, you have just solved the challenge!

B. Solving it
let's take the case of 'var a', it says:

var a = password.charAT(9)

and if you check in the IF condition, of course considering the order given, 'var a' should be the same as the first letter of 'riddle' , so the 10th letter of the password is [spoiler removed], great!
do the same for the rest of the vars and you get a 2-word password, submit it and congratulations!

C. Coding tip
I wont say that in detail cause it would spoil the whole challenge, but, you might as well do a script, where password=riddle, and copy all the declared vars (from the original script) then make it alert them considering the '.charAT()' order, and it will just give you the password :) Both methods only take 4 minutes anyway.. happy cracking!

D. Notes
_I said 10th letter in part 'B' cause .charAT(0) exists.
_never mind the '+ "" +' parts cause "" is 'NULL' so this adds nothing to the sequence
_Republish wherever you want, just give credit to me :)

Ice0lated(a.k.a god)


macrostblackon June 25 2006 - 15:49:19
Cheers for that, I had the variables the wrong way round Frown and yeah you are right it is easy once you know how.
-The_Flash-on June 25 2006 - 15:50:02
Nice work! Top article
godon June 25 2006 - 17:28:26
thx for the feedback Smile i corrected some minor mistakes..
system_meltdownon June 25 2006 - 18:42:34
Awesome article man!!!
staxon June 25 2006 - 19:18:08
Ya, awesome Smile
cubeman372on June 25 2006 - 21:44:50
I still haven't looked at this challenge yet
SwiftNomadon June 25 2006 - 21:53:20
I am going to beat this one. I like it. Very GOOD! Well thought out.
crazy_sniperon June 27 2006 - 08:54:10
man i knew it was something like taht, just didnt think it was THAT way.
intersliceon July 03 2006 - 07:37:24
nice article dude. good job!Smile
H-oLm35on August 07 2006 - 16:47:55
nice xx:happy:
ZeckOwneron January 04 2007 - 11:57:00
Sorry, can't figure it out.
skathgh420on July 25 2008 - 04:24:16
Great article GrinGrinGrin
Post Comment


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