Gophish 简介
Gophish 是一款功能强大且操作便捷的开源网络钓鱼框架,专为协助渗透测试人员与企业开展真实的网络钓鱼模拟而设计。它基于 Go 语言编写,具备低系统依赖特性,能够在多种操作系统上运行,涵盖 Linux、Windows、Mac OS 等主流系统。
程序下载地址:Releases · gophish/gophish
文档:Introduction | Gophish User Guide
Gophish 功能特性
Gophish 技术优势
安装部署
Gophish安装部署较为简单,可以参考官方文档描述:安装 |Gophish 用户指南
下面简单列出步骤:
(1)下载安装包:
从Releases · gophish/gophish 下载对应的安装包。本文以Rocky Linux 9操作系统为例,Gophish版本为v0.12.1。
(2)解压安装包:
unzip gophish-v0.12.1-linux-64bit.zip
(3)配置初始admin账号密码环境变量
export GOPHISH_INITIAL_ADMIN_PASSWORD=”admin@123″
(4)通过config.json修改监听的端口等信息
示例配置如下:
{ "admin_server": { "listen_url": "0.0.0.0:3333", "use_tls": true, "cert_path": "gophish.crt", "key_path": "gophish.key", "trusted_origins": [] }, "phish_server": { "listen_url": "0.0.0.0:80", "use_tls": false, "cert_path": "example.crt", "key_path": "example.key" }, "db_name": "sqlite3", "db_path": "gophish.db", "migrations_prefix": "db/db_", "contact_address": "", "logging": { "filename": "", "level": "" } }
(5)启动服务
切换到程序目录,执行gophish程序即可启动服务(注意赋予gophish可执行权限)。
[root@localhost gophish-v0.12.1]# ./gophish time="2024-12-26T14:15:09+08:00" level=warning msg="No contact address has been configured." time="2024-12-26T14:15:09+08:00" level=warning msg="Please consider adding a contact_address entry in your config.json" goose: no migrations to run. current version: 20220321133237 time="2024-12-26T14:15:09+08:00" level=info msg="Starting IMAP monitor manager" time="2024-12-26T14:15:09+08:00" level=info msg="Starting new IMAP monitor for user admin" time="2024-12-26T14:15:09+08:00" level=info msg="Starting admin server at https://0.0.0.0:3333" time="2024-12-26T14:15:09+08:00" level=info msg="Starting phishing server at http://0.0.0.0:80" time="2024-12-26T14:15:09+08:00" level=info msg="Background Worker Started Successfully - Waiting for Campaigns"
上面给出了admin管理界面的登录方式为https://xxx.xxx.xxx.xxx:3333,钓鱼页面访问方式 http://xxx.xxx.xxx.xxx 。
Gophish 界面预览
用户和组设置界面
钓鱼邮件模板配置界面
钓鱼登录页面配置界面
发信账号配置界面
钓鱼演练任务配置界面
演练任务统计界面