@Hazique35 You only need common sense and knowledge of how URLs work. Also a little bit of directory content listing.
I’m blocked on this level from 4 days now… I f*cking do not get it… I see what the code do but I don’t see what I am supposed to do
.OGYP HSSK )! KRMOSN XSR( ! QEIXW RS IQEK IIVJ E XIK PPMA TQ RM IQ SX “RIQEV IZSP M” HRIW SLA XWVMJ ILX .IRSLTM RE HEL VIZIR M .CRETQSG CXXMLW E LGYW W'XM ,IPTTE IXEL M
If you make people think they’re thinking, they’ll love you. but if you really make them think, they’ll hate you.
~ Harlan Ellison
Yes I know…
Here’s what I understand :
var req, image, status, imagepath; // Variables' declaration
function loadimage(_imagepath) // Loading a function
{
var username= document.getElementById(‘username’).value; // Taking what the user entered in the user case and putting the value on the username variable
var password= document.getElementById(‘password’).value; // Same for password
URL= “members/” + username + “ ” + password + “.htm”; // I don’t really know… Definiting an URL like members/usernamepassword.htm ?
imagepath = URL; // Stocking the URL in a variable called imagepath
document.getElementById(“status”).innerHTML = ‘Checking details…’; // Modifying the text, not importantreq = getreq(); // IDK >:
req.onreadystatechange = imagexists; // IDK >:
req.open(“get”, imagepath, true); // IDK >:
req.send(null); // IDK >:
}function imagexists() {
if(req.readyState == 4) { // If the red.readystate = 4 then
if(req.status == 200) { // If the req.status = 200 then login ->
document.getElementById(“status”).innerHTML = ‘Correct!’;
document.location = “/levels/r2.php?in&user=” + document.getElementById(‘username’).value + “&pass=” + document.getElementById(‘password’).value; // Here I see that I need to enter an URL like http://www.hackthis.co.uk/levels/r2.php?in&user=username&pass=password and validate it to clear the level
} else {
document.getElementById(“status”).innerHTML = ‘Incorrect username/password’;
}
}
}
Here is what I understand in the code, after the //… Any other help or hint please ? :)
.OGYP HSSK )! KRMOSN XSR( ! QEIXW RS IQEK IIVJ E XIK PPMA TQ RM IQ SX “RIQEV IZSP M” HRIW SLA XWVMJ ILX .IRSLTM RE HEL VIZIR M .CRETQSG CXXMLW E LGYW W'XM ,IPTTE IXEL M
you dont need to do anything with the javascript. or know anything about the code.
you need to concentrate on this bit of the code. not what you posted.
var username= document.getElementById(‘username’).value;
var password= document.getElementById(‘password’).value;
URL= “members/” + username + “ ” + password + “.htm”;
you just need to understand the url . >> URL= “members/” + username + “ ” + password + “.htm”; look here that might help you a lot
when the time has come , I shall rise and conquer the world
OMG thank you so much I finally found the solution, with your help !
I was focusing on the javascript code like a stupid man…
Thanks ! It was soooo simple :‘)
<3
.OGYP HSSK )! KRMOSN XSR( ! QEIXW RS IQEK IIVJ E XIK PPMA TQ RM IQ SX “RIQEV IZSP M” HRIW SLA XWVMJ ILX .IRSLTM RE HEL VIZIR M .CRETQSG CXXMLW E LGYW W'XM ,IPTTE IXEL M
“People who doesn’t work hard doesn’t have the right to be envious of the people with talent. People fail because they don’t understand the hard work necessary to be successful.”
http://www.hackthis.co.uk/levels/r2.php?in&user=username&pass=password is very important that you understand what this is doing.
The question mark is in effect the get statement : /r2.php?in&user=username is saying, get the user which is equal to the levels user=username and also get he levels pass=password the variables you need to be looking for are ‘user’ & ‘pass’ So to cut a long story short you have to put the correct username into the user variable and the password into the variable pass.
So your answer should be: http://www.hackthis.co.uk/levels/r2.php?in&user=********&pass=********
found ^Username^ & ^Password^
The main part of code you need to understand is this:
var username= document.getElementById('username').value;
var password= document.getElementById(‘password’).value;
URL= “members/” + username + “ ” + password + “.htm”;
imagepath = URL;
document.getElementById(“status”).innerHTML = ‘Checking details…’;What could you find useful to yourself in this core???
IDLETESTER
took me just 15 mins to get past this level :D. u just have to relax and think…. its easy. focus on URL= “members/” + username + “ ” + password + “.htm”. the answer is right before ur eyes :D
so what we smoke weed and hack
You didn’t understand the line ;)
username and password are variables so they probably contain a username and a password? Since you can’t guess them you will have to try to find the passwords. You’ve got htm files there, where are those files?
Humm, to solve the level, try to look at the source code of the page, there is a script. Try to translate the scrip with your own words, you’ll understand it better !
A beginner practices until he gets it right, a professional practices until he can’t get it wrong!
You have to understand a bit of html and javascript. Start with the MAIN levels, since they will have a crucial help.
A beginner practices until he gets it right, a professional practices until he can’t get it wrong!
The user and pass doesn’t have in source code of login page, but in this source code have a information for you find the username and password.
?
The best would be if you read through the source properly.
It might lead you to a location they forgot to disallow..
Hope it’s not too much of a spoiler. ;P