From 76c53575b77374fa02474a7c46e95f35df074985 Mon Sep 17 00:00:00 2001 From: ostorlab Date: Mon, 11 Dec 2023 18:03:56 +0100 Subject: [PATCH 1/2] - Fix default port metasploit - Add default TARGETURI when it's missing --- agent/metasploit_agent.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/agent/metasploit_agent.py b/agent/metasploit_agent.py index 2676c92..41a3531 100644 --- a/agent/metasploit_agent.py +++ b/agent/metasploit_agent.py @@ -238,10 +238,12 @@ def _set_module_args( ) if "VHOST" in selected_module.options: selected_module["VHOST"] = vhost - if "RPORT" in selected_module.missing_required: + if "RPORT" in selected_module.options: selected_module["RPORT"] = rport if "SSL" in selected_module.options: selected_module["SSL"] = is_ssl + if "TARGETURI" in selected_module.missing_required: + selected_module["TARGETURI"] = "/" for arg in options: arg_name = arg["name"] if arg_name in selected_module.options: From 4516c7cb069ce905d359ccbca4d7f0aad9b33f78 Mon Sep 17 00:00:00 2001 From: ostorlab Date: Mon, 11 Dec 2023 18:09:08 +0100 Subject: [PATCH 2/2] Bump version --- ostorlab.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ostorlab.yaml b/ostorlab.yaml index ffdb8b6..300d5ad 100644 --- a/ostorlab.yaml +++ b/ostorlab.yaml @@ -1,6 +1,6 @@ kind: Agent name: metasploit -version: 0.0.5 +version: 0.0.6 description: | This repository is an implementation of [Ostorlab Agent](https://pypi.org/project/ostorlab/) for the [Metasploit Framework](https://github.com/rapid7/metasploit-framework) by Rapid7. ## Getting Started