Skip to content

Commit ddb62c8

Browse files
committed
Removing add_host since it is not necessary :(
- Ups I did not needed this. I can get away with report_host and report_client.
1 parent b5e6465 commit ddb62c8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -356,15 +356,6 @@ def rpc_add_workspace(wspace)
356356
}
357357
end
358358

359-
def rpc_add_host(xopts)
360-
::ActiveRecord::Base.connection_pool.with_connection {
361-
opts, wspace = init_db_opts_workspace(xopts)
362-
host = self.framework.db.add_host(opts)
363-
return { 'result' => 'success' } if(host)
364-
{ 'result' => 'failed' }
365-
}
366-
end
367-
368359
def rpc_get_host(xopts)
369360
::ActiveRecord::Base.connection_pool.with_connection {
370361
opts, wspace = init_db_opts_workspace(xopts)

0 commit comments

Comments
 (0)