mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-01-27 01:54:24 +01:00
cowrie goes 64-bit! updated uname
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user