Skip to main content

Metasploit MCP Server for AI assistants to interact with Metasploit Framework

Project description

Metasploit MCP Server

A Model Context Protocol (MCP) server for interacting with the Metasploit Framework.

Features

  • List exploits and payloads
  • Generate payloads
  • Run exploits, post modules, and auxiliary modules
  • Manage sessions and listeners
  • Send commands to active sessions

Installation

pip install gc-metasploit

Or install with uvx:

uvx gc-metasploit

Usage

Ensure Metasploit RPC is running:

msfrpcd -P your_password -S -a 127.0.0.1

Then start the MCP server:

# As a command-line tool:
gc-metasploit

# Or as a module:
python -m gc_metasploit.server

Environment variables:

  • MSF_PASSWORD: Metasploit RPC password (default: 'yourpassword')
  • MSF_SERVER: Metasploit RPC server (default: '127.0.0.1')
  • MSF_PORT: Metasploit RPC port (default: '55553')
  • MSF_SSL: Use SSL (default: 'false')
  • PAYLOAD_SAVE_DIR: Directory to save generated payloads (default: '~/payloads')

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gc_metasploit-1.0.0.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gc_metasploit-1.0.0-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file gc_metasploit-1.0.0.tar.gz.

File metadata

  • Download URL: gc_metasploit-1.0.0.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for gc_metasploit-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3a1c2df3631bcb1b2bbc50aaebbd57b5bea08a3931165c3813cb53364a200382
MD5 527c49bc25beb1f7b012b64a00c2a835
BLAKE2b-256 6e2bd82a6f9bac7d7352f4b52be4f96185c02658b67e4de7e52d10b9d534dd40

See more details on using hashes here.

File details

Details for the file gc_metasploit-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: gc_metasploit-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for gc_metasploit-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 031f6d303ebba13c55ae2377bed8af82c7d0c9611d43d9cff838f378335f7628
MD5 ea14e9ca03ad43e99b69ea14ecdc611b
BLAKE2b-256 903a7c0ef267dddbe2125526d8f644b84da67c61ad41a35f05fc311fe5fd664f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page