mirror of
https://github.com/PowerShellMafia/PowerSploit
synced 2026-06-08 12:13:33 +00:00
Fixed architecture detection bug in Get-PEB
I was checking processor architecture when I should have been checking OS architecture.
This commit is contained in:
@@ -174,7 +174,7 @@ http://msdn.microsoft.com/en-us/library/windows/desktop/aa813706(v=vs.85).aspx
|
||||
return
|
||||
}
|
||||
|
||||
$OSArchitecture = (Get-WmiObject Win32_Processor).DataWidth
|
||||
$OSArchitecture = [Int](Get-WmiObject Win32_OperatingSystem).OSArchitecture.Split('-')[0]
|
||||
|
||||
try { $NativeUtils = [NativeUtils] } catch [Management.Automation.RuntimeException] # Only build the assembly if it hasn't already been defined
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user