Skip to content

Commit 70ab938

Browse files
committed
1 parent f43e4f9 commit 70ab938

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/msf/core/rpc/v10/rpc_db.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,8 @@ def init_db_opts_workspace(xopts)
107107
public
108108

109109

110-
# Creates a credential.
110+
# Creates a cracked credential.
111111
#
112-
# @note Despite the fact the method name for this is called "rpc_create_cracked_credential", it
113-
# does not actually call the create_cracked_credential API in metasploit-credential. Instead,
114-
# it calls create_credential.
115-
# @todo This method needs to call create_cracked_credential, not create_credential.
116112
# @param [Hash] xopts Credential options. (See #create_credential Documentation)
117113
# @return [Metasploit::Credential::Core]
118114
# @see https://github.com/rapid7/metasploit-credential/blob/master/lib/metasploit/credential/creation.rb#L107 #create_credential Documentation.
@@ -133,7 +129,7 @@ def init_db_opts_workspace(xopts)
133129
# rpc.call('db.create_cracked_credential', opts)
134130
def rpc_create_cracked_credential(xopts)
135131
opts = fix_cred_options(xopts)
136-
create_credential(opts)
132+
create_cracked_credential(opts)
137133
end
138134

139135

0 commit comments

Comments
 (0)