This project demonstrates how to build a GoPhish-style email campaign system using n8n Cloud / Self-hosted n8n, Google Sheets, SMTP, and Webhooks.
Use cases:
- Security awareness campaigns
- Internal phishing simulations
- Email click tracking
- Marketing or compliance testing (authorized only)
- Email Campaign Workflow (JSON)
- Reads users from Google Sheets
- Generates unique tracking URLs
- Sends HTML emails via SMTP
- Email Click Tracker Workflow (JSON)
- Webhook-based click tracking
- Normalizes click data
- Logs clicks to Google Sheets
- Redirects user after click
/ βββ email_campaign_workflow.json βββ email_click_tracker_workflow.json βββ README.html
- n8n (Cloud or Self-hosted)
- Google Sheets account
- SMTP credentials (Gmail, SES, Zoho, etc.)
email | name | status | last_sent
email | campaign_id | tracking_id | event | ip | user_agent | timestamp
- Open n8n β Workflows
- Click Import
- Import the JSON files from this repository
- Update credentials (SMTP & Google Sheets)
- Activate the workflows
- Email contains a unique tracking URL
- User clicks the link
- Webhook receives query parameters
- Click data is normalized
- Data is appended to Google Sheets
- User is redirected to a landing page
Important:
/webhook-test/β Debugging only/webhook/β Production (emails must use this)- Workflow must be ACTIVE for production
This project is intended for authorized testing, education, and awareness only.
Do not use this system for:
Do not use this system for:
- Unauthorized phishing
- Fraud or impersonation
- Violating privacy laws
- β Unique per-user tracking links
- β Google Sheets as database
- β SMTP-based email delivery
- β Cloud-compatible (no Data Store)
- β Redirect after click
- β GoPhish-style architecture
- Email open tracking (pixel)
- Duplicate click prevention
- Campaign dashboards
- Auto follow-up emails
Available Our Hacking Course
---
Built with β€οΈ using n8n
Shared for learning & awareness purposes.
