@@ -29,7 +29,7 @@ def run
29
29
usr_tbl = Rex ::Ui ::Text ::Table . new (
30
30
'Header' => 'Current User' ,
31
31
'Indent' => 1 ,
32
- 'Columns' => [ 'Is Admin' , 'Is System' , 'UAC Enabled' , 'Foreground ID' , 'UID' ]
32
+ 'Columns' => [ 'Is Admin' , 'Is System' , 'Is In Local Admin Group' , ' UAC Enabled', 'Foreground ID' , 'UID' ]
33
33
)
34
34
35
35
privs_tbl = Rex ::Ui ::Text ::Table . new (
@@ -39,10 +39,11 @@ def run
39
39
)
40
40
41
41
# Gather data
42
- uac = is_uac_enabled? ? 'True' : 'False'
43
- admin = is_admin? ? 'True' : 'False'
44
- sys = is_system? ? 'True' : 'False'
45
- uid = client . sys . config . getuid . inspect
42
+ uac = is_uac_enabled? ? 'True' : 'False'
43
+ admin = is_admin? ? 'True' : 'False'
44
+ admin_group = is_in_admin_group? ? 'True' : 'False'
45
+ sys = is_system? ? 'True' : 'False'
46
+ uid = client . sys . config . getuid . inspect
46
47
begin
47
48
# Older OS might not have this (min support is XP)
48
49
fid = client . railgun . kernel32 . WTSGetActiveConsoleSessionId [ "return" ]
@@ -52,7 +53,7 @@ def run
52
53
privs = client . sys . config . getprivs
53
54
54
55
# Store in tables
55
- usr_tbl << [ admin , sys , uac , fid , uid ]
56
+ usr_tbl << [ admin , sys , admin_group , uac , fid , uid ]
56
57
privs . each do |priv |
57
58
privs_tbl << [ priv ]
58
59
end
0 commit comments