@@ -21,7 +21,7 @@ def initialize(info={})
21
21
super ( update_info ( info ,
22
22
'Name' => 'Windows Gather Local Admin Search' ,
23
23
'Description' => %q{
24
- This module will identify systems in a given range that the
24
+ This module will identify systems in a given range that the
25
25
supplied domain user (should migrate into a user pid) has administrative
26
26
access to by using the Windows API OpenSCManagerA to establishing a handle
27
27
to the remote host. Additionally it can enumerate logged in users and group
@@ -80,16 +80,10 @@ def setup
80
80
81
81
# Check if RSOP data exists, if not disable group check
82
82
unless res =~ /does not have RSOP data./
83
- dc_applied = /Group Policy was applied from:\s *(.*)\s */ . match ( res )
84
- if dc_applied
85
- @domain_controller = dc_applied [ 1 ] . strip
86
- else
87
- @dc_error = true
88
- print_error ( "Could not read RSOP data, will not enumerate users and groups. Manually specify DC." )
89
- end
83
+ @domain_controller = /Group Policy was applied from:\s *(.*)\s */ . match ( res ) [ 1 ] . chomp
90
84
else
91
85
@dc_error = true
92
- print_error ( "User never logged into device, will not enumerate users and groups. Manually specify DC." )
86
+ print_error ( "User never logged into device, will not enumerate groups or manually specify DC." )
93
87
end
94
88
end
95
89
end
@@ -261,4 +255,4 @@ def db_loot(host, user, type)
261
255
p = store_loot(type, 'text/plain', host, "#{ host } :#{ user } ", 'hosts_localadmin.txt', user)
262
256
vprint_status("User data stored in: #{ p } ")
263
257
end
264
- end
258
+ end
0 commit comments