File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,19 @@ def report_note(opts={})
125
125
framework . db . report_note ( opts )
126
126
end
127
127
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)
128
141
def report_auth_info ( opts = { } )
129
142
return if not db
130
143
raise ArgumentError . new ( "Missing required option :host" ) if opts [ :host ] . nil?
You can’t perform that action at this time.
0 commit comments