Compare commits

...

4 Commits

Author SHA1 Message Date
justuser
9b64354728 Переход на публичный адрес 2024-06-17 08:42:57 +03:00
justuser
2ef9fa6fb8 Переход на публичный адрес 2024-06-17 08:39:47 +03:00
justuser
7b42fa0680 Обновление радиуса портов 2024-06-17 08:38:54 +03:00
justuser
e10043262c up 2024-06-17 08:24:54 +03:00
2 changed files with 8 additions and 12 deletions

View File

@ -24,15 +24,15 @@ from domain_check import *
# 2. [+] Проверка существования сайта
# 3. [+] Передача сайта
# 4. [+] Приём рассылки сайтов
# 5. Проверка всех сайтов
# 5. [ ] Проверка всех сайтов
def port_gen(st = 4000, end = 4200):
def port_gen(st = 25000, end = 25200):
port = randint(st, end)
if client(port) == None:
return port
while client(port) != None:
port = randint(4000, 4200)
port = randint(st, end)
return port
def server_http():
@ -274,7 +274,7 @@ def port_check(your_port):
global ports
ports = []
checks = list(range(4000, 4200))
checks = list(range(25000, 25200))
checks.remove(your_port)
for port in tqdm(checks):
@ -284,7 +284,3 @@ def port_check(your_port):
sleep(10)
return ports
#print( port_check(4001) )
#print( client(4085, "ping") )

View File

@ -6,17 +6,17 @@ global http_out ; http_out = None
def proxy_http(port):
global http_out
if name == "posix":
http_out = system(f"./bore local 8000 --to jetwork.404.mn --port {port}")
http_out = system(f"./bore local 8000 --to bore.pub --port {port}")
elif name == "nt":
http_out = system(f"bore local 8000 --to jetwork.404.mn --port {port}")
http_out = system(f"bore local 8000 --to bore.pub --port {port}")
global serv_out ; serv_out = None
def proxy_serv(port):
global serv_out
if name == "posix":
http_out = system(f"./bore local 8001 --to jetwork.404.mn --port {port}")
http_out = system(f"./bore local 8001 --to bore.pub --port {port}")
elif name == "nt":
http_out = system(f"bore local 8001 --to jetwork.404.mn --port {port}")
http_out = system(f"bore local 8001 --to bore.pub --port {port}")
def watch_http(port):