mirror of
https://github.com/Justuser3310/jetwork.git
synced 2025-02-08 09:47:36 +00:00
Compare commits
No commits in common. "9b64354728849fd7cc1751d0bdf7817f4bf99516" and "9b843f6c03312ecaa2e4b3413eb092cbe9d453ab" have entirely different histories.
9b64354728
...
9b843f6c03
12
network.py
12
network.py
@ -24,15 +24,15 @@ from domain_check import *
|
||||
# 2. [+] Проверка существования сайта
|
||||
# 3. [+] Передача сайта
|
||||
# 4. [+] Приём рассылки сайтов
|
||||
# 5. [ ] Проверка всех сайтов
|
||||
# 5. Проверка всех сайтов
|
||||
|
||||
def port_gen(st = 25000, end = 25200):
|
||||
def port_gen(st = 4000, end = 4200):
|
||||
port = randint(st, end)
|
||||
if client(port) == None:
|
||||
return port
|
||||
|
||||
while client(port) != None:
|
||||
port = randint(st, end)
|
||||
port = randint(4000, 4200)
|
||||
return port
|
||||
|
||||
def server_http():
|
||||
@ -274,7 +274,7 @@ def port_check(your_port):
|
||||
global ports
|
||||
ports = []
|
||||
|
||||
checks = list(range(25000, 25200))
|
||||
checks = list(range(4000, 4200))
|
||||
checks.remove(your_port)
|
||||
|
||||
for port in tqdm(checks):
|
||||
@ -284,3 +284,7 @@ def port_check(your_port):
|
||||
sleep(10)
|
||||
|
||||
return ports
|
||||
|
||||
|
||||
#print( port_check(4001) )
|
||||
#print( client(4085, "ping") )
|
||||
|
8
proxy.py
8
proxy.py
@ -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 bore.pub --port {port}")
|
||||
http_out = system(f"./bore local 8000 --to jetwork.404.mn --port {port}")
|
||||
elif name == "nt":
|
||||
http_out = system(f"bore local 8000 --to bore.pub --port {port}")
|
||||
http_out = system(f"bore local 8000 --to jetwork.404.mn --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 bore.pub --port {port}")
|
||||
http_out = system(f"./bore local 8001 --to jetwork.404.mn --port {port}")
|
||||
elif name == "nt":
|
||||
http_out = system(f"bore local 8001 --to bore.pub --port {port}")
|
||||
http_out = system(f"bore local 8001 --to jetwork.404.mn --port {port}")
|
||||
|
||||
|
||||
def watch_http(port):
|
||||
|
Loading…
Reference in New Issue
Block a user