mirror of
https://github.com/PowerShellMafia/PowerSploit
synced 2026-06-08 12:13:33 +00:00
Merge pull request #122 from joncave/patch-1
Find-PathHijack: Expand environment variables in path
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user