This commit is contained in:
n1nj4sec 2017-02-10 22:53:57 +01:00
commit 4d27af74ec
1 changed files with 5 additions and 2 deletions

View File

@ -79,8 +79,11 @@ def ls(path=None):
def cd(path=None):
if not path:
home = os.path.expanduser("~")
try:
os.chdir(home)
return
except:
return "[-] Home directory not found (or access denied): %s" % home
path = os.path.join(os.getcwd(), path)
if os.path.isdir(path):