Skip to content

Commit

Permalink
Merge pull request #13 from Ostorlab/fix/port
Browse files Browse the repository at this point in the history
Metasploit fixes: Port & TargetURI
  • Loading branch information
3asm authored Dec 11, 2023
2 parents e7fb8c6 + 4516c7c commit 060e085
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion agent/metasploit_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion ostorlab.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 060e085

Please sign in to comment.