Hacktricks-skills kiosk-escape
Techniques for escaping restricted kiosk, locked-down, or single-application environments on Windows, iPad, and browsers. Use this skill whenever the user mentions kiosk mode, locked-down devices, restricted desktops, Citrix/RDS/VDI environments, single-app mode, or needs to break out of a GUI application to access the underlying OS. Also use when the user asks about physical device access, keyboard shortcuts for escape, or bypassing application restrictions.
git clone https://github.com/abelrguezr/hacktricks-skills
skills/hardware-physical-access/escaping-from-gui-applications/SKILL.MDKiosk Escape Techniques
This skill provides techniques for breaking out of restricted environments like kiosks, locked-down workstations, Citrix/RDS/VDI sessions, and single-application modes.
Physical Layer Checks
Start here if you have physical access to the device:
| Component | Action |
|---|---|
| Power button | Turn device off/on to potentially expose the start screen |
| Power cable | Briefly cut power to check if device reboots to a different state |
| USB ports | Connect a physical keyboard for additional shortcuts |
| Ethernet | Network scan or sniffing may enable further exploitation |
GUI Application Layer
Common Dialog Exploitation
Many applications offer dialogs that provide full Explorer functionality. Look for:
- Close/Close as
- Open/Open with
- Export/Import
- Search
- Scan
What to try in these dialogs:
- Modify or create new files
- Create symbolic links
- Access restricted areas
- Execute other applications
Command Execution via "Open With"
Use "Open with" to launch shells:
Windows binaries:
,cmd.execommand.com
,PowershellPowershell ISE
,mmc.exe
,at.exetaskschd.msc- See LOLBAS Project for more
*NIX shells:
,bash
,shzsh- See GTFOBins for more
Windows Techniques
Bypassing Path Restrictions
Environment variables - These point to accessible paths:
| Variable | Description |
|---|---|
| All users profile directory |
| Current user's application data |
, | Temporary files directory |
| Current user's profile |
, | Windows directory |
| Program files directory |
| Computer name |
| Command interpreter path |
Other protocols to try:
,about:
,data:
,ftp:
,file:
,mailto:
,news:
,res:
,telnet:view-source:
Symbolic links - Create links to restricted areas
UNC paths - Connect to shared folders:
(local C$ share)\\127.0.0.1\c$\Windows\System32
Shell URIs
Type these in address bars or file dialogs:
shell:Administrative Tools shell:DocumentsLibrary shell:Libraries shell:UserProfiles shell:Personal shell:SearchHomeFolder shell:System shell:NetworkPlacesFolder shell:SendTo shell:Common Administrative Tools shell:MyComputerFolder shell:InternetFolder shell:ControlPanelFolder shell:Windows shell:ProgramFiles shell:Profile
GUID-based shell URIs:
shell:::{21EC2020-3AEA-1069-A2DD-08002B30309D} → Control Panel shell:::{20D04FE0-3AEA-1069-A2D8-08002B30309D} → My Computer shell:::{208D2C60-3AEA-1069-A2D7-08002B30309D} → My Network Places shell:::{871C5380-42A0-1069-A2EA-08002B30309D} → Internet Explorer
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
| Open new session |
| Execute commands |
| Task Manager |
| Open Explorer |
| Run dialog |
| Show desktop |
| Windows Search |
| Ease of Access Centre |
| Context menu |
| Security screen |
| Hidden admin menu (RDP) |
| Hidden admin menu (RDP) |
| Toggle fullscreen (IE) |
| History |
| Open file dialog |
| Save dialog |
Accessibility Shortcuts
| Shortcut | Action |
|---|---|
×5 | Sticky Keys |
| Mouse Keys |
| High Contrast |
(hold 5s) | Toggle Keys |
(hold 12s) | Filter Keys |
Restricted Desktop Breakouts (Citrix/RDS/VDI)
Dialog-box pivoting:
- Use Open/Save/Print dialogs as Explorer-lite
- Try
or*.*
in filename fields*.exe - Right-click folders → "Open in new window"
- Use Properties → "Open file location"
Create execution paths:
- Create
or.CMD
files.BAT - Create shortcuts pointing to
%WINDIR%\System32\cmd.exe - Drag-and-drop files onto
to launch a promptcmd.exe
Task Scheduler bypass:
- If interactive shells are blocked but scheduling is allowed:
- Use
ortaskschd.msc
to create a task runningschtasks.execmd.exe
Weak allowlists:
- If execution allowed by filename/extension: rename payload to permitted name
- If allowed by directory: copy payload into allowed program folder
Find writable staging paths:
echo %TEMP% accesschk.exe -uwdqs Users c:\ accesschk.exe -uwdqs "Authenticated Users" c:\
Accessing Filesystem from Browser
Try these path formats in browser address bars:
file:/C:/windows file:/C:/windows/ file:/C:/windows\ file://C:/windows file://C:/windows/ C:/windows C:/windows/ C:\windows C:\windows\ %WINDIR% %TMP% %TEMP% %SYSTEMDRIVE% %SYSTEMROOT% %APPDATA% %HOMEDRIVE%
Downloadable Tools
- Console: https://sourceforge.net/projects/console/
- Explorer++: https://sourceforge.net/projects/explorerplus/files/Explorer%2B%2B/
- Registry editor: https://sourceforge.net/projects/uberregedit/
Browser Tricks
JavaScript File Dialog
Create a file input dialog using JavaScript:
document.write('<input type=file>')
Internet Explorer Image Toolbar
Click on images to reveal toolbar with:
- Save
- Mailto
- Open "My Pictures" in Explorer
Backup iKat Versions
iPad Techniques
Gestures
| Gesture | Action |
|---|---|
| Swipe up with 4-5 fingers | Multitask view |
| Double-tap Home button | Multitask view |
| Swipe 4-5 fingers left/right | Switch apps |
| Pinch with 5 fingers | Go to Home |
| Swipe up from bottom (quick) | Go to Home |
| Swipe up from bottom (slow, 1-2 inches) | Show dock |
| Swipe down from top | Notifications |
| Swipe down from top-right | Control Centre (iPad Pro) |
| Swipe from left edge | Today view |
| Swipe from right edge | Action Center |
| Swipe from top edge | Show title bar (fullscreen) |
| Swipe up from bottom (fullscreen) | Show taskbar |
Power/Screenshot
| Action | Method |
|---|---|
| Power off | Hold power button → slide to power off |
| Force restart | Hold power + Home buttons |
| Screenshot | Briefly press power + Home buttons |
iPad Keyboard Shortcuts
System shortcuts:
| Shortcut | Action |
|---|---|
| Dim screen |
| Brighten screen |
| Previous song |
| Play/pause |
| Next song |
| Mute |
| Decrease volume |
| Increase volume |
| Language selector |
Navigation:
| Shortcut | Action |
|---|---|
| Go to Home |
| Go to Home |
| Open Spotlight |
| List last 10 apps |
| Go to last app |
| Screenshot |
| Screenshot with editor |
| Show dock |
| Home button |
| Show multitask bar |
| Back button |
| Previous app |
| Original app |
Safari:
| Shortcut | Action |
|---|---|
| Open location bar |
| New tab |
| Close tab |
| Refresh |
| Stop loading |
| Next tab |
| Previous tab |
| Reopen last closed tab |
| Back in history |
| Forward in history |
| Reader Mode |
Mail:
| Shortcut | Action |
|---|---|
| Search mailbox |