diff --git a/lib/msf/core/exploit/sunrpc.rb b/lib/msf/core/exploit/sunrpc.rb index 6fc245658a..6400f44d7a 100644 --- a/lib/msf/core/exploit/sunrpc.rb +++ b/lib/msf/core/exploit/sunrpc.rb @@ -82,7 +82,7 @@ module Exploit::Remote::SunRPC progname = progresolv(rpcobj.program) err = "SunRPC call for program #{rpcobj.program} [#{progname}], procedure #{proc}, failed: " if (arr[1] != MSG_ACCEPTED) - err << 'Message not accepted' + err << 'Message not accepted' elsif (arr[4] and arr[4] != SUCCESS) case arr[4] when PROG_UMAVAIL then err << "Program Unavailable" @@ -99,6 +99,10 @@ module Exploit::Remote::SunRPC return ret end + def sunrpc_callsock + self.rpcobj.call_sock + end + def sunrpc_destroy rpcobj.destroy rpcobj = nil @@ -151,3 +155,4 @@ module Exploit::Remote::SunRPC end end + diff --git a/lib/rex/proto/sunrpc/client.rb b/lib/rex/proto/sunrpc/client.rb index b3e56ab2fb..95959e2e8e 100644 --- a/lib/rex/proto/sunrpc/client.rb +++ b/lib/rex/proto/sunrpc/client.rb @@ -27,7 +27,7 @@ class Client CALL = 0 attr_reader :rhost, :rport, :proto, :program, :version - attr_accessor :pport + attr_accessor :pport. :call_sock attr_accessor :should_fragment @@ -176,3 +176,4 @@ end end end end +