MCPcopy Create free account
hub / github.com/GH05TCREW/MetasploitMCP / update_runoption

Function update_runoption

MetasploitMCP.py:888–892  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

886
887 # Define a function to update an individual runoption
888 async def update_runoption(key, value):
889 if value is None:
890 return
891 await asyncio.to_thread(lambda k=key, v=value: payload.runoptions.__setitem__(k, v))
892 logger.debug(f"Set runoption {key}={value}")
893
894 # Set generation options individually
895 await update_runoption('Format', format_type)

Callers 1

generate_payloadFunction · 0.85

Calls 1

__setitem__Method · 0.80

Tested by

no test coverage detected