remove mostly unused shortcuts

GSoC/Meterpreter_Web_Console
Brent Cook 2018-05-07 00:11:48 -05:00
parent a9094d6b97
commit 8463d94891
1 changed files with 2 additions and 7 deletions

View File

@ -16,11 +16,6 @@ module Msf
include Msf::Exploit::Remote::Tcp
include Msf::Exploit::Remote::NTLM::Client
SIMPLE = Rex::Proto::SMB::SimpleClient
XCEPT = Rex::Proto::SMB::Exceptions
CONST = Rex::Proto::SMB::Constants
# Alias over the Rex DCERPC protocol modules
DCERPCPacket = Rex::Proto::DCERPC::Packet
DCERPCClient = Rex::Proto::DCERPC::Client
@ -92,7 +87,7 @@ module Msf
direct = false
end
c = SIMPLE.new(s, direct, versions)
c = Rex::Proto::SMB::SimpleClient.new(s, direct, versions)
# setup pipe evasion foo
if datastore['SMB::pipe_evasion']
@ -219,7 +214,7 @@ module Msf
def smb_file_exist?(file)
begin
fd = simple.open(file, 'o')
rescue XCEPT::ErrorCode => e
rescue Rex::Proto::SMB::Exceptions::ErrorCode => e
# If attempting to open the file results in a "*_NOT_FOUND" error,
# then we can be sure the file is not there.
#