MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / local_port_open

Function local_port_open

Scripts/Developer Base/Free Internet.py:344–349  ·  view source on GitHub ↗
(host: str, port: int, timeout: float = 0.5)

Source from the content-addressed store, hash-verified

342
343
344def local_port_open(host: str, port: int, timeout: float = 0.5) -> bool:
345 try:
346 with socket.create_connection((host, port), timeout=timeout):
347 return True
348 except Exception:
349 return False
350
351
352def tor_binary() -> Optional[str]:

Callers 1

tor_runningFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected