Newbie Friendly Javascript Walkthroughs(mostly spoiler free)

Learn the basics of how to exploit JavaScript.

Newbie Friendly Javascript Walkthroughs(mostly spoiler free)

I hope it's fine for me to post this.

Javascript One

Okay, I like to think of these fun little missions as simple math problems. You use substitution in algebra, right? So we will need to substitute in these.

So whenever we start a mission, it's a good idea to view the source, right? We see some things such as <script language="Javascript">
function check(x)
{
{
} else {

Check x, eh?

Javascript Two

When you enter this mission, it may say something like "You didn't disable javascript!" This kinda reminds me of Basic 2, just use some common sense.

Javascript Three

I'll try to explain this one, but I will tell you to find Javascript's Order of Operations, or P.E.M.D.A.S. if you will.

I made my own problems just to give you some examples.

Code: Select all
`1. 6 + 7 * 8 = 622. 5 * 6 / 2 + 5 = 203. 17 % 3 + 22 * 5 = 1124. (6 + 4) * 5 = 505. 6 * 7 / (3 + 4) = 6`

Expanation

1. Remember The Order of Operations? Well, we will use them in this example. Lets not worry about the signs just yet. Les just split the numbers up, then follow the operations. Okay. In the operations, it goes like:Parentheses, Exponents, Multiplication, Division, Addition, and Subtraction, right? Well, I don't see parentheses or exponents, but I do see multiplication. 7*8. That would be 56. Now all we have is + 6. If we add 6 to 56, that would give us 62. There's your first one.

2. 5 * 6 / 2 + 5. That seems a little longer. Well, lets get to it. Look for P.E.M.D.A.S....Once again, no parentheses or exponents. I see multiplication...5 * 6. That would be 30. Lets eliminate the 5 and 6 now. That leaves us with / 2 + 5. Division is the next step in P.E.M.D.A.S. Well, I see /2...30/2 would be 15, and that leaves us with + 5. So if we add 5 to 15, we would get 20.

3. This one takes the remainder from dividing 17 by 3. As 3 goes into 17 five times with 2 remaining, this means that 17%3 is equal to 2. Next 22 and 5 are multiplied together to give 110. Finally the results of these two intermediate calculations are added together to give the final answer of 112.

4. We have parentheses in this one, so we go ahead and solve the problem in it. 6 + 4 is 10, and that leaves us with * 5. And if we take 10 and multiply it by 5, we get 50.

5. Well, we see parentheses again. (3 + 4). That leaves you with 7. Now we have no exponents, so lets look for multiplication. 6 * 7. That equals 42. Now lets look for the next operation. Division. We had /(3 + 4), which after we solved the parentheses, discovered it to be / 7. So now we are left with 42 / 7which amounts to 6.

Javascript Four

This one confused me...But, I found with a little looking the answer is right there. Try searching through the entire source. Perhaps left and right as well?

Javascript Five

Okay, you look in the source and see <script language="Javascript">
moo = unescape('%69%6C%6F%76%65%6D%6F%6F');
function check (x) {
if (x == moo)
{
alert("Ahh.. so that's what she means");
}
else {
}
}

</script>

Well x=moo and moo=unescape('%69%6C%6F%76%65%6D%6F%6F'); and if you research it unescape has spmething to do with javascript.

javascript:(unescape); leads you too function unescape() { [native code] } Native Code, eh? I wonder if '%69%6C%6F%76%65%6D%6F%6F' has anything to do with a Native Code...

Javascript Six

<script type="text/javascript" src="http://hackthissite.org/missions/javascript/6/checkpass"></script>
<script language="javascript">
RawrRawr = "moo";
function check(x)
{
"+RawrRawr+" == "hack_this_site"
if (x == ""+RawrRawr+"")
{
} else {
}
}

function checkpassw(moo)
{
RawrRawr = moo;
checkpass(RawrRawr);
}
</script>

This one tries to lead you all the wrong ways...but look at that src...
Last edited by tph23 on Mon Jul 14, 2008 12:00 am, edited 1 time in total.
tph23
New User

Posts: 41
Joined: Sat Apr 26, 2008 10:07 pm
Blog: View Blog (0)

Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)

this makes no sence

do you have to be a geek to be a "hacker"?

also what i dont get is if you dont do anything illegal on here or say how to what do you guys do?

not hack
SWIV3Lone
New User

Posts: 9
Joined: Sat May 24, 2008 11:52 pm
Blog: View Blog (0)

Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)

theres something called ETHINCAL hacking. that is what we do here. its to make security better. if i can break in to a network that means other can. i could tell the network admin hey ur network sux fix it. and no were not geeks just knowledgeable. but if u think that were geeks ok. someday you will be working for us.
moosemanxl
New User

Posts: 4
Joined: Fri May 23, 2008 12:01 pm
Blog: View Blog (0)

Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)

geek

learn to break the law sometimes
SWIV3Lone
New User

Posts: 9
Joined: Sat May 24, 2008 11:52 pm
Blog: View Blog (0)

Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)

SWIV3Lone wrote:geek

learn to break the law sometimes

dude.. you are obviously not a true hacker otherwise you would know that in order to hack into a network or website, you need to know the security parameters of the network or website, what scripts/codes were mostly used in the site/network, how to find password hashes, how to cover your tracks, find admin logins, find and delete logs, etc, etc. these are all things that you can get from this site. i think you are just one of those retarded fucks who like going online to talk shit. ethical hacking actually does come in useful to learn/improve your skills as a hacker. who knows it may land you a job, we all know you need one. sure, this site has some hecka easy missions, but seriously dude..wouldnt it be nice if those script kiddies out there had a place to learn about what the fuck their doing instead of thinking their badass because of all the programs they have?? (half of which they dont use properly, hence fuck up websites and get caught) This is the perfect place for them to do that!

Oh and by the way, einstein, if they focused directly on illegal hacking, do you really think this site would be up very long?

i know your like, " who'da Thunk it?"

--Shane
shanebane363
New User

Posts: 8
Joined: Sun Jun 08, 2008 10:27 am
Blog: View Blog (0)

Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)

Haha i like what you said shane

to simplify it ill just say this.

what shane is trying to say is that if you think hacking is about breaking the law your wrong.
the true ethics of hacking is to help protect the online communitie along with other communities.

and this is to you shane.
wasnt it Bill Gates that said someday youll be working for us geeks or something like that?

p.s. good job on the article i liked it maybe just try to give a hint on javascript 3
shred_da_gnar
New User

Posts: 3
Joined: Wed Jul 09, 2008 4:03 pm
Blog: View Blog (0)

Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)

tph23
New User

Posts: 41
Joined: Sat Apr 26, 2008 10:07 pm
Blog: View Blog (0)

Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)

tph23 wrote:
I'll try to explain this one, but I will tell you to find Javascript's Order of Operations, or P.E.M.D.A.S. if you will.

ummm.... thats not JS' order of Ops. that is all math umm... i learned that in what, 3rd grade? pardon me, but, Duh...
Binary - It's Digitalicious! - http://www.nickciske.com

I thought the code ended in a zero...

I am the α
and I am the Ω
Tenth_Prime
Experienced User

Posts: 50
Joined: Sat Aug 09, 2008 5:20 pm
Blog: View Blog (0)

Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)

Eh, my fault.
tph23
New User

Posts: 41
Joined: Sat Apr 26, 2008 10:07 pm
Blog: View Blog (0)

Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)

For those that arent math-oriented.. you can use inline JS.
example:

{
foo
}
else
{
bar
}

var pass = 6*7/6+9/(6-8)

then rather than use PEMDAS to solve by hand... use this:

voila!!! solved!

Solving things is what computers are for.

mutants_r_us_guild
Poster

Posts: 246
Joined: Fri May 30, 2008 7:56 pm
Blog: View Blog (0)

Next