DG

dan1t0/gophish-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

22 stars 4 forks 质量 78 趋势 14MIT

一套轻量级的脚本和工具包,用于自动化Gophish活动、简化钓鱼评估并加快MCP安全工作流程。

概览

这个MCP已经经过测试,并且能支持GoPhish版本。如果我收到足够的支持😊,可能会更新它,加入新功能! - 🎯 : 完整CRUD + 高级分析与统计 - 👥 : 管理具搜索功能的目标用户组 - 📧 : 创建、编辑和管理电子邮件模板 - 🌐 : 管理活动的登陆页 - 📮 : 配置邮件发送配置文件 - 👤 : 管理系统用户和管理员 - 📊 : 详细统计、数据导出和全局分析 - 🔍 : 搜索、验证、复制和诊断 在项目目录中创建一个 .env 文件: 将服务器添加到你的MCP配置中(不使用凭证): 重启你的MCP客户端(Claude、光标等) 凭据只在服务器的 .env 文件中配置,不在客户端 JSON 中。autoApprove 中列出的所有工具根据 server.py 中的 API 实现都是只读的。任何创建、更新或删除操作(gophish_create_*、gophish_update_*、gophish_delete_*)都需要手动批准。

概述(AI 翻译)

一个完整的MCP(模型上下文协议)服务器,用于与所有GoPhish API功能交互。

功能 • 安装 • 配置 • 使用 • 工具


** 📝 注:** 这个MCP已经经过测试,并且支持GoPhish版本0.11.0。如果我收到足够的支持😊,可能会更新它加入新功能!


✨ 主要特色

  • 🎯 完整的活动管理:完整CRUD + 高级分析与统计
  • 👥 组管理:管理具有搜索功能的目标用户组
  • 📧 电子邮件模板:创建、编辑和管理电子邮件模板
  • 🌐 着陆页:管理活动的着陆页
  • 📮 SMTP 配置文件:配置电子邮件发送配置文件
  • 👤 用户管理:管理系统用户和管理员
  • 📊 分析与报告:详细统计、数据导出及全球分析
  • 🔍 实用工具:搜索、验证、复制和诊断

🚀 快速启动

安装

  1. 克隆此仓库

  2. 安装依赖:

配置

选项1:.env文件(推荐)

  1. 复制示例文件:

  2. 编辑你的资质 .env

选项2:环境变量

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

🎣 GoPhish MCP Server

A complete MCP (Model Context Protocol) server for interacting with all GoPhish API functionalities.

Features • Installation • Configuration • Usage • Tools


📝 Note: This MCP has been tested and works with GoPhish version 0.11.0. If I receive enough love 😊, I might update it with new capabilities!


✨ Key Features

  • 🎯 Complete Campaign Management: Full CRUD + advanced analysis and statistics
  • 👥 Group Management: Manage target user groups with search capabilities
  • 📧 Email Templates: Create, edit and manage email templates
  • 🌐 Landing Pages: Manage landing pages for campaigns
  • 📮 SMTP Profiles: Configure email sending profiles
  • 👤 User Management: Manage system users and administrators
  • 📊 Analysis and Reports: Detailed statistics, data export and global analysis
  • 🔍 Utility Tools: Search, validation, duplication and diagnostics

🚀 Quick Start

Installation

  1. Clone this repository
git clone 
cd gophish-mcp
  1. Install dependencies:
pip install -e .

Configuration

  1. Copy the example file:
cp env.example .env
  1. Edit .env with your credentials:
GOPHISH_URL=https://your-gophish-server:3333
GOPHISH_API_KEY=your-api-key-here

Option 2: Environment variables

export GOPHISH_URL="https://your-gophish-server:3333"
export GOPHISH_API_KEY="your-api-key"

💻 Usage with Claude, Cursor, VSCode, Kiro

Step 1: Configure Credentials (One time only)

Create a .env file in the project directory:

cp env.example .env
# Edit .env with your real credentials

Step 2: Configure MCP Client

Add the server to your MCP configuration (without credentials):

{
  "mcpServers": {
    "gophish": {
      "command": "python",
      "args": ["/path/to/your/gophish-mcp/server.py"],
      "cwd": "/path/to/your/gophish-mcp",
      "disabled": false,
      "autoApprove": [
        "gophish_get_campaigns",
        "gophish_get_campaign",
        "gophish_get_active_campaigns",
        "gophish_get_completed_campaigns",
        "gophish_get_recent_campaigns",
        "gophish_get_latest_campaign",
        "gophish_get_campaigns_summary",
        "gophish_get_campaign_results",
        "gophish_get_campaign_summary",
        "gophish_get_campaign_analytics",
        "gophish_get_global_analytics",
        "gophish_get_system_status",
        "gophish_search_campaigns",
        "gophish_search_groups",
        "gophish_search_templates",
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "gophish": { "command": "python", "args": ["/path/to/your/gophish-mcp/server.py"], "cwd": "/path/to/your/gophish-mcp", "disabled": false, "autoApprove": [ "gophish_get_campaigns", "gophish_get_campaign", "gophish_get_active_campaigns", "gophish_get_completed_campaigns", "gophish_get_recent_campaigns", "gophish_get_latest_campaign", "gophish_get_campaigns_summary", "gophish_get_campaign_results", "gophish_get_campaign_summary", "gophish_get_campaign_analytics", "gophish_get_global_analytics", "gophish_get_system_status", "gophish_search_campaigns", "gophish_search_groups", "gophish_search_templates", "gophish_get_groups", "gophish_get_templates", "gophish_get_pages", "gophish_get_smtp_profiles", "gophish_get_users", "gophish_get_campaign_by_status", "gophish_get_campaign_by_date_range", "gophish_get_campaign_targets", "gophish_get_campaign_events" ] } } }