New command: uname

git-svn-id: https://kippo.googlecode.com/svn/trunk@4 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
desaster
2009-11-10 20:40:06 +00:00
parent b17c69c572
commit 393a33ff02
2 changed files with 8 additions and 0 deletions

View File

@@ -85,6 +85,13 @@ class command_vi(HoneyPotCommand):
def call(self, args):
self.honeypot.writeln('E558: Terminal entry not found in terminfo')
class command_uname(HoneyPotCommand):
def call(self, args):
if args.strip() == '-a':
self.honeypot.writeln('Linux sales 2.6.26-2-686 #1 SMP Wed Nov 4 20:45:37 UTC 2009 i686 GNU/Linux')
else:
self.honeypot.writeln('Linux')
class command_mount(HoneyPotCommand):
def call(self, args):
if len(args.strip()):