Update to use store_loot for CSV export

bug/bundler_fix
rastating 2015-02-17 19:21:31 +00:00
parent 73bac94fa8
commit e0d87a8886
2 changed files with 1 additions and 19 deletions

View File

@ -93,7 +93,6 @@ module Msf::HTTP::Wordpress::Version
'method' => 'GET'
)
# no readme.txt present
if res.nil? || res.code != 200
readme_url = normalize_uri(target_uri.path, wp_content_dir, folder, name, 'Readme.txt')
res = send_request_cgi(

View File

@ -34,15 +34,6 @@ class Metasploit3 < Msf::Auxiliary
],
'DisclosureDate' => 'Feb 02 2015'
))
register_options(
[
OptString.new('EXPORT_TO', [false, 'The file to save the CSV extract to'])
], self.class)
end
def export_to
datastore['EXPORT_TO']
end
def plugin_url
@ -114,14 +105,6 @@ class Metasploit3 < Msf::Auxiliary
end
end
if export_to.to_s.strip.length > 0
begin
print_status("#{peer} - Exporting CSV to #{export_to}...")
File.open(export_to, 'wb') { |f| f.write(res.body) }
print_good("#{peer} - CSV exported")
rescue
print_error("#{peer} - Failed to export CSV")
end
end
store_loot('wordpress.users.export', 'csv', datastore['RHOST'], res.body, 'users_export.csv', 'WordPress User Table Extract')
end
end