2024-02-18 19:25:11 +00:00
|
|
|
from os import system, name
|
2024-02-28 16:38:42 +00:00
|
|
|
from network import port_gen
|
2024-02-18 19:25:11 +00:00
|
|
|
|
|
|
|
port = input("Введите порт: ")
|
2024-06-18 07:33:52 +00:00
|
|
|
dest = port_gen(25300, 25500)
|
2024-02-18 19:25:11 +00:00
|
|
|
|
2024-02-28 16:38:42 +00:00
|
|
|
print(f"\nУдалённый ПОРТ: {dest}")
|
2024-02-18 19:25:11 +00:00
|
|
|
print("\n[!] Не закрывайте это окно [!]\n")
|
|
|
|
|
|
|
|
if name == "posix":
|
2024-06-18 07:33:52 +00:00
|
|
|
system(f"./bore local {port} --to bore.pub --port {dest}")
|
2024-02-18 19:25:11 +00:00
|
|
|
elif name == "nt":
|
2024-06-18 07:33:52 +00:00
|
|
|
system(f"bore.exe local {port} --to bore.pub --port {dest}")
|
2024-02-18 19:25:11 +00:00
|
|
|
else:
|
|
|
|
print("Увы, вероятно Ваша ОС не поддерживается.")
|
|
|
|
print("Завершение работы...")
|
|
|
|
exit()
|