Skip to content

Commit e0d87a8

Browse files
committed
Update to use store_loot for CSV export
1 parent 73bac94 commit e0d87a8

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

lib/msf/http/wordpress/version.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ def check_version_from_readme(type, name, fixed_version, vuln_introduced_version
9393
'method' => 'GET'
9494
)
9595

96-
# no readme.txt present
9796
if res.nil? || res.code != 200
9897
readme_url = normalize_uri(target_uri.path, wp_content_dir, folder, name, 'Readme.txt')
9998
res = send_request_cgi(

modules/auxiliary/gather/wp_ultimate_csv_importer_user_extract.rb

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,6 @@ def initialize(info = {})
3434
],
3535
'DisclosureDate' => 'Feb 02 2015'
3636
))
37-
38-
register_options(
39-
[
40-
OptString.new('EXPORT_TO', [false, 'The file to save the CSV extract to'])
41-
], self.class)
42-
end
43-
44-
def export_to
45-
datastore['EXPORT_TO']
4637
end
4738

4839
def plugin_url
@@ -114,14 +105,6 @@ def run
114105
end
115106
end
116107

117-
if export_to.to_s.strip.length > 0
118-
begin
119-
print_status("#{peer} - Exporting CSV to #{export_to}...")
120-
File.open(export_to, 'wb') { |f| f.write(res.body) }
121-
print_good("#{peer} - CSV exported")
122-
rescue
123-
print_error("#{peer} - Failed to export CSV")
124-
end
125-
end
108+
store_loot('wordpress.users.export', 'csv', datastore['RHOST'], res.body, 'users_export.csv', 'WordPress User Table Extract')
126109
end
127110
end

0 commit comments

Comments
 (0)