Ejemplo n.º 1
0
 def lastlogExit(self):
     starttime = time.strftime("%a %b %d %H:%M", time.localtime(self.logintime))
     endtime = time.strftime("%H:%M", time.localtime(time.time()))
     duration = utils.durationHuman(time.time() - self.logintime)
     f = file("%s/lastlog.txt" % self.env.cfg.get("honeypot", "data_path"), "a")
     f.write("root\tpts/0\t%s\t%s - %s (%s)\n" % (self.clientIP, starttime, endtime, duration))
     f.close()
Ejemplo n.º 2
0
 def lastlogExit(self):
     starttime = time.strftime('%a %b %d %H:%M',
                               time.localtime(self.logintime))
     endtime = time.strftime('%H:%M', time.localtime(time.time()))
     duration = utils.durationHuman(time.time() - self.logintime)
     utils.addToLastlog('root\tpts/0\t%s\t%s - %s (%s)' % \
         (self.clientIP, starttime, endtime, duration))
Ejemplo n.º 3
0
 def lastlogExit(self):
     starttime = time.strftime('%a %b %d %H:%M',
         time.localtime(self.logintime))
     endtime = time.strftime('%H:%M',
         time.localtime(time.time()))
     duration = utils.durationHuman(time.time() - self.logintime)
     utils.addToLastlog('root\tpts/0\t%s\t%s - %s (%s)' % \
         (self.clientIP, starttime, endtime, duration))
Ejemplo n.º 4
0
 def lastlogExit(self):
     starttime = time.strftime('%a %b %d %H:%M',
         time.localtime(self.logintime))
     endtime = time.strftime('%H:%M',
         time.localtime(time.time()))
     duration = utils.durationHuman(time.time() - self.logintime)
     f = file('%s/lastlog.txt' % self.env.cfg.get('honeypot', 'data_path'), 'a')
     f.write('root\tpts/0\t%s\t%s - %s (%s)\n' % \
         (self.clientIP, starttime, endtime, duration))
     f.close()
Ejemplo n.º 5
0
 def lastlogExit(self):
     starttime = time.strftime('%a %b %d %H:%M',
                               time.localtime(self.logintime))
     endtime = time.strftime('%H:%M', time.localtime(time.time()))
     duration = utils.durationHuman(time.time() - self.logintime)
     f = file('%s/lastlog.txt' % self.env.cfg.get('honeypot', 'data_path'),
              'a')
     f.write('root\tpts/0\t%s\t%s - %s (%s)\n' % \
         (self.clientIP, starttime, endtime, duration))
     f.close()