Added '--all' response to 'uname'

Seen it used in the wild
This commit is contained in:
g0tmi1k
2014-06-01 14:25:14 +01:00
parent 9494bf6c2a
commit 5027e361b6

View File

@@ -78,7 +78,7 @@ commands['/bin/hostname'] = command_hostname
class command_uname(HoneyPotCommand):
def call(self):
if len(self.args) and self.args[0].strip() == '-a':
if len(self.args) and (self.args[0].strip() == '-a' or self.args[0].strip() == '--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)