def __init__(self): ProtocolSession.__init__(self) self.encoding = 'ascii' self.cmdParser = FTPCommandParser(encoding = self.encoding) self.currentState = FTPState.AUTHORIZATION self.User = None self.Pass = None
def __init__(self): ProtocolSession.__init__(self) self.encoding = 'utf-7' self.cmdParser = IMAPCommandParser(encoding = self.encoding) self.currentState = IMAPState.NOTAUTHENTICATED self.User = None self.Pass = None
def __init__(self): ProtocolSession.__init__(self) self.cmdParser = SOCKS5CommandParser() self.currentState = SOCKS5ServerState.NEGOTIATION self.mutualAuthType = None self.authHandler = None self.clientTransport= None
def __init__(self): ProtocolSession.__init__(self) self.encoding = 'utf8' #THIS CAN CHANGE ACCORING TO CLIENT REQUEST!!! self.cmdParser = SMTPCommandParser(encoding = self.encoding) self.emailParser = email.parser.Parser() self.currentState = SMTPServerState.START self.authAPI = None self.emailData = '' self.emailFrom = '' self.emailTo = []
def __init__(self): ProtocolSession.__init__(self) self.cmdParser = SMBCommandParser self._buffer_minsize = 4 #netbios session header including the size of the whole message self._packet_size = -1 self.SMBprotocol = None self.SMBdialect = 'SMB 2.002' self.currentState = SMB2ServerState.UNAUTHENTICATED self.gssapihandler = GSSAPIAuthHandler() self.serverUUID = uuid.UUID(bytes=os.urandom(16)) self.SMBSessionID = os.urandom(8) self.SMBMessageCnt = 0
def __init__(self): ProtocolSession.__init__(self) #for protocol-level self._headersRecieved = False self.cmdParser = HTTPRequestParser(encoding='utf-8') #for self.HTTPVersion = HTTPVersion.HTTP11 self.HTTPContentEncoding = HTTPContentEncoding.IDENTITY self.HTTPConectentCharset = 'utf8' self.HTTPAtuhentication = None self.HTTPCookie = None self.HTTPServerBanner = None self.currentState = HTTPState.UNAUTHENTICATED
def __init__(self): ProtocolSession.__init__(self)
def __init__(self): ProtocolSession.__init__(self) self._parsed_length = None
def __init__(self): ProtocolSession.__init__(self) self.clientTransport = None self.remote_writer = None self.remote_socket = None