File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3079,11 +3079,11 @@ https://www.mandiant.com/blog/malware-persistence-windows-registry/
30793079 $ModulePath = "$BasePath\$($Module.ModuleName)"
30803080
30813081 # if the module path doesn't exist in the process base path folder
3082- if ((-not $ModulePath.Contains('C:\Windows\ System32' )) -and (-not (Test-Path -Path $ModulePath)) -and ($KnownDLLs -NotContains $Module.ModuleName)) {
3082+ if ((-not $ModulePath.Contains("$Env:SystemRoot\ System32" )) -and (-not (Test-Path -Path $ModulePath)) -and ($KnownDLLs -NotContains $Module.ModuleName)) {
30833083
30843084 $Exclude = $False
30853085
3086- if ($PSBoundParameters['ExcludeWindows'] -and $ModulePath.Contains('C:\Windows' )) {
3086+ if ($PSBoundParameters['ExcludeWindows'] -and $ModulePath.Contains($Env:SystemRoot )) {
30873087 $Exclude = $True
30883088 }
30893089
@@ -3851,7 +3851,7 @@ Author: Antti Rantasaari - 2014, NetSPI
38513851 $Null = $DataTable.Columns.Add('encr')
38523852
38533853 # Get list of virtual directories in IIS
3854- C:\Windows\ System32\InetSRV\appcmd.exe list vdir /text:physicalpath |
3854+ & "$Env:SystemRoot\ System32\InetSRV\appcmd.exe list vdir /text:physicalpath" |
38553855 ForEach-Object {
38563856
38573857 $CurrentVdir = $_
You can’t perform that action at this time.
0 commit comments