Newbie Friendly Javascript Walkthroughs(mostly spoiler free)

Learn the basics of how to exploit JavaScript.

Newbie Friendly Javascript Walkthroughs(mostly spoiler free)

Post by tph23 on Sun Apr 27, 2008 7:08 pm
([msg=1549]see Newbie Friendly Javascript Walkthroughs(mostly spoiler free)[/msg])

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)
{
if (x == "cookies")
{
alert("win!");
window.location += "?lvl_password="+x;
} else {
alert("Fail D:");

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 = 62
2. 5 * 6 / 2 + 5 = 20
3. 17 % 3 + 22 * 5 = 112
4. (6 + 4) * 5 = 50
5. 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");
window.location = "../../../missions/javascript/5/?lvl_password="+x;
}
else {
alert("Nope... try again!");
}
}


</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+"")
{
alert("Rawr! win!");
window.location = "about:blank";
} else {
alert("Rawr, nope, try again!");
}
}

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.
Image
tph23
New User
New User
 
Posts: 41
Joined: Sat Apr 26, 2008 10:07 pm
Blog: View Blog (0)


Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)

Post by SWIV3Lone on Sun May 25, 2008 8:37 pm
([msg=3231]see Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)[/msg])

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
New User
 
Posts: 9
Joined: Sat May 24, 2008 11:52 pm
Blog: View Blog (0)


Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)

Post by moosemanxl on Mon May 26, 2008 12:05 pm
([msg=3262]see Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)[/msg])

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
New User
 
Posts: 4
Joined: Fri May 23, 2008 12:01 pm
Blog: View Blog (0)


Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)

Post by SWIV3Lone on Mon May 26, 2008 11:17 pm
([msg=3295]see Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)[/msg])

geek :ugeek: :ugeek:

learn to break the law sometimes :roll:
SWIV3Lone
New User
New User
 
Posts: 9
Joined: Sat May 24, 2008 11:52 pm
Blog: View Blog (0)


Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)

Post by shanebane363 on Sun Jun 08, 2008 11:22 am
([msg=4279]see Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)[/msg])

SWIV3Lone wrote:geek :ugeek: :ugeek:

learn to break the law sometimes :roll:

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. :lol: 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. :mrgreen: 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, " :o who'da Thunk it?"

:lol: :lol: :lol:

--Shane
shanebane363
New User
New User
 
Posts: 8
Joined: Sun Jun 08, 2008 10:27 am
Blog: View Blog (0)


Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)

Post by shred_da_gnar on Wed Jul 09, 2008 4:07 pm
([msg=7006]see Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)[/msg])

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
New User
 
Posts: 3
Joined: Wed Jul 09, 2008 4:03 pm
Blog: View Blog (0)


Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)

Post by tph23 on Mon Jul 14, 2008 12:03 am
([msg=7381]see Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)[/msg])

Thanks for the feedback. I added some information about 3. :)
Image
tph23
New User
New User
 
Posts: 41
Joined: Sat Apr 26, 2008 10:07 pm
Blog: View Blog (0)


Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)

Post by Tenth_Prime on Wed Aug 20, 2008 3:01 am
([msg=10108]see Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)[/msg])

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
Experienced User
 
Posts: 50
Joined: Sat Aug 09, 2008 5:20 pm
Blog: View Blog (0)


Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)

Post by tph23 on Tue Aug 26, 2008 3:25 pm
([msg=10507]see Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)[/msg])

Eh, my fault.
Image
tph23
New User
New User
 
Posts: 41
Joined: Sat Apr 26, 2008 10:07 pm
Blog: View Blog (0)


Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)

Post by mutants_r_us_guild on Tue Aug 26, 2008 5:28 pm
([msg=10510]see Re: Newbie Friendly Javascript Walkthroughs(mostly spoiler free)[/msg])

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

if (pass==answer)
{
foo
}
else
{
bar
}

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


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

javascript:alert(answer)

voila!!! solved!

Solving things is what computers are for. ;)
Image
Image
Image
User avatar
mutants_r_us_guild
Poster
Poster
 
Posts: 246
Joined: Fri May 30, 2008 7:56 pm
Blog: View Blog (0)


Next

Return to Javascript

Who is online

Users browsing this forum: No registered users and 0 guests