## javascript mission 3

Learn the basics of how to exploit JavaScript.

### Re: javascript mission 3

Rijnzael wrote:You guys really shouldn't need to do any calculating here at all.

huh?
beatson
New User

Posts: 13
Joined: Tue Apr 15, 2008 9:56 am
Blog: View Blog (0)

### Re: javascript mission 3

Yes, you do. It makes it a lot easier if you do calculate the value of 'moo'. Of course, you can try entering random strings and just wait until you have the right answer, but that's not the point of the challenges. (Except for some of the so-called Logic challenges perhaps, but nevermind that.) An other way is to let the computer do the math, of course, which shouldn't be that hard. Just make it alert something and you know the value of moo.
....................................................................................
New User

Posts: 34
Joined: Mon Apr 14, 2008 9:38 am
Blog: View Blog (0)

### Re: javascript mission 3

just enter all the calculations from the textarea in the adressbar

example:

[Removed] Do not post answers -- Goatboy
[hr]Missions completed (updated 21-03-09): (Points: 1894)
Basic: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
Realistic: 1,2, 3, 4, 5, 6, 8, 9, 12, 13
Application: 1, 2, 3, 5, 8
Javascript: 1, 2, 3, 4, 5, 6, 7
IRC: 1
Logic: 1
Extbasic: 1, 2
Stego: 3, 4, 6
Robbinski12
New User

Posts: 32
Joined: Sun Apr 20, 2008 7:34 am
Blog: View Blog (0)

### Re: javascript mission 3

grot3sq wrote:5 + 6 * 7 = 47 - foo
47 / 8 = 5,875 - bar
5,785 * 2 = 11,75 - moo

o.0

EDIT: OMFG, nvm... i just realized its % not / in the second line

EDITEDIT: still not working... gosh... i hate math XD

[hr]Missions completed (updated 21-03-09): (Points: 1894)
Basic: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
Realistic: 1,2, 3, 4, 5, 6, 8, 9, 12, 13
Application: 1, 2, 3, 5, 8
Javascript: 1, 2, 3, 4, 5, 6, 7
IRC: 1
Logic: 1
Extbasic: 1, 2
Stego: 3, 4, 6
Robbinski12
New User

Posts: 32
Joined: Sun Apr 20, 2008 7:34 am
Blog: View Blog (0)

### Re: javascript mission 3

ok, i get the answer 12.32 but it says thats wrong O.o but im sure its right.
beatson
New User

Posts: 13
Joined: Tue Apr 15, 2008 9:56 am
Blog: View Blog (0)

### Re: javascript mission 3

@ robbinski: thanks for the script (one new thing for me ^^) but i put in all the vars, and it gives me 14. which is obviously not the password, since it says - wrong password o.O I don't get it
grot3sq
New User

Posts: 15
Joined: Sat Apr 19, 2008 7:25 am
Blog: View Blog (0)

### Re: javascript mission 3

@beatson: No, that's definitly wrong. The variable is an integer, so it hasn't got any decimals.

grot3sq wrote:@ robbinski: thanks for the script (one new thing for me ^^) but i put in all the vars, and it gives me **. which is obviously not the password, since it says - wrong password o.O I don't get it

Pay some more attention to this line:
Code: Select all
`        if (x.length == moo)`
....................................................................................
New User

Posts: 34
Joined: Mon Apr 14, 2008 9:38 am
Blog: View Blog (0)

### Re: javascript mission 3

i get -blam- but is wrong.....

Treba10
New User

Posts: 2
Joined: Mon Apr 14, 2008 11:40 am
Blog: View Blog (0)

### Re: javascript mission 3

Yeh, but what does the x.length meen? iv googled it but couldnt find anything, what should i search for?
beatson
New User

Posts: 13
Joined: Tue Apr 15, 2008 9:56 am
Blog: View Blog (0)

### Re: javascript mission 3

ATTENTION possible spoiler don't read tiny text unless you solved this one XD

well if moo = -blam-, than the x.length should be -blam-, right?
grot3sq
New User

Posts: 15
Joined: Sat Apr 19, 2008 7:25 am
Blog: View Blog (0)

PreviousNext