MCPcopy Create free account
hub / github.com/TheSecuredAnalyst/security-suite / base_url

Method base_url

modules/exploit/metasploit.py:44–46  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

42 @property
43 def base_url(self) -> str:
44 protocol = "https" if self.ssl else "http"
45 return f"{protocol}://{self.host}:{self.port}/api"
46
47 async def connect(self) -> bool:
48 """Connect and authenticate to Metasploit RPC."""
49 try:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected