Skip to content

Commit fc91244

Browse files
David MaloneyDavid Maloney
authored andcommitted
insert deprecation error message
report_auth_info will now issue an error message stating that the method is deprecated along with the module name that called it MSP-11919
1 parent db8f260 commit fc91244

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/msf/core/auxiliary/report.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ def report_note(opts={})
139139
# @option opts [String] :user The username for the cred
140140
# @option opts [String] :pass The private part of the credential (e.g. password)
141141
def report_auth_info(opts={})
142+
print_error "*** #{self.fullname} is still calling the deprecated report_auth_info method! This needs to be updated!"
142143
return if not db
143144
raise ArgumentError.new("Missing required option :host") if opts[:host].nil?
144145
raise ArgumentError.new("Missing required option :port") if (opts[:port].nil? and opts[:service].nil?)

0 commit comments

Comments
 (0)