(
self,
host: str = "127.0.0.1",
port: int = 55553,
username: str = "msf",
password: str = "",
ssl: bool = True,
)
| 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" |
nothing calls this directly
no test coverage detected