From 744103044673012c5bcebe5cc2e57b61de15687e Mon Sep 17 00:00:00 2001 From: ikoniaris Date: Thu, 23 Jul 2015 00:25:08 +0100 Subject: [PATCH] Get uname -a from host system --- kippo/commands/base.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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