mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-24 09:24:23 +01:00
Added support for 'cd ~'
Will now return back to user's home folder
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user