MCPcopy
hub / github.com/Pennyw0rth/NetExec / options

Method options

nxc/modules/test_connection.py:16–24  ·  view source on GitHub ↗

HOST Host to ping

(self, context, module_options)

Source from the content-addressed store, hash-verified

14 category = CATEGORY.ENUMERATION
15
16 def options(self, context, module_options):
17 """HOST Host to ping"""
18 self.host = None
19
20 if "HOST" not in module_options:
21 context.log.fail("HOST option is required!")
22 exit(1)
23
24 self.host = module_options["HOST"]
25
26 def on_admin_login(self, context, connection):
27 # $ProgressPreference = 'SilentlyContinue' prevents the "preparing modules for the first time" error

Callers

nothing calls this directly

Calls 1

failMethod · 0.80

Tested by

no test coverage detected