Skip to content

Commit

Permalink
- Fix default port metasploit
Browse files Browse the repository at this point in the history
- Add default TARGETURI when it's missing
  • Loading branch information
ostorlab committed Dec 11, 2023
1 parent e7fb8c6 commit 76c5357
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 76c5357

Please sign in to comment.