Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metasploit fixes: Port & TargetURI #13

Merged
merged 2 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading