CatalogLOLBAS

LOL · Script

Launch-VsDevShell.ps1

2 techniquesWindowsLOLBASGPL-3.0

Execute

ExecutionWindows

Execute binaries from the context of the signed script using the "VsWherePath" flag.

Use Proxy execution

powershell -ep RemoteSigned -f .\Launch-VsDevShell.ps1 -VsWherePath {PATH_ABSOLUTE:.exe}
Evidence
Upstream reference
Environment
Local host
Context
user
Native
Execute
MITRE
T1216

Execute

ExecutionWindows

Execute binaries and commands from the context of the signed script using the "VsInstallationPath" flag.

Use Proxy execution

powershell -ep RemoteSigned -f .\Launch-VsDevShell.ps1 -VsInstallationPath "/../../../../../; {PATH:.exe} ;"
Evidence
Upstream reference
Environment
Local host
Context
user
Native
Execute
MITRE
T1216