diff --git a/kippo/commands/base.py b/kippo/commands/base.py index 89a798e..0b21796 100644 --- a/kippo/commands/base.py +++ b/kippo/commands/base.py @@ -79,9 +79,10 @@ def call(self): class command_uname(HoneyPotCommand): def call(self): if len(self.args) and self.args[0].strip() in ('-a', '--all'): - self.writeln( - 'Linux %s 2.6.26-2-686 #1 SMP Wed Nov 4 20:45:37 UTC 2009 i686 GNU/Linux' % \ - self.honeypot.hostname) + uname_list = list(os.uname()) + uname_list[1] = self.honeypot.hostname + uname_str = " ".join(uname_list) + self.writeln(uname_str) else: self.writeln('Linux') commands['/bin/uname'] = command_uname