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

Method __init__

modules/exploit/metasploit.py:27–41  ·  view source on GitHub ↗
(
        self,
        host: str = "127.0.0.1",
        port: int = 55553,
        username: str = "msf",
        password: str = "",
        ssl: bool = True,
    )

Source from the content-addressed store, hash-verified

25
26 def __init__(
27 self,
28 host: str = "127.0.0.1",
29 port: int = 55553,
30 username: str = "msf",
31 password: str = "",
32 ssl: bool = True,
33 ):
34 self.host = host
35 self.port = port
36 self.username = username
37 self.password = password
38 self.ssl = ssl
39 self.token: str | None = None
40 self.logger = get_logger("exploit.metasploit")
41
42 @property
43 def base_url(self) -> str:
44 protocol = "https" if self.ssl else "http"

Callers

nothing calls this directly

Calls 1

get_loggerFunction · 0.90

Tested by

no test coverage detected