Example #1
0
 def __init__(self, connection, log_queue):
     ResponderServerSession.__init__(self, connection, log_queue,
                                     self.__class__.__name__)
     self.auth_type = None
     self.auth_handler = None
     self.is_authed = False
     self.parser = LdapParser
Example #2
0
 def __init__(self, connection, log_queue):
     ResponderServerSession.__init__(self, connection, log_queue,
                                     self.__class__.__name__)
     self.parser = VNCMessageParser(self)
     self.status = VNCSessionStatus.PROTOCOL_EXCH
     self.protocolversion = 'RFB 003.008\n'
     self.server_challenge = b'\x00' * 16
Example #3
0
    def __init__(self, connection, log_queue):
        ResponderServerSession.__init__(self, connection, log_queue,
                                        self.__class__.__name__)
        self.status = SIPSessionStatus.UNAUTHENTICATED
        self.auth_mecha_name, self.auth_mecha = AuthMechaLoader.from_dict(
            {'auth_mecha': 'DIGEST'})

        self.read_cnt = 0
Example #4
0
 def __init__(self, connection, log_queue):
     ResponderServerSession.__init__(self, connection, log_queue,
                                     self.__class__.__name__)
     self.encoding = 'ascii'
     self.parser = FTPCommandParser(encoding=self.encoding)
     self.authhandler = None
     self.creds = {}
     self.current_state = FTPState.AUTHORIZATION
     self.welcome_message = 'hello from Honeypot FTP server'
Example #5
0
	def __init__(self, connection, log_queue):
		ResponderServerSession.__init__(self, connection, log_queue, self.__class__.__name__)
		self.cipher = None
		self.state = 'BANNER'
		self.client_banner = None
		self.server_banner = 'SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.2'
		self.client_kxinit = None
		self.server_kxinit = None
		self.parser = SSHParser
		self.sequence_number = 0
Example #6
0
    def __init__(self, connection, log_queue):
        ResponderServerSession.__init__(self, connection, log_queue,
                                        self.__class__.__name__)
        self.parser = MYSQLMessageParser(self)
        self.status = MYSQLSessionStatus.INITIAL_HANDSHAKE
        self.server_version = None
        self.server_challenge = None  #needs to be string of 20 characters!
        self.sequence_id = 0
        self.auth_type = None

        self.username = None
Example #7
0
	def __init__(self, connection, log_queue):
		ResponderServerSession.__init__(self, connection, log_queue, self.__class__.__name__)
		self.SMBprotocol  = None
		#self.SMBdialect   = 'SMB 2.002'
		self.SMBdialect   = ['NT LM 0.12']
		self.commondialect = None

		self.current_state = SMB2ServerState.UNAUTHENTICATED
		self.gssapihandler = GSSAPIAuthHandler()
		self.serverUUID = uuid.UUID(bytes=os.urandom(16))
		self.SMBSessionID = os.urandom(8)
		self.SMBMessageCnt = 0
Example #8
0
 def __init__(self, connection, log_queue):
     ResponderServerSession.__init__(self, connection, log_queue,
                                     self.__class__.__name__)
     self.encoding = 'ascii'
     self.parser = POP3CommandParser(encoding=self.encoding)
     self.authhandler = None
     self.supported_auth_types = [POP3AuthMethod.PLAIN, POP3AuthMethod.APOP]
     self.creds = {'alma': 'alma2'}
     self.salt = '<*****@*****.**>'
     self.current_state = POP3State.AUTHORIZATION
     self.log_data = False
     self.welcome_message = 'hello from Honeypot POP3 server'
Example #9
0
 def __init__(self, connection, log_queue):
     ResponderServerSession.__init__(self, connection, log_queue,
                                     self.__class__.__name__)
     self.encoding = 'utf-7'
     self.parser = IMAPCommandParser(encoding=self.encoding)
     self.authhandler = None
     self.supported_versions = [IMAPVersion.IMAP, IMAPVersion.IMAP4rev1]
     self.additional_capabilities = []
     self.supported_auth_types = [IMAPAuthMethod.PLAIN]
     self.creds = None
     self.current_state = IMAPState.NOTAUTHENTICATED
     self.welcome_message = 'hello from Honeyport IMAP server'
     self.log_data = False
Example #10
0
	def __init__(self, connection, log_queue):
		ResponderServerSession.__init__(self, connection, log_queue, self.__class__.__name__)
		self.encoding     = 'utf-7'
		self.parser       = IMAPCommandParser(encoding = self.encoding)
		self.authhandler  = None
		self.supported_versions = [IMAPVersion.IMAP, IMAPVersion.IMAP4rev1]
		self.additional_capabilities = []
		self.supported_auth_types = [IMAPAuthMethod.PLAIN]
		self.creds = {} #None will allow everyone in
		self.current_state = IMAPState.NOTAUTHENTICATED
		self.welcome_message = 'hello from Honeyport IMAP server'
		self.log_data = False
		self.multiauth_cmd_tag = None #this is for storing the original cmd_tag in case of multiauth was performed
Example #11
0
 def __init__(self, connection, log_queue):
     ResponderServerSession.__init__(self, connection, log_queue,
                                     self.__class__.__name__)
     self.encoding = 'ascii'
     self.parser = POP3CommandParser(encoding=self.encoding)
     self.authhandler = None
     self.supported_auth_types = [
         POP3AuthMethod.PLAIN, POP3AuthMethod.APOP, POP3AuthMethod.AUTH
     ]
     self.creds = {}
     self.salt = None
     self.current_state = POP3State.AUTHORIZATION
     #self.log_data = False
     self.banner = None
Example #12
0
 def __init__(self, connection, log_queue):
     ResponderServerSession.__init__(self, connection, log_queue,
                                     self.__class__.__name__)
     self.current_state = SOCKS5ServerState.NEGOTIATION
     self.allinterface = ipaddress.ip_address('0.0.0.0')
     self.supported_auth_types = None
     self.mutual_auth_type = None
     self.auth_handler = None
     self.client_transport = None
     self.proxymode = None
     self.proxytable = None
     self.creds = None
     self.proxy_closed = asyncio.Event()
     self.timeout = None
Example #13
0
	def __init__(self, connection, log_queue):
		ResponderServerSession.__init__(self, connection, log_queue, self.__class__.__name__)
		self.creds = {} # {'alma':'alma2'}
		self.salt = None
		self.encoding = 'utf8'  # THIS CAN CHANGE ACCORING TO CLIENT REQUEST!!!
		self.parser = SMTPCommandParser(encoding=self.encoding)
		self.emailparser = email.parser.Parser()
		self.current_state = SMTPServerState.START
		self.supported_auth_types = [SMTPAuthMethod.LOGIN, SMTPAuthMethod.PLAIN, SMTPAuthMethod.CRAM_MD5]
		self.authhandler = None
		self.emailFrom = ''
		self.emailTo = []
		self.ssl_ctx = None

		self.capabilities = []
		self.helo_msg = None
		self.ehlo_msg = None
Example #14
0
	def __init__(self, connection, log_queue):
		ResponderServerSession.__init__(self, connection, log_queue, self.__class__.__name__)
		self.server_mode = HTTPServerMode.CREDSTEALER
		self.current_state = HTTPState.UNAUTHENTICATED
		self.log_data = False
		self.parser = HTTPRequest

		self.http_version = HTTPVersion.HTTP11
		self.http_content_encoding = HTTPContentEncoding.IDENTITY
		self.http_connect_charset = 'utf8'
		self.http_auth_mecha = None
		self.http_cookie = None
		self.http_server_banner = None

		self.proxy_invisible = False
		self.proxy_ssl_intercept = False
		self.proxy_closed = asyncio.Event()

		self.close_session = asyncio.Event()
Example #15
0
    def __init__(self, connection, log_queue):
        ResponderServerSession.__init__(self, connection, log_queue,
                                        self.__class__.__name__)
        self.creds = None  # {'alma':'alma2'}
        self.salt = '<*****@*****.**>'
        self.encoding = 'utf8'  # THIS CAN CHANGE ACCORING TO CLIENT REQUEST!!!
        self.parser = SMTPCommandParser(encoding=self.encoding)
        self.emailparser = email.parser.Parser()
        self.current_state = SMTPServerState.START
        self.supported_auth_types = [
            SMTPAuthMethod.PLAIN, SMTPAuthMethod.CRAM_MD5
        ]
        self.authhandler = None
        self.emailFrom = ''
        self.emailTo = []

        self.capabilities = []
        self.helo_msg = 'Honypot SMTP at your service'
        self.ehlo_msg = 'Honypot SMTP at your service'
        self.log_data = False
Example #16
0
	def __init__(self, connection, log_queue):
		ResponderServerSession.__init__(self, connection, log_queue, self.__class__.__name__)
		self.parser = Responder3Command
		self.r3 = None
		self.result_queue = None
		self.close_session = asyncio.Event()
Example #17
0
	def __init__(self, connection, log_queue):
		ResponderServerSession.__init__(self, connection, log_queue, self.__class__.__name__)
Example #18
0
 def __init__(self, connection, log_queue):
     ResponderServerSession.__init__(self, connection, log_queue,
                                     self.__class__.__name__)
     self.parser = TNSPacket
     self.firstpacket = True
Example #19
0
 def __init__(self, connection, log_queue):
     ResponderServerSession.__init__(self, connection, log_queue,
                                     self.__class__.__name__)
     self.current_state = RloginSessionState.BEFORE_AUTH
Example #20
0
 def __init__(self, connection, log_queue):
     ResponderServerSession.__init__(self, connection, log_queue,
                                     self.__class__.__name__)
     self.parser = TELNETMessageParser(self)
     self.banner = None