I started this thread for anyone else interested in pwning this network. if you’re able to get passed the log in page you will have access to the rest of the network.
I’m still trying to get passed the log in page myself. I just found out about this site. Feel free to join in on the discussion and post your feedback or tutorials here.
So, there are two functions, one to check, and to generate!
we’ll focus on the generate one…
So it creates a request of type POST to: https://www.hackthebox.gr/api/invite/generate…
With this in Postfields: dataType=json
Awesome, let’s try to send a request like that and see the result…
We got code!
let’s decode that base64
HQDRA-HDMXN-WRZEC-RCEYA-XURMM
And here we go, we got our registration code …
Hope it helped, if you got stuck in the registration of course!
I am not able to generate the code . I found the function and executed in the console. But it always gives me the error - ‘In order to generate the invite code, make a POST request to /api/invite/generate’
can any one help.
In the function its taking the url as ‘url: ‘/api/invite/how/to/generate’’ . But i am getting the error message as the above.
Or, just a programming language… ( Javascript used as an example… )
function send_post(){
var url = "https://www.hackthebox.gr/api/invite/generate";
var postdata = {'dataType':'json'};
var request = new XMLHttpRequest();
request.open("POST", url, 1);
request.send(postdata);
request.onreadystatechange = function(){
if( request.readyState == 4 ){
var response = JSON.parse(request.responseText);
var encrypted = response.data.code;
var format = response.data.format;
if( format == "encoded" ){
var decrypted = atob(encrypted);
}else{
var decrypted = encrypted;
}
alert(decrypted);
}
}
}
send_post();
Run it in console, and you will get your registration code !
I’m glad to see so many people having fun with this. I know i am. I created this thread before i read the rules regarding discussing the lab. Too late now.