How to get invite code for Hack The Box?

 Step1: Go to hackthebox.eu/invite

You can clearly see a text box asking us for an invite code.  Right click on the page and choose the Inspect Elementoption. Alternatively, you can press Ctrl + Shift + I to open Chrome’s Developer tools.


Go through the Elements tab and you will eventually find a script with its source as /js/inviteapi.min.js.


Now visit https://www.hackthebox.eu/js/inviteapi.min.js 


With this new information, we go back to https://www.hackthebox.eu/invite to try and find the contents of makeInviteCode

Go to the Console tab and type makeInviteCode() and then press Enter. You will get a 200 Success status and data as shown below:

The encoding type of the data can be ROT13. Hack The Box also uses BASE64; therefore don’t fret if our encoding types are different.

It’s time to decode the message we have. Copy the contents of data and search online for a ROT13 decoder. In my case, I personally used Google search’s first result: https://cryptii.com/

Paste the data on the text box, and choose ROT 13(A-Z, a-z) and finally click on DECODE . Note: only applicable for those decoding ROT 13 — If your Encoding Type was BASE64 search online for a decoder for the same 

You can use base64code.com 


Step2: open command prompt (terminal).


Step3: type 

curl -XPOST https://www.hackthebox.eu/api/invite/generate


Step4: You will get an Base64 Encrypted code you will have to decrypt that and you will get the invite code.

You have to decrypt this code


To decrypt the code go to base64code.com and decode it.

Congrats! You got the invite code.

Very simple right...