aboutsummaryrefslogtreecommitdiff
path: root/ReverseEngineering
diff options
context:
space:
mode:
authorMatt Graeber <mattgraeber@gmail.com>2013-05-12 15:28:44 -0400
committerMatt Graeber <mattgraeber@gmail.com>2013-05-12 15:28:44 -0400
commitf32a572fb971f288d2950af9a6c6d2031a52df2b (patch)
tree9e859029e49c2e5de6261402017dfad9d7b51be4 /ReverseEngineering
parenta1a842a21822725567f4d1f578a4a87290f1c45f (diff)
downloadPowerSploit-f32a572fb971f288d2950af9a6c6d2031a52df2b.tar.gz
PowerSploit-f32a572fb971f288d2950af9a6c6d2031a52df2b.zip
Object access mask now displays properly
Diffstat (limited to 'ReverseEngineering')
-rw-r--r--ReverseEngineering/Get-NtSystemInformation.ps15
1 files changed, 3 insertions, 2 deletions
diff --git a/ReverseEngineering/Get-NtSystemInformation.ps1 b/ReverseEngineering/Get-NtSystemInformation.ps1
index a8aaabe..6a7c0d3 100644
--- a/ReverseEngineering/Get-NtSystemInformation.ps1
+++ b/ReverseEngineering/Get-NtSystemInformation.ps1
@@ -2955,7 +2955,8 @@
if (($Flags -band $RequiredFlags) -ne $RequiredFlags)
{
- throw 'Global flags FLG_MAINTAIN_OBJECT_TYPELIST and FLG_ENABLE_HANDLE_TYPE_TAGGING have not been set. They must be set in gflags.exe (i.e. `gflags.exe -r +otl +eot`) or in the registry.'
+ Write-Error 'Global flags FLG_MAINTAIN_OBJECT_TYPELIST and FLG_ENABLE_HANDLE_TYPE_TAGGING have not been set. They must be set in gflags.exe (i.e. `gflags.exe -r +otl +eot`) or in the registry.'
+ return
}
Write-Warning 'It can take over a minute to return object information. Please be patient.'
@@ -3028,7 +3029,7 @@
TypeIndex = $Result.TypeIndex
InvalidAttributes = ($Result.InvalidAttributes -as $ObjectAttributes)
GenericMapping = $Result.GenericMapping
- ValidAccessMask = $Access
+ ValidAccessMask = $AccessValue
PoolType = $Result.PoolType
SecurityRequired = $Result.SecurityRequired
WaitableObject = $Result.WaitableObject