def connectionMade(self): transport = self.transport.session.conn.transport transport.ttylog_file = '%s/tty/%s-%s.log' % \ (config().get('honeypot', 'log_path'), time.strftime('%Y%m%d-%H%M%S'), transport.transportId ) log.msg('Opening TTY log: %s' % transport.ttylog_file) ttylog.ttylog_open(transport.ttylog_file, time.time()) self.ttylog_open = True self.stdinlog_file = '%s/%s-%s-stdin.log' % \ (config().get('honeypot', 'download_path'), time.strftime('%Y%m%d-%H%M%S'), transport.transportId ) self.stdinlog_open = False insults.ServerProtocol.connectionMade(self)
def connectionMade(self): transport = self.transport.session.conn.transport transport.ttylog_file = '%s/tty/%s-%s.log' % \ (config().get('honeypot', 'log_path'), time.strftime('%Y%m%d-%H%M%S'), transport.transportId ) self.ttylog_file = transport.ttylog_file log.msg( eventid='KIPP0004', ttylog=transport.ttylog_file, format='Opening TTY Log: %(ttylog)s') ttylog.ttylog_open(transport.ttylog_file, time.time()) self.ttylog_open = True self.stdinlog_file = '%s/%s-%s-stdin.log' % \ (config().get('honeypot', 'download_path'), time.strftime('%Y%m%d-%H%M%S'), transport.transportId ) self.stdinlog_open = False insults.ServerProtocol.connectionMade(self)
def connectionMade(self): transport = self.transport.session.conn.transport transport.ttylog_file = "%s/tty/%s-%s.log" % ( self.cfg.get("honeypot", "log_path"), time.strftime("%Y%m%d-%H%M%S"), transport.transportId, ) self.ttylog_file = transport.ttylog_file log.msg(eventid="KIPP0004", ttylog=transport.ttylog_file, format="Opening TTY Log: %(ttylog)s") ttylog.ttylog_open(transport.ttylog_file, time.time()) self.ttylog_open = True self.stdinlog_file = "%s/%s-%s-stdin.log" % ( self.cfg.get("honeypot", "download_path"), time.strftime("%Y%m%d-%H%M%S"), transport.transportId, ) self.stdinlog_open = False insults.ServerProtocol.connectionMade(self)