Example #1
0
 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
Example #2
0
 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
Example #3
0
 def __init__(self):
         ProtocolSession.__init__(self)
         self.cmdParser      = SOCKS5CommandParser()
         self.currentState   = SOCKS5ServerState.NEGOTIATION
         self.mutualAuthType = None
         self.authHandler    = None
         self.clientTransport= None
Example #4
0
 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      = []
Example #5
0
 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
Example #6
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
Example #7
0
 def __init__(self):
     ProtocolSession.__init__(self)
Example #8
0
 def __init__(self):
     ProtocolSession.__init__(self)
     self._parsed_length = None
Example #9
0
 def __init__(self):
     ProtocolSession.__init__(self)
     self.clientTransport = None
     self.remote_writer = None
     self.remote_socket = None