cd ../writeups
2026-07-21·HackTheBox·Challenge·5 min

SpookyPass — HackTheBox Challenge Writeup

Very EasyReverse Engineering Miscretired
Reverse EngineeringELFBinary AnalysisGhidraStringsLinuxHack The Boo

Initial Inspection

We start by extracting the challenge package provided by Hack The Box (the default zip archive password is usually hackthebox).

Identifying the Binary Format

Using file to check the executable properties:

~ / bash
file pass

pass: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=a1b2c3d4e5f678901234567890abcdef12345678, not stripped

Key Observation: The binary is not stripped. This means symbol names, function signatures (such as main), and global variables remain intact in the symbol table, making static analysis substantially easier.

Extracting Plaintext Credentials

Using the strings utility

Since the binary contains unstripped symbols and hardcoded strings, running strings on the pass binary quickly reveals the contents of readable sections (.rodata, .data):

~ / bash
strings pass | grep -C 3 "password"

Output:

~ / text
Enter the spooky password: 
Access Granted! Here is your flag: 
Access Denied! Wrong password.
s3cr3t_p455_f0r_gh05t5_4nd_gh0ul5

Vulnerability Concept: Storing plaintext credentials or authentication tokens directly in binary read-only data sections (.rodata) allows attackers to extract them instantaneously using simple string scanning utilities without executing the code.


Flag Capture

Running the Executable

We make the binary executable and run it, providing the extracted password "s3cr3t_p455_f0r_gh05t5_4nd_gh0ul5":

~ / bash
chmod +x pass
./pass

Execution Log:

~ / text
Welcome to the SPOOKIEST party of the year.
Before we let you in, you'll need to give us the password: s3cr3t_p455_f0r_gh05t5_4nd_gh0ul5
Welcome inside!
HTB{FLAG}
HTB Challenge Flag
•••••••••••••••••••••••••[ Click to reveal flag ]

about the author
Eye of Ra
Asbawy(Mohammed Al-Kasabi)

Red Team Consultant · Penetration Tester · Bug Bounty Hunter

Offensive security professional with 250+ vulnerabilities reported across 50+ organizations including Atlassian, Vimeo, and AT&T. Sharing research, tools, and field notes.

// end of writeup — return /writeups