From 150cfbcc97d71ce47b28215d503f2cda7a3f1c5d Mon Sep 17 00:00:00 2001 From: Wolfgang Hotwagner Date: Wed, 26 Nov 2025 17:39:26 +0100 Subject: [PATCH] Fixed an issue with numeric metasploit-options Currently numeric metasploit-options should be automatically translated to integers. But after translating them to integers the next line tries .lower() them. This leads to errors, since integers can't be lowered as strings. --- src/attackmate/executors/metasploit/msfexecutor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/attackmate/executors/metasploit/msfexecutor.py b/src/attackmate/executors/metasploit/msfexecutor.py index 6c7f9ed..89dc516 100644 --- a/src/attackmate/executors/metasploit/msfexecutor.py +++ b/src/attackmate/executors/metasploit/msfexecutor.py @@ -88,6 +88,7 @@ def prepare_exploit(self, command: MsfModuleCommand): for option, setting in command.options.items(): if setting.isnumeric(): exploit[option] = int(setting) + continue if setting.lower() in ['true', 'false', '1', '0', 'y', 'n', 'yes', 'no']: exploit[option] = CmdVars.variable_to_bool(option, setting) else: