Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

JavaScript 6


ghost's Avatar
0 0

I just don't get this.

function checkPass(){
Location  = document.form.password.value
Location = "js6-" + "window.open" + ".php"
if (document.form.password.value == Location ) {
    alert("Good Job!")
    window.open(Location)
    }

else{
    alert("Try Again!")
    }

}
</script>

<form name="form">
<p align="center">Password: <input type="text"  name="password" value="">
<input type="button" value="Submit" onclick="return checkPass()">
</p>
</form>```
Someone please help :(
I don't really understand how to come up with a password :@

ghost's Avatar
0 0

But you have it! RIGHT THERE!

When we see '+', what do we do??


ghost's Avatar
0 0

SimplySolitary's right, it's RIGHT THERE.

Okay, let me show you something that may help.

$a = 1;
$b = 2;
$c = 3;

$answer = $a + $b + $c;
echo $answer;

I used $ infront of the variables because I'm used to coding in PHP.

Anyway, what would $answer be? 6, correct?

Hopefully that should help you out a bit. :)


ghost's Avatar
0 0

Learn some basic Javascript. How do you write variables? How do you write strings (Spoilers?)


ghost's Avatar
0 0

I didn't understand the challenge before this…but now, I just feel stupid. Thanks for all of your help.


ghost's Avatar
0 0

I didn't understand the challenge before this…but now, I just feel stupid. Thanks for all of your help.


ghost's Avatar
0 0
Location = "js6"

So what to you put in the url?


ghost's Avatar
0 0

it only says goodjob no points being giving or?


ghost's Avatar
0 0

When you read the source, did you notice something that maybe should of happened but didn't?

Try doing it manually :)


ghost's Avatar
0 0

I dont know PHP and even I understood what it means! P= a+b+c location = P

I mean wtf! This challenge basicly spoils itself! :D


ghost's Avatar
0 0

It is very easy "" (attention) ""+""+""="" I don't want to get warn level, but PM me if you want.


ghost's Avatar
0 0

OK. Massive hint: "a"+"b"+"c"+"d"="abcd"

Think about it


ghost's Avatar
0 0

you make this out to be plan and simple and im doing it plan and simple but it wont take the answer =(


ghost's Avatar
0 0

Ok so in the source we see…

Location = "js6-" + "window.open" + ".php"

Whats location usually mean when it comes to hacking? Then what do you usually do when you see a +

And this is practically giving it away but…

a + b + c = abc