aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Graeber <mattgraeber@gmail.com>2013-05-31 18:56:57 -0400
committerMatt Graeber <mattgraeber@gmail.com>2013-05-31 18:56:57 -0400
commit6e5338c8a34ade0ec0a4704031109fb5187620f8 (patch)
tree66cf4219f9ad549b693261e32e1adfbc6c7247d2
parent9b4b3dcc739b684326243d95da1982651bc95d19 (diff)
downloadPowerSploit-6e5338c8a34ade0ec0a4704031109fb5187620f8.tar.gz
PowerSploit-6e5338c8a34ade0ec0a4704031109fb5187620f8.zip
Fixed architecture detection bug in Get-PEB
I was checking processor architecture when I should have been checking OS architecture.
-rw-r--r--ReverseEngineering/Get-PEB.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/ReverseEngineering/Get-PEB.ps1 b/ReverseEngineering/Get-PEB.ps1
index 7f3a2a2..1a196ac 100644
--- a/ReverseEngineering/Get-PEB.ps1
+++ b/ReverseEngineering/Get-PEB.ps1
@@ -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
{