Agent: Load Log4ShellExploiter into puppet

This commit is contained in:
Shreya Malviya 2022-02-28 14:26:12 +05:30 committed by vakarisz
parent 36e01ae472
commit 896bcfebea
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,7 @@ from infection_monkey.utils.environment import is_windows_os
from infection_monkey.utils.monkey_dir import get_monkey_dir_path, remove_monkey_dir
from infection_monkey.utils.monkey_log_path import get_monkey_log_path
from infection_monkey.utils.signal_handler import register_signal_handlers, reset_signal_handlers
from monkey.infection_monkey.exploit.log4shell import Log4ShellExploiter
logger = logging.getLogger(__name__)
@ -213,6 +214,9 @@ class InfectionMonkey:
puppet.load_plugin(
"HadoopExploiter", exploit_wrapper.wrap(HadoopExploiter), PluginType.EXPLOITER
)
puppet.load_plugin(
"Log4ShellExploiter", exploit_wrapper.wrap(Log4ShellExploiter), PluginType.EXPLOITER
)
puppet.load_plugin("ransomware", RansomwarePayload(), PluginType.PAYLOAD)