Skip to content

Commit db8f260

Browse files
David MaloneyDavid Maloney
authored andcommitted
add some YARD docs to report_auth_info
add yard docs for the modified report_auth_info MSP-11919
1 parent 71d600e commit db8f260

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/msf/core/auxiliary/report.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,19 @@ def report_note(opts={})
125125
framework.db.report_note(opts)
126126
end
127127

128+
# This Legacy method is responsible for creating credentials from data supplied
129+
# by a module. This method is deprecated and the new Metasploit::Credential methods
130+
# should be used directly instead.
131+
#
132+
# @param :opts [Hash] the option hash
133+
# @option opts [String] :host the address of the host (also takes a {Mdm::Host})
134+
# @option opts [Fixnum] :port the port of the connected service
135+
# @option opts [Mdm::Service] :service an optional Service object to build the cred for
136+
# @option opts [String] :type What type of private credential this is (e.g. "password", "hash", "ssh_key")
137+
# @option opts [String] :proto Which transport protocol the service uses
138+
# @option opts [String] :sname The 'name' of the service
139+
# @option opts [String] :user The username for the cred
140+
# @option opts [String] :pass The private part of the credential (e.g. password)
128141
def report_auth_info(opts={})
129142
return if not db
130143
raise ArgumentError.new("Missing required option :host") if opts[:host].nil?

0 commit comments

Comments
 (0)