def call(self): self.writeln(' %s up %s, 1 user, load average: 0.00, 0.00, 0.00' % \ (time.strftime('%H:%M:%S'), utils.uptime(self.protocol.uptime()))) self.writeln('USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT') self.writeln('%-8s pts/0 %s %s 0.00s 0.00s 0.00s w' % \ (self.protocol.user.username, self.protocol.clientIP[:17].ljust(17), time.strftime('%H:%M', time.localtime(self.protocol.logintime))))
def call(self): """ """ if len(self.args): secs = int(self.args[0]) self.protocol.uptime(time.time() - secs) self.write(' %s up %s, 1 user, load average: 0.00, 0.00, 0.00\n' % \ (time.strftime('%H:%M:%S'), utils.uptime(self.protocol.uptime())))
def call(self): self.write(' %s up %s, 1 user, load average: 0.00, 0.00, 0.00\n' % (time.strftime('%H:%M:%S'), utils.uptime(self.protocol.uptime()))) self.write('USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT\n') self.write('%-8s pts/0 %s %s 0.00s 0.00s 0.00s w\n' % (self.protocol.user.username, self.protocol.clientIP[:17].ljust(17), time.strftime('%H:%M', time.localtime(self.protocol.logintime))))
def call(self): self.writeln(' %s up %s, 1 user, load average: 0.00, 0.00, 0.00' % \ (time.strftime('%H:%M:%S'), utils.uptime(self.honeypot.uptime()))) self.writeln('USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT') self.writeln('%-8s pts/0 %s %s 0.00s 0.00s 0.00s w' % \ (self.honeypot.user.username, self.honeypot.clientIP[:17].ljust(17), time.strftime('%H:%M', time.localtime(self.honeypot.logintime))))
def call(self): self.write( " {} up {}, 1 user, load average: 0.00, 0.00, 0.00\n".format( time.strftime("%H:%M:%S"), utils.uptime(self.protocol.uptime()))) self.write( "USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT\n" ) self.write("%-8s pts/0 %s %s 0.00s 0.00s 0.00s w\n" % ( self.protocol.user.username, self.protocol.clientIP[:17].ljust(17), time.strftime("%H:%M", time.localtime(self.protocol.logintime)), ))
def call(self): """ """ self.write( " %s up %s, 1 user, load average: 0.00, 0.00, 0.00\n" % (time.strftime("%H:%M:%S"), utils.uptime(self.protocol.uptime())) ) self.write("USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT\n") self.write( "%-8s pts/0 %s %s 0.00s 0.00s 0.00s w\n" % ( self.protocol.user.username, self.protocol.clientIP[:17].ljust(17), time.strftime("%H:%M", time.localtime(self.protocol.logintime)), ) )
def call(self): self.write( '%s up %s, 1 user, load average: 0.00, 0.00, 0.00\n' % (time.strftime('%H:%M:%S'), utils.uptime(self.protocol.uptime())))
def call(self): if len(self.args): secs = int(self.args[0]) self.honeypot.uptime(time.time() - secs) self.writeln(' %s up %s, 1 user, load average: 0.00, 0.00, 0.00' % \ (time.strftime('%H:%M:%S'), utils.uptime(self.honeypot.uptime())))
def call(self): """ """ self.write('%s up %s, 1 user, load average: 0.00, 0.00, 0.00\n' % (time.strftime('%H:%M:%S'), utils.uptime(self.protocol.uptime())))