Added support for 'cd ~'

Will now return back to user's home folder
This commit is contained in:
g0tmi1k
2014-06-01 14:25:52 +01:00
parent 5027e361b6
commit a7b6247701

View File

@@ -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]