Skip to content

Commit e7a565b

Browse files
committed
fixed store loot
1 parent 16ce2c3 commit e7a565b

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

modules/post/windows/gather/local_admin_search_enum.rb

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,8 @@ def db_note(host, data, type)
228228
# Write to loot database
229229
def db_loot(host, user, type)
230230
if db
231-
store_loot(
232-
type,
233-
'text/plain',
234-
host,
235-
"#{host}:#{user}",
236-
'hosts_localadmin.txt',
237-
user
238-
)
231+
p = store_loot(type, 'text/plain', host, "#{host}:#{user}", 'hosts_localadmin.txt', user)
232+
print_status("User data stored in: #{p}")
239233
end
240234
end
241235
end

0 commit comments

Comments
 (0)