cowrie goes 64-bit! updated uname

This commit is contained in:
Michel Oosterhof
2015-07-27 09:13:45 +00:00
parent d545b59db6
commit 95808604e7

View File

@@ -8,12 +8,12 @@ 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' % \
'Linux %s 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u1 x86_64 GNU/Linux' % \
self.honeypot.hostname)
elif len(self.args) and self.args[0].strip() in ('-r', '--kernel-release'):
self.writeln( '2.6.26-2-686' )
self.writeln( '3.2.0-4-amd64' )
elif len(self.args) and self.args[0].strip() in ('-m', '--machine'):
self.writeln( 'i686' )
self.writeln( 'amd64' )
else:
self.writeln('Linux')