예제 #1
0
 def connectionLost(self, reason):
     # log.msg( "received call to LSP.connectionLost" )
     transport = self.transport.session.conn.transport
     if self.ttylog_open:
         log.msg('Closing TTY log: %s' % transport.ttylog_file)
         ttylog.ttylog_close(transport.ttylog_file, time.time())
         self.ttylog_open = False
     insults.ServerProtocol.connectionLost(self, reason)
예제 #2
0
파일: protocol.py 프로젝트: RyanKung/cowrie
 def connectionLost(self, reason):
     # log.msg("received call to LSP.connectionLost")
     transport = self.transport.session.conn.transport
     if self.ttylog_open:
         log.msg(eventid="KIPP0012", format="Closing TTY Log: %(ttylog)s", ttylog=transport.ttylog_file)
         ttylog.ttylog_close(transport.ttylog_file, time.time())
         self.ttylog_open = False
     insults.ServerProtocol.connectionLost(self, reason)
예제 #3
0
 def connectionLost(self, reason):
     # log.msg( "received call to LSP.connectionLost" )
     transport = self.transport.session.conn.transport
     if self.ttylog_open:
         log.msg( eventid='KIPP0012', format='Closing TTY Log: %(ttylog)s',
             ttylog=transport.ttylog_file)
         ttylog.ttylog_close(transport.ttylog_file, time.time())
         self.ttylog_open = False
     insults.ServerProtocol.connectionLost(self, reason)