mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
50 lines
1.9 KiB
Python
50 lines
1.9 KiB
Python
from Defs.ImportManager.unsorted_will_be_replaced import run_command
|
|
import Defs.ThemeManager.theme as theme
|
|
import Defs.ActionManager.Server.server_runner as server_runner
|
|
|
|
default_palette = theme.default_palette
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def server_selection(port): # Question where user must select server
|
|
run_command('clear')
|
|
print('''
|
|
{1}_ _ . ___ ___ ___ _ _ {0}___ _ _ ___{1}
|
|
|__| | ] | ] | |__ |\ | {0}|__ \__/ |__{1}
|
|
| | | ]__| ]__| |__ | \| {0}|__ || |__{1}
|
|
{0}http://github.com/darksecdevelopers
|
|
{0}** BY:DARKSEC ** \n\n-------------------------------\n{0}[ HOST SERVER SELECTION ]{1}!! {0}\n-------------------------------'''.format(default_palette[0], default_palette[2]))
|
|
print(
|
|
"\n {0}[{1}*{0}]{0}Select Any Available Server:{1}".format(default_palette[0], default_palette[4]))
|
|
print("\n {0}[{1}0{0}]{1}LOCALHOST \n {0}[{1}1{0}]{1}Ngrok\n {0}[{1}2{0}]{1}Serveo {0}(Currently DOWN)\n {0}[{1}3{0}]{1}Localxpose\n {0}[{1}4{0}]{1}Localtunnel \n {0}[{1}5{0}]{1}OpenPort\n {0}[{1}6{0}]{1}Pagekite\n".format(default_palette[0], default_palette[2]))
|
|
|
|
choice = input(" \n{0}HiddenEye >>> {1}".format(default_palette[0], default_palette[2]))
|
|
if choice == '0':
|
|
run_command('clear')
|
|
server_runner.start_localhost(port) #FIXED
|
|
elif choice == '1':
|
|
run_command('clear')
|
|
server_runner.start_ngrok(port) # FIXED
|
|
elif choice == '2':
|
|
run_command('clear')
|
|
server_runner.start_serveo(port)
|
|
elif choice == '3':
|
|
run_command('clear')
|
|
server_runner.start_localxpose(port)
|
|
elif choice == '4':
|
|
run_command('clear')
|
|
server_runner.start_localtunnel(port, True)
|
|
elif choice == '5':
|
|
run_command('clear')
|
|
server_runner.start_openport(port)
|
|
elif choice == '6':
|
|
run_command('clear')
|
|
server_runner.start_pagekite(port)
|
|
else:
|
|
run_command('clear')
|
|
return server_selection(port)
|