NetSPI / PESecurity

PowerShell module to check if a Windows binary (EXE/DLL) has been compiled with ASLR, DEP, SafeSEH, StrongNaming, and Authenticode.
https://blog.netspi.com/verifying-aslr-dep-and-safeseh-with-powershell/
MIT License
614 stars 152 forks source link

Fix a MethodNotFound error #3

Closed bonsaiviking closed 9 years ago

bonsaiviking commented 9 years ago

Split returns an array, which does not have a Trim method. Instead, run Trim within the for loop. Caused an error message and false negative (DEP and ASLR reported false when they were in fact true).

egru commented 9 years ago

For some reason I never noticed this pull request before. I did see this error and fixed it by putting the Trim in the switch statement.