You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 21, 2021. It is now read-only.
if (($PEInfo.DllCharacteristics-band$Win32Constants.IMAGE_DLLCHARACTERISTICS_NX_COMPAT) -ne$Win32Constants.IMAGE_DLLCHARACTERISTICS_NX_COMPAT)
2419
+
if (([Int] $PEInfo.DllCharacteristics-band$Win32Constants.IMAGE_DLLCHARACTERISTICS_NX_COMPAT) -ne$Win32Constants.IMAGE_DLLCHARACTERISTICS_NX_COMPAT)
2420
2420
{
2421
2421
Write-Warning"PE is not compatible with DEP, might cause issues"-WarningAction Continue
2422
2422
$NXCompatible=$false
@@ -2474,7 +2474,7 @@ function Invoke-CredentialInjection
2474
2474
Write-Verbose"Allocating memory for the PE and write its headers to memory"
2475
2475
2476
2476
[IntPtr]$LoadAddr= [IntPtr]::Zero
2477
-
if (($PEInfo.DllCharacteristics-band$Win32Constants.IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE) -ne$Win32Constants.IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE)
2477
+
if (([Int] $PEInfo.DllCharacteristics-band$Win32Constants.IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE) -ne$Win32Constants.IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE)
2478
2478
{
2479
2479
Write-Warning"PE file being reflectively loaded is not ASLR compatible. If the loading fails, try restarting PowerShell and trying again"-WarningAction Continue
0 commit comments