Skip to content

Commit 1f007bf

Browse files
David MaloneyDavid Maloney
authored andcommitted
start adding new rpc calls
Signed-off-by: David Maloney <[email protected]>
1 parent 9db951c commit 1f007bf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ module RPC
44
class RPC_Db < RPC_Base
55

66
private
7+
8+
include Metasploit::Credential::Creation
9+
710
def db
811
self.framework.db.active
912
end
@@ -88,6 +91,12 @@ def init_db_opts_workspace(xopts)
8891

8992
public
9093

94+
def rpc_create_credential(xopts)
95+
create_credential(xopts)
96+
end
97+
98+
99+
91100
def rpc_hosts(xopts)
92101
::ActiveRecord::Base.connection_pool.with_connection {
93102
opts, wspace = init_db_opts_workspace(xopts)

0 commit comments

Comments
 (0)