Provide more context and references

bug/bundler_fix
jvazquez-r7 2015-06-01 10:33:40 -05:00
parent 74ea85fe84
commit d22dda2bab
No known key found for this signature in database
GPG Key ID: 38D99152B9352D83
1 changed files with 7 additions and 1 deletions

View File

@ -179,7 +179,13 @@ module Auxiliary::Report
# @option opts [String] :pass The private part of the credential (e.g. password)
def report_auth_info(opts={})
print_warning("*** #{self.fullname} is still calling the deprecated report_auth_info method! This needs to be updated!")
return if not db
print_warning('*** For detailed information about LoginScanners and the Credentials objects see:')
print_warning(' https://github.com/rapid7/metasploit-framework/wiki/Creating-Metasploit-Framework-LoginScanners')
print_warning(' https://github.com/rapid7/metasploit-framework/wiki/How-to-write-a-HTTP-LoginScanner-Module')
print_warning('*** For examples of modules converted to just report credentials without report_auth_info, see:')
print_warning(' https://github.com/rapid7/metasploit-framework/pull/5376')
print_warning(' https://github.com/rapid7/metasploit-framework/pull/5377')
return unless db
raise ArgumentError.new("Missing required option :host") if opts[:host].nil?
raise ArgumentError.new("Missing required option :port") if (opts[:port].nil? and opts[:service].nil?)