Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Commit 5375edc

Browse files
committed
Store usernames as creds and export as loot
1 parent 346af93 commit 5375edc

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

modules/auxiliary/info/email_subscribers_user_list_disclosure.rb

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ def initialize
2727
],
2828
date: 'Jan 24 2018'
2929
)
30-
31-
register_export_path_option false
3230
end
3331

3432
def check
@@ -58,6 +56,7 @@ def request_user_list
5856
def process_row(row)
5957
return unless row[:name] && row[:email]
6058
emit_success "Found user: #{row[:name]} (#{row[:email]})", true
59+
store_credentials row[:name]
6160
@users.push(username: row[:name], email: row[:email])
6261
end
6362

@@ -96,11 +95,8 @@ def run
9695
emit_info 'Parsing result...', true
9796
parse_csv res.body, ','
9897

99-
if export_path
100-
emit_info 'Saving export...'
101-
File.open(export_path, 'w') { |file| file.write(res.body) }
102-
emit_success "Saved export to #{export_path}"
103-
end
98+
loot = export_and_log_loot(res.body, 'Registered users and e-mail addresses', 'user list', '.csv')
99+
emit_success "User list saved to #{loot.path}"
104100

105101
true
106102
end

0 commit comments

Comments
 (0)