Merge pull request #122 from joncave/patch-1

Find-PathHijack: Expand environment variables in path
This commit is contained in:
HarmJ0y
2016-04-08 12:59:01 -07:00
+1
View File
@@ -1292,6 +1292,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())