Skip to content

Commit b008eb9

Browse files
committed
Fix msgpack issue
1 parent 0440708 commit b008eb9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

modules/auxiliary/scanner/msf/msf_rpc_login.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
##
77

88
require 'msf/core'
9-
require 'msf/core/rpc/v10/client'
109

1110
class Metasploit3 < Msf::Auxiliary
1211

@@ -38,6 +37,13 @@ def initialize
3837
end
3938

4039
def run_host(ip)
40+
begin
41+
require 'msf/core/rpc/v10/client'
42+
rescue LoadError
43+
print_error("You don't have 'msgpack', please install that gem manually.")
44+
return
45+
end
46+
4147
begin
4248
@rpc = Msf::RPC::Client.new(
4349
:host => datastore['rhost'],

0 commit comments

Comments
 (0)