aboutsummaryrefslogtreecommitdiff
path: root/Privesc/PowerUp.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'Privesc/PowerUp.ps1')
-rw-r--r--Privesc/PowerUp.ps11
1 files changed, 1 insertions, 0 deletions
diff --git a/Privesc/PowerUp.ps1 b/Privesc/PowerUp.ps1
index 0d71b14..9954c98 100644
--- a/Privesc/PowerUp.ps1
+++ b/Privesc/PowerUp.ps1
@@ -1283,6 +1283,7 @@ function Find-PathHijack {
if (-not $Path.EndsWith("\")){
$Path = $Path + "\"
}
+ $Path = [System.Environment]::ExpandEnvironmentVariables($Path)
# reference - http://stackoverflow.com/questions/9735449/how-to-verify-whether-the-share-has-write-access
$TestPath = Join-Path $Path ([IO.Path]::GetRandomFileName())