support for 'uname -m'

This commit is contained in:
Michel Oosterhof 2015-02-24 09:37:04 +00:00
parent a7f189eed1
commit ea7148c521
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,8 @@ class command_uname(HoneyPotCommand):
self.honeypot.hostname)
elif len(self.args) and self.args[0].strip() in ('-r', '--kernel-release'):
self.writeln( '2.6.26-2-686' )
elif len(self.args) and self.args[0].strip() in ('-m', '--machine'):
self.writeln( 'i686' )
else:
self.writeln('Linux')