Exemple #1
0
 def __init__(self, config, SMBClient, username):
     ProtocolAttack.__init__(self, config, SMBClient, username)
     if isinstance(SMBClient, smb.SMB) or isinstance(SMBClient, smb3.SMB3):
         self.__SMBConnection = SMBConnection(existingConnection=SMBClient)
     else:
         self.__SMBConnection = SMBClient
     self.__answerTMP = ''
     if self.config.interactive:
         #Launch locally listening interactive shell
         self.tcpshell = TcpShell()
     else:
         self.tcpshell = None
         if self.config.exeFile is not None:
             self.installService = serviceinstall.ServiceInstall(SMBClient, self.config.exeFile)
Exemple #2
0
    def __init__(self, config, SMBClient, username):
        ProtocolAttack.__init__(self, config, SMBClient, username)

        self.pid = int(config.pipe_client_pid)
        self.pipe_name = config.pipe_name
        self.payload = config.payload_path
        if not config.command:
            self.command = 'c:\\windows\\system32\\cmd.exe'
        else:
            self.command = config.command

        self.sendSMB_Original = self.client._SMBConnection.sendSMB
        self.client._SMBConnection.sendSMB = types.MethodType(
            self.sendSMB, self.client._SMBConnection)

        if isinstance(SMBClient, smb.SMB) or isinstance(SMBClient, smb3.SMB3):
            self.__SMBConnection = SMBConnection(existingConnection=SMBClient)
        else:
            self.__SMBConnection = SMBClient
Exemple #3
0
 def __init__(self, config, LDAPClient, username):
     self.computerName = '' if config.addcomputer == 'Rand' else config.addcomputer
     ProtocolAttack.__init__(self, config, LDAPClient, username)
     if self.config.interactive:
         # Launch locally listening interactive shell.
         self.tcp_shell = TcpShell()
Exemple #4
0
 def __init__(self, config, LDAPClient, username):
     self.computerName = '' if config.addcomputer == 'Rand' else config.addcomputer
     ProtocolAttack.__init__(self, config, LDAPClient, username)
Exemple #5
0
 def __init__(self, config, LDAPClient, username):
     ProtocolAttack.__init__(self, config, LDAPClient, username)
 def __init__(self, config, LDAPClient, username):
     ProtocolAttack.__init__(self, config, LDAPClient, username)
Exemple #7
0
 def __init__(self, config, dce, username):
     ProtocolAttack.__init__(self, config, dce, username)
     self.dce = dce
     self.rpctransport = dce.get_rpc_transport()
     self.stringbinding = self.rpctransport.get_stringbinding()
Exemple #8
0
    def __init__(self, config, LDAPClient, username):
        ProtocolAttack.__init__(self, config, LDAPClient, username)

        #Import it here because non-standard dependency
        self.ldapdomaindump = __import__('ldapdomaindump')
        self.ldap3 = __import__('ldap3')