1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00

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-b9f4589650da
This commit is contained in:
HD Moore 2007-02-26 17:38:01 +00:00
parent 6fe02e7fd8
commit 6d4c234187

View File

@ -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