HackTheBox Invite Code Tutorial

HackTheBox Invite Code Tutorial

HackTheBox is an online platform to test and advance your skills in penetration testing and cyber security. Join today and start training in their online labs.

Resources & Tools:

https://www.hackthebox.eu/invite

https://rot13.com/

https://www.base64decode.org

Step 1.

Go to https://www.hackthebox.eu/invite in Chrome and press Ctrl + Shift + I to open DevTools.

In the Elements tab, review the code and find,

<script defer="" src="/js/inviteapi.min.js"></script>

Copy the .js link address, and go to it.

No alt text provided for this image


Step 2.

Review the https://www.hackthebox.eu/js/inviteapi.min.js website.

Notice,” makeInviteCode”. Copy that text and go back to the invite website.

No alt text provided for this image


Step 3.

In DevTools, click the Console tab which is located beside the Elements tab.

Type: makeInviteCode() and press enter.

Click the arrow next to: {0: 200, success: 1, data: {…}}

Also, note the string of characters after “data:” 

Click the arrow next to: {data: ………..

(This part may be different for you, but the process will be similar)

Also, notice enctype: “ROT13”.

ROT13 indicates how to decipher the string of characters after “data:”

Copy the string of characters after “data:”

For me, it’s: Va beqre gb trarengr gur vaivgr pbqr, znxr n CBFG erdhrfg gb

                     /ncv/vaivgr/trarengr

No alt text provided for this image


Step 4.

Go to: https://rot13.com/

Paste the string of characters and it’ll decode the message:

“In order to generate the invite code, make a POST request to /api/invite/generate”.

No alt text provided for this image


Step 5.

Make a POST request by opening terminal (Command Prompt).

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

Review results.

Copy the string of characters after: {:code”: ………………….

For me it’s: V1hISkwtV0xIWEItUU5YVFgtTlFEVkwtU1BKUFc=

No alt text provided for this image


Step 6.

In this step, we’ll use a different decoder.

Go to: https://www.base64decode.org and paste the string of characters from the terminal.

Click the <DECODE> button.

Retrieve what seems to look like a serial number.

For me it’s: WXHJL-WLHXB-QNXTX-NQDVL-SPJPW

No alt text provided for this image


Step 7.

Go back to the sign up page.

Paste the code and click the “Sign Up” button.

No alt text provided for this image


Step 8.

Send me Bitcoins.

No alt text provided for this image


要查看或添加评论,请登录

Joseph Sales的更多文章

  • IT Fundamentals

    IT Fundamentals

    Infrastructure is comprised of all the technologies that support an organization’s IT activities. It can include…

  • Managing Reference Data

    Managing Reference Data

    Reference Data Reference data is used to relate other information in a database. It standardizes how data elements are…

  • Compliance, Privacy and Regulatory Impact

    Compliance, Privacy and Regulatory Impact

    Adhering to rules and standards are important to consider when managing and developing IT projects and applications…

  • What Is A Strategic Plan?

    What Is A Strategic Plan?

    “Let your plans be dark and impenetrable as night, and when you move, fall like a thunderbolt.” ― Sun Tzu…

  • CCPA Effective 1/1/2020

    CCPA Effective 1/1/2020

    Resource: https://leginfo.legislature.

  • HTB: "Legacy" Tutorial

    HTB: "Legacy" Tutorial

    Tools and Resources: nmap metaploit Step 1. Scan for open ports.

  • HTB: "Lame" Tutorial

    HTB: "Lame" Tutorial

    By using a username with shell meta characters, attackers can execute commands. No authentication is necessary because…

  • Helpful Models for Addressing Security Concerns

    Helpful Models for Addressing Security Concerns

    The Confidentiality, Integrity, Availability (CIA) Triad Confidentiality is the ability to protect information from…

  • Employee Motivation

    Employee Motivation

    In the Harvard Management Update, researchers presented that motivation comes from having an enthusiasm for a job, and…

    2 条评论
  • Effective Teams

    Effective Teams

    For any team to be effective, there are certain criteria that must be met: They must have a common purpose. They must…

社区洞察

其他会员也浏览了