Fix a problem where a dcerpc exploit will only work once before the framework must be reloaded
git-svn-id: file:///home/svn/framework3/trunk@4476 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
6fe02e7fd8
commit
6d4c234187
|
@ -81,11 +81,8 @@ module Exploit::Remote::DCERPC
|
|||
opts['smb_client'] = self.simple
|
||||
end
|
||||
|
||||
if (self.sock and not self.dcerpc_socket)
|
||||
self.dcerpc_socket = self.sock
|
||||
end
|
||||
|
||||
self.dcerpc = Rex::Proto::DCERPC::Client.new(h, self.dcerpc_socket, opts)
|
||||
self.dcerpc = Rex::Proto::DCERPC::Client.new(h, self.sock, opts)
|
||||
|
||||
if (self.handle.protocol == 'ncacn_np' and not self.simple)
|
||||
self.simple = self.dcerpc.smb # expose the simple client if we have access to it
|
||||
|
@ -111,7 +108,7 @@ module Exploit::Remote::DCERPC
|
|||
end
|
||||
|
||||
# Useful accessors for tracking DCERPC state
|
||||
attr_accessor :handle, :dcerpc, :dcerpc_socket
|
||||
attr_accessor :handle, :dcerpc
|
||||
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue