From a7b62477016d60cf65ac4c3387dbc624d0cad484 Mon Sep 17 00:00:00 2001 From: g0tmi1k Date: Sun, 1 Jun 2014 14:25:52 +0100 Subject: [PATCH] Added support for 'cd ~' Will now return back to user's home folder --- kippo/commands/fs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kippo/commands/fs.py b/kippo/commands/fs.py index c24c10e..59e1a08 100644 --- a/kippo/commands/fs.py +++ b/kippo/commands/fs.py @@ -25,7 +25,7 @@ commands['/bin/cat'] = command_cat class command_cd(HoneyPotCommand): def call(self): - if not self.args: + if not self.args or self.args[0] == "~": path = self.honeypot.user.home else: path = self.args[0]