Skip to content

Commit 7de78c1

Browse files
committed
Land rapid7#5447, more info about using the deprecated report_auth_info
2 parents 487cc15 + d22dda2 commit 7de78c1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/msf/core/auxiliary/report.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,13 @@ def report_note(opts={})
179179
# @option opts [String] :pass The private part of the credential (e.g. password)
180180
def report_auth_info(opts={})
181181
print_warning("*** #{self.fullname} is still calling the deprecated report_auth_info method! This needs to be updated!")
182-
return if not db
182+
print_warning('*** For detailed information about LoginScanners and the Credentials objects see:')
183+
print_warning(' https://github.com/rapid7/metasploit-framework/wiki/Creating-Metasploit-Framework-LoginScanners')
184+
print_warning(' https://github.com/rapid7/metasploit-framework/wiki/How-to-write-a-HTTP-LoginScanner-Module')
185+
print_warning('*** For examples of modules converted to just report credentials without report_auth_info, see:')
186+
print_warning(' https://github.com/rapid7/metasploit-framework/pull/5376')
187+
print_warning(' https://github.com/rapid7/metasploit-framework/pull/5377')
188+
return unless db
183189
raise ArgumentError.new("Missing required option :host") if opts[:host].nil?
184190
raise ArgumentError.new("Missing required option :port") if (opts[:port].nil? and opts[:service].nil?)
185191

0 commit comments

Comments
 (0)