HackTheBox Get Invite Code in 5 mins Walkthrough

HackTheBox Get Invite Code Walkthrough

What is Hack the Box ?

Hack The Box is an online platform that allows you to test and advance your skills in Penetration Testing and Cybersecurity. The platform contains assorted challenges that are continuously updated. Some of the challenges simulate real world situations/scenarios, while others are more like CTFs. Needless to say, Hack the box is beyond resourceful if you want to level up your cybersecurity skills; especially as a beginner.

How do you join Hack the box ?

To join Hack the Box, you have to hack yourself in. Sounds intimidating right ? Don’t worry, this exhaustive article will take you through how to achieve the aforementioned. However, I highly recommend that you first try to hack yourself in(on your own), and only use this article as a guide in case you need help.

Let’s get started.

Step 1.  Go to https://www.hackthebox.eu/  scroll down and click on “Join”


Step 2. You will be redirected to https://www.hackthebox.eu/invite ; here you need to make a way to get invite code to join hackthebox

HackTheBox Get Invite Code in 5 mins Walkthrough

Step 3. You need to do some reconnaissance now. First step to start a web pentest is always check the source code of all the connected files.Right click on your web browser and click on “Inspect” to view the details of the web page.

Step 4.    When I was going through the registration process few days ago it took me few minutes to know what to do. I was just going through all the source code and found something interesting i.e., JavaScript Files. 

HackTheBox Get Invite Code in 5 mins Walkthrough

Step 5. There are two JavaScript Files being used to run this page. Just go through those 2 javascript files.

HackTheBox Get Invite Code in 5 mins Walkthrough

Step 6.   After going through the JS Files, There are some functions available in inviteapi.min.js file. Out of all the functions, two of them seem interesting. But we just need only one. So, let’s run ‘makeInviteCode’ function. So, let’s try calling those functions.

HackTheBox Get Invite Code in 5 mins Walkthrough

Step 7.  Let’s move to console tab and run “makeInviteCode()” function. We got a 200 success code, which means it’s aliveJ.

HackTheBox Get Invite Code in 5 mins Walkthrough

Step 8. Let’s open the object our makeInviteCode() function returned. we can see the data in the object file. It also says it’s encrypted in “BASE64”.

HackTheBox Get Invite Code in 5 mins Walkthrough

Step 9.  So, let’s quickly move to some online Base64 Decoders and decode the data. It says “In order to generate the invite code, make a POST request to /api/invite/generate

HackTheBox Get Invite Code in 5 mins Walkthrough

Step 10. So, we need to make a post request to https://www.hackthebox.eu/api/invite/generate there are hell lot of ways to send a post request. Let’s go with the easier process using “POSTMAN” chrome browser widget or a windows application.

HackTheBox Get Invite Code in 5 mins Walkthrough

Step 11. Download and open the POSTMAN chrome extension or a widows native application. Then select “POST” and enter the address to where we need to generate a POST Request and click on “SEND”

HackTheBox Get Invite Code in 5 mins Walkthrough

Step 12.  You can see the output of the post request below. As you can see its encoded again. When you see a single “=” or ‘==” its most likely “BASE64” Encoded.

HackTheBox Get Invite Code in 5 mins Walkthrough

Step 13. Copy the code from the postman output and again move to Online Base64 Decoder and decrypt it. That’s it. Now copy the decoded code and paste it into https://www.hackthebox.eu/invite and click “Sign Up”

HackTheBox Get Invite Code in 5 mins Walkthrough

Step 14. Congratulations!. This is what we are after. Register and enjoy.  I hope this post has helped you to get successful Login.

HackTheBox Get Invite Code in 5 mins Walkthrough

RELATED :