From bf283ab586863a2d64f75b18ffd3e97ee4353bfd Mon Sep 17 00:00:00 2001 From: giveen Date: Wed, 14 Jan 2026 14:03:08 -0700 Subject: [PATCH] mcp: add MSF env defaults to setup templates; ensure msfrpcd auto-start via setup --- scripts/setup.ps1 | 22 ++++++++++++++++++++++ scripts/setup.sh | 13 +++++++++++++ 2 files changed, 35 insertions(+) diff --git a/scripts/setup.ps1 b/scripts/setup.ps1 index fa8397e..7bfbb59 100644 --- a/scripts/setup.ps1 +++ b/scripts/setup.ps1 @@ -81,6 +81,28 @@ PENTESTAGENT_MODEL=gpt-5 # Settings PENTESTAGENT_DEBUG=false +# Auto-launch vendored HexStrike on connect (true/false) +# If true, the MCP manager will attempt to start vendored HexStrike servers +# that are configured or detected under `third_party/hexstrike`. +LAUNCH_HEXTRIKE=false +# Auto-launch vendored Metasploit MCP on connect (true/false) +# If true, the MCP manager will attempt to start vendored MetasploitMCP +# servers that are configured or detected under `third_party/MetasploitMCP`. +LAUNCH_METASPLOIT_MCP=false + +# Metasploit RPC (msfrpcd) settings — used when LAUNCH_METASPLOIT_MCP=true +# Set MSF_PASSWORD to enable automatic msfrpcd startup. Example: +# MSF_USER=msf +# MSF_PASSWORD=change_me +# MSF_SERVER=127.0.0.1 +# MSF_PORT=55553 +# MSF_SSL=false +MSF_USER=msf +MSF_PASSWORD= +MSF_SERVER=127.0.0.1 +MSF_PORT=55553 +MSF_SSL=false + # Agent max iterations (regular agent + crew workers, default: 30) # PENTESTAGENT_AGENT_MAX_ITERATIONS=30 diff --git a/scripts/setup.sh b/scripts/setup.sh index e74ecb6..0768d8f 100644 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -84,6 +84,19 @@ LAUNCH_HEXTRIKE=false # servers that are configured or detected under `third_party/MetasploitMCP`. LAUNCH_METASPLOIT_MCP=false +# Metasploit RPC (msfrpcd) settings — used when LAUNCH_METASPLOIT_MCP=true +# Set MSF_PASSWORD to enable automatic msfrpcd startup. Example: +# MSF_USER=msf +# MSF_PASSWORD=change_me +# MSF_SERVER=127.0.0.1 +# MSF_PORT=55553 +# MSF_SSL=false +MSF_USER=msf +MSF_PASSWORD= +MSF_SERVER=127.0.0.1 +MSF_PORT=55553 +MSF_SSL=false + # Agent max iterations (regular agent + crew workers, default: 30) # PENTESTAGENT_AGENT_MAX_ITERATIONS=30