instructions.md Copy instructions---
name: performing-red-team-phishing-with-gophish-3d4c6d9d0589
description: Automate GoPhish phishing simulation campaigns using the Python gophish
library. Creates email templates with tracking pixels, configures SMTP sending profiles,
builds target groups from CSV, launches campaigns, and analyzes results including
open rates, click rates, and credential submission statistics for security awareness
assessment.
domain: cybersecurity
subdomain: security-operations
tags:
- red-teaming
- phishing-simulation
- gophish
- social-engineering
- campaign-automation
- security-awareness
version: '1.0'
author: mahipal
license: Apache-2.0
nist_csf:
- DE.CM-01
- RS.MA-01
- GV.OV-01
- DE.AE-02
mitre_attack:
- T1078
- T1190
- T1059
- T1003
- T1110
---
## When to Use
- When conducting security assessments that involve performing red team phishing with gophish
- When following incident response procedures for related security events
- When performing scheduled security testing or auditing activities
- When validating security controls through hands-on testing
## Prerequisites
- Familiarity with security operations concepts and tools
- Access to a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities
## Instructions
1. Install dependencies: `pip install gophish requests`
2. Deploy GoPhish server and obtain an API key from Settings.
3. Use the Python gophish library to automate campaign setup:
- Create email templates with HTML body and tracking
- Configure SMTP sending profiles
- Import target groups from CSV
- Create landing pages for credential capture
- Launch and monitor campaigns
4. Analyze campaign results: opens, clicks, submitted data, reported.
```bash
# For authorized penetration testing and lab environments only
python scripts/agent.py --gophish-url https://localhost:3333 --api-key <key> --campaign-name "Q1 Awareness" --output phishing_report.json
```
## Examples
### Create Campaign via API
```python
from gophish import Gophish
from gophish.models import Campaign, Template, Group, SMTP, Page
api = Gophish("api_key", host="https://localhost:3333", verify=False) # Self-signed cert on localhost lab
campaign = Campaign(name="Q1 Test", groups=[Group(name="Sales Team")],
template=Template(name="IT Password Reset"), smtp=SMTP(name="Internal SMTP"),
page=Page(name="Credential Page"))
api.campaigns.post(campaign)
```
---
name: performing-red-team-phishing-with-gophish-3d4c6d9d0589
description: Automate GoPhish phishing simulation campaigns using the Python gophish
library. Creates email templates with tracking pixels, configures SMTP sending profiles,
builds target groups from CSV, launches campaigns, and analyzes results including
open rates, click rates, and credential submission statistics for security awareness
assessment.
domain: cybersecurity
subdomain: security-operations
tags:
- red-teaming
- phishing-simulation
- gophish
- social-engineering
- campaign-automation
- security-awareness
version: '1.0'
author: mahipal
license: Apache-2.0
nist_csf:
- DE.CM-01
- RS.MA-01
- GV.OV-01
- DE.AE-02
mitre_attack:
- T1078
- T1190
- T1059
- T1003
- T1110
---
## When to Use
- When conducting security assessments that involve performing red team phishing with gophish
- When following incident response procedures for related security events
- When performing scheduled security testing or auditing activities
- When validating security controls through hands-on testing
## Prerequisites
- Familiarity with security operations concepts and tools
- Access to a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities
## Instructions
1. Install dependencies: `pip install gophish requests`
2. Deploy GoPhish server and obtain an API key from Settings.
3. Use the Python gophish library to automate campaign setup:
- Create email templates with HTML body and tracking
- Configure SMTP sending profiles
- Import target groups from CSV
- Create landing pages for credential capture
- Launch and monitor campaigns
4. Analyze campaign results: opens, clicks, submitted data, reported.
```bash
# For authorized penetration testing and lab environments only
python scripts/agent.py --gophish-url https://localhost:3333 --api-key <key> --campaign-name "Q1 Awareness" --output phishing_report.json
```
## Examples
### Create Campaign via API
```python
from gophish import Gophish
from gophish.models import Campaign, Template, Group, SMTP, Page
api = Gophish("api_key", host="https://localhost:3333", verify=False) # Self-signed cert on localhost lab
campaign = Campaign(name="Q1 Test", groups=[Group(name="Sales Team")],
template=Template(name="IT Password Reset"), smtp=SMTP(name="Internal SMTP"),
page=Page(name="Credential Page"))
api.campaigns.post(campaign)
```
Install this skill Download the complete skill package or use the command below.
Your agent OpenClaw Your shell macOS / Linux Windows PowerShell Run from your active OpenClaw workspace (default: ~/.openclaw/workspace).
mkdir -p "skills" && archive=$(mktemp) && curl -fSL "https://megaaihub.com/downloads/performing-red-team-phishing-with-gophish-3d4c6d9d0589.zip" -o "$archive" && unzip -o "$archive" -d "skills" && rm -f "$archive" Copy install command Download skill ZIPOriginal SKILL.md, bundled files, source attribution, and license notices. Reload your agent if it does not discover the new skill.
LICENSE Apache-2.0
ACCESS Free / no account
AgentSkill.sh import security-engineer
Download MarkdownSource & author Creator / publisher 26zl Project source Original project Source repository record
Open issues and PRs 3
Repository size ~14,145 KB
Default branch main
Created Feb 10, 2026
Repository updated Nov 9, 2026
Last push Nov 9, 2026
Language Python
License MIT
Topics agent-skills · ai-agent · blue-team · bug-bounty · claude-code · ctf-tools · cybersecurity · dfir · ethical-hacking · installer · kali-linux · kata-containers
Repository-wide figures from GitHub, checked Nov 11, 2026. Stars are endorsements, not a Mega AI Hub quality rating. Repository size is GitHub’s estimate; a ZIP download may differ.
Classification Fields of work Development & Engineering Marketing Sales Roles Customer Success Manager Marketing Analyst Security Engineer Skill specialties API Tools & integrations Gophish Country applicability Country not specified Creator / publisher 26zl Source catalog labels. Country labels describe applicability, not creator location.