forked from p15670423/monkey
Agent: Add default return value in MockPuppet.exploit_host()
This commit is contained in:
parent
6c1caa1af4
commit
4b3984dbd7
|
@ -294,7 +294,10 @@ class MockPuppet(IPuppet):
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try:
|
||||||
return successful_exploiters[host][name]
|
return successful_exploiters[host][name]
|
||||||
|
except KeyError:
|
||||||
|
return ExploiterResultData(False, {}, [], f"{name} failed for host {host}")
|
||||||
|
|
||||||
def run_payload(
|
def run_payload(
|
||||||
self, name: str, options: Dict, interrupt: threading.Event
|
self, name: str, options: Dict, interrupt: threading.Event
|
||||||
|
|
Loading…
Reference in New Issue