def connectionMade(self): self.ttylog_file = '%s/tty/%s-%s.log' % \ (config().get('honeypot', 'log_path'), time.strftime('%Y%m%d-%H%M%S'), int(random.random() * 10000)) print 'Opening TTY log: %s' % self.ttylog_file ttylog.ttylog_open(self.ttylog_file, time.time()) self.ttylog_open = True 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 ) log.msg('Opening TTY log: %s' % transport.ttylog_file) ttylog.ttylog_open(transport.ttylog_file, time.time()) transport.ttylog_open = True transport.stdinlog_file = '%s/%s-%s-stdin.log' % \ (config().get('honeypot', 'download_path'), time.strftime('%Y%m%d-%H%M%S'), transport.transportId ) transport.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 ) log.msg( 'Opening TTY log: %s' % transport.ttylog_file ) ttylog.ttylog_open(transport.ttylog_file, time.time()) transport.ttylog_open = True transport.stdinlog_file = '%s/%s-%s-stdin.log' % \ (config().get('honeypot', 'download_path'), time.strftime('%Y%m%d-%H%M%S'), transport.transportId ) transport.stdinlog_open = False insults.ServerProtocol.connectionMade(self)
def open_tty(self, uuid, ttylog_file): self.connections.add_ttylog_file(uuid, ttylog_file) ttylog.ttylog_open(ttylog_file, time.time())
def openTTY(self, ttylog_file): ttylog.ttylog_open(ttylog_file, time.time())