From f0c04b2938bbf97db1ad6555f55cbee4a096cf1c Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Tue, 3 Feb 2015 06:24:53 +0000 Subject: [PATCH] bunch of new aliases --- CHANGELOG.md | 5 +++++ kippo/commands/base.py | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e3a4635..52a4a0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,3 +27,8 @@ * add 1st version of 'netstat' * ls output is now alphabetically sorted * banner_file is deprecated. honeyfs/etc/issue.net is default +* add 'dir' alias for 'ls' +* add 'help' bash builtin +* add 'users' aliased to 'whoami' +* add 'killall' and 'killall5' aliased to nop +* add 'poweroff' 'halt' and 'reboot' aliases for shutdown diff --git a/kippo/commands/base.py b/kippo/commands/base.py index 674efc4..2a2b96b 100644 --- a/kippo/commands/base.py +++ b/kippo/commands/base.py @@ -15,6 +15,7 @@ class command_whoami(HoneyPotCommand): def call(self): self.writeln(self.honeypot.user.username) commands['/usr/bin/whoami'] = command_whoami +commands['/usr/bin/users'] = command_whoami class command_uptime(HoneyPotCommand): def call(self): @@ -286,6 +287,9 @@ class command_shutdown(HoneyPotCommand): self.honeypot.cwd = '/' self.exit() commands['/sbin/shutdown'] = command_shutdown +commands['/sbin/poweroff'] = command_shutdown +commands['/sbin/reboot'] = command_shutdown +commands['/sbin/halt'] = command_shutdown class command_reboot(HoneyPotCommand): def start(self): @@ -515,6 +519,8 @@ commands['export'] = command_nop commands['alias'] = command_nop commands['jobs'] = command_nop commands['/bin/kill'] = command_nop +commands['/bin/killall'] = command_nop +commands['/bin/killall5'] = command_nop commands['/bin/su'] = command_nop commands['/bin/chown'] = command_nop commands['/bin/chgrp'] = command_nop