Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions kippo/commands/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down