File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
modules/post/windows/gather Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ def enum_users(host)
105
105
mem = client . railgun . memread ( startmem , 8 *count )
106
106
rescue ::Exception => e
107
107
print_error ( "Issue reading memory for #{ host } " )
108
+ print_error ( e . backtrace ) if datastore [ 'VERBOSE' ]
108
109
end
109
110
# For each entry returned, get domain and name of logged in user
110
111
begin
@@ -153,6 +154,7 @@ def enum_groups(user)
153
154
154
155
rescue ::Exception => e
155
156
print_error ( "Issue connecting to DC, try manually setting domain and DC" )
157
+ print_error ( e . backtrace ) if datastore [ 'VERBOSE' ]
156
158
end
157
159
158
160
count = usergroups [ 'totalentries' ]
@@ -163,6 +165,7 @@ def enum_groups(user)
163
165
mem = client . railgun . memread ( startmem , 8 *count )
164
166
rescue ::Exception => e
165
167
print_error ( "Issue reading memory for groups for user #{ user } " )
168
+ print_error ( e . backtrace ) if datastore [ 'VERBOSE' ]
166
169
end
167
170
168
171
begin
@@ -182,6 +185,7 @@ def enum_groups(user)
182
185
183
186
rescue ::Exception => e
184
187
print_error("Issue enumerating groups for user #{ user } , check domain")
188
+ print_error(e.backtrace) if datastore['VERBOSE']
185
189
end
186
190
187
191
return grouplist.chomp("\n\t- ")
You can’t perform that action at this time.
0 commit comments