forked from p15670423/monkey
docs(swimm): update exercise Add a new configuration setting to the Agent ⚙ AzD8XysWg1BBXCjCDkfq
This commit is contained in:
parent
1c7df88ee4
commit
52019f25c6
|
@ -17,13 +17,13 @@
|
||||||
"type": "snippet",
|
"type": "snippet",
|
||||||
"path": "monkey/infection_monkey/config.py",
|
"path": "monkey/infection_monkey/config.py",
|
||||||
"comments": [],
|
"comments": [],
|
||||||
"firstLineNumber": 124,
|
"firstLineNumber": 103,
|
||||||
"lines": [
|
"lines": [
|
||||||
" exploiter_classes = []",
|
" exploiter_classes = []",
|
||||||
" system_info_collector_classes = []",
|
" system_info_collector_classes = []",
|
||||||
" ",
|
" ",
|
||||||
"* # how many victims to look for in a single scan iteration\r",
|
"* # how many victims to look for in a single scan iteration",
|
||||||
"* victims_max_find = 100\r",
|
"* victims_max_find = 100",
|
||||||
" ",
|
" ",
|
||||||
" # how many victims to exploit before stopping",
|
" # how many victims to exploit before stopping",
|
||||||
" victims_max_exploit = 100"
|
" victims_max_exploit = 100"
|
||||||
|
@ -35,23 +35,23 @@
|
||||||
"comments": [],
|
"comments": [],
|
||||||
"firstLineNumber": 220,
|
"firstLineNumber": 220,
|
||||||
"lines": [
|
"lines": [
|
||||||
" if not self._keep_running or not WormConfiguration.alive:",
|
" if not WormConfiguration.alive:",
|
||||||
" break",
|
" logger.info(\"Marked not alive from configuration\")",
|
||||||
" ",
|
" ",
|
||||||
"* machines = self._network.get_victim_machines(",
|
"* machines = self._network.get_victim_machines(",
|
||||||
"* max_find=WormConfiguration.victims_max_find,",
|
"* max_find=WormConfiguration.victims_max_find,",
|
||||||
"* stop_callback=ControlClient.check_for_stop,",
|
"* stop_callback=ControlClient.check_for_stop,",
|
||||||
"* )",
|
"* )",
|
||||||
" is_empty = True",
|
" for machine in machines:",
|
||||||
" for machine in machines:",
|
" if ControlClient.check_for_stop():",
|
||||||
" if ControlClient.check_for_stop():"
|
" break"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "snippet",
|
"type": "snippet",
|
||||||
"path": "monkey/monkey_island/cc/services/config_schema/internal.py",
|
"path": "monkey/monkey_island/cc/services/config_schema/internal.py",
|
||||||
"comments": [],
|
"comments": [],
|
||||||
"firstLineNumber": 42,
|
"firstLineNumber": 28,
|
||||||
"lines": [
|
"lines": [
|
||||||
" \"title\": \"Monkey\",",
|
" \"title\": \"Monkey\",",
|
||||||
" \"type\": \"object\",",
|
" \"type\": \"object\",",
|
||||||
|
@ -74,13 +74,13 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"symbols": {},
|
"symbols": {},
|
||||||
"file_version": "2.0.1",
|
"file_version": "2.0.3",
|
||||||
"meta": {
|
"meta": {
|
||||||
"app_version": "0.4.9-1",
|
"app_version": "0.6.6-2",
|
||||||
"file_blobs": {
|
"file_blobs": {
|
||||||
"monkey/infection_monkey/config.py": "0bede1c57949987f5c8025bd9b8f7aa29d02a6af",
|
"monkey/infection_monkey/config.py": "8f4984ba6563564343282765ab498efca5d89ba8",
|
||||||
"monkey/infection_monkey/monkey.py": "89d2fa8452dee70f6d2985a9bb452f0159ea8219",
|
"monkey/infection_monkey/monkey.py": "4160a36e0e624404d77526472d51dd07bba49e5a",
|
||||||
"monkey/monkey_island/cc/services/config_schema/internal.py": "1ce1c864b1df332b65e16b4ce9ed533affd73f9c"
|
"monkey/monkey_island/cc/services/config_schema/internal.py": "86318eaf19b9991a8af5de861a3eb085238e17a4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue