예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
파일: protocol.py 프로젝트: lksnyder0/kippo
    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)
예제 #4
0
파일: protocol.py 프로젝트: caar2000/kippo
    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)
예제 #5
0
 def open_tty(self, uuid, ttylog_file):
     self.connections.add_ttylog_file(uuid, ttylog_file)
     ttylog.ttylog_open(ttylog_file, time.time())
예제 #6
0
 def openTTY(self, ttylog_file):
     ttylog.ttylog_open(ttylog_file, time.time())
예제 #7
0
 def openTTY(self, ttylog_file):
     ttylog.ttylog_open(ttylog_file, time.time())