forked from p34709852/monkey
Removed should exploit network machines config param - same will be achieved by removing all exploiters.
This commit is contained in:
parent
f70b2240e1
commit
eb4056ab7f
|
@ -196,7 +196,6 @@ class InfectionMonkey(object):
|
||||||
LOG.debug("Default server for machine: %r set to %s" % (machine, machine.default_server))
|
LOG.debug("Default server for machine: %r set to %s" % (machine, machine.default_server))
|
||||||
|
|
||||||
# Order exploits according to their type
|
# Order exploits according to their type
|
||||||
if WormConfiguration.should_exploit:
|
|
||||||
self._exploiters = sorted(self._exploiters, key=lambda exploiter_: exploiter_.EXPLOIT_TYPE.value)
|
self._exploiters = sorted(self._exploiters, key=lambda exploiter_: exploiter_.EXPLOIT_TYPE.value)
|
||||||
host_exploited = False
|
host_exploited = False
|
||||||
for exploiter in [exploiter(machine) for exploiter in self._exploiters]:
|
for exploiter in [exploiter(machine) for exploiter in self._exploiters]:
|
||||||
|
|
|
@ -331,13 +331,6 @@ SCHEMA = {
|
||||||
"title": "General",
|
"title": "General",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"should_exploit": {
|
|
||||||
"title": "Exploit network machines",
|
|
||||||
"type": "boolean",
|
|
||||||
"default": True,
|
|
||||||
"attack_techniques": ["T1210"],
|
|
||||||
"description": "Determines if monkey should try to safely exploit machines on the network"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"credentials": {
|
"credentials": {
|
||||||
|
|
Loading…
Reference in New Issue