Exemplo n.º 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)
Exemplo n.º 2
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()