着手去做这件事时候思路很乱,为此也是踩了不少坑,问了很多师傅(得重点谢谢志强大佬),看了一些文章,然后水了这篇文,错误就不写了,踩得坑会提示一下。
wget https://github.com/gophish/gophish/releases/download/v0.11.0/gophish-v0.11.0-linux-64bit.zipunzip gophish-v0.11.0-linux-64bit.zip -d gophish
chmod -R 777 gophishcd gophishls
-anp 看下端口是否冲突,否则启动时候会报错
vim config.json
./gophish
vi /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE="Ethernet"PROXY_METHOD="none"BROWSER_ONLY="no"BOOTPROTO="static"DEFROUTE="yes"IPV4_FAILURE_FATAL="no"IPV6INIT="yes"IPV6_AUTOCONF="yes"IPV6_DEFROUTE="yes"IPV6_FAILURE_FATAL="no"IPV6_ADDR_GEN_MODE="stable-privacy"NAME="ens33"UUID="1f39ba1e-e095-48dd-ab0e-81cf76f2103f"DEVICE="ens33"ONBOOT="yes"IPADDR=192.168.31.213 /*静态地址*/NETMASK=255.255.255.0GATEWAY=192.168.31.1 /*网关,即所使用的网卡地址*/DNS1=8.8.8.8ZONE=public~
vi /etc/sysconfig/selinux把SELINUX=enforcing 改为 SELINUX=disabled~
yum -y install gitcd /rootgit clone https://gitee.com/laowu5/EwoMail.gitchmod -R 777 EwoMailcd /root/EwoMail/install
sh ./start.sh xxxx.com
yum -y remove dovecot.x86_64
访问地址(将IP更换成你的IP即可)邮箱管理后台:http://IP:8010 (默认账号admin,密码ewomail123)ssl端口 https://IP:7010web邮件系统:http://IP:8000ssl端口 https://IP:7000域名解析完成后,可以用子域名访问,例如下面http://mail.xxx.com:8000 (http)https://mail.xxx.com:7000 (ssl)web数据库管理页面:https://IP:8020/
vim /etc/hosts127.0.0.1 mail.xxxx.com smtp.xxxx.com imap.xxxx.com
vim /ewomail/www/ewomail-admin/core/config.php
sudo su cd ~git clone https://github.com/makdosx/mip22.gitchmod -R 777 mip22 cd mip22bash mip22.sh
/*不得不说一下我的血泪史,我一开始用gophish克隆网页,无数网站中挑了一个合适的网页克隆,然后调完内容调样式,有的还能用他的样式,有的还得自己写,调完样式换图片,最后咔咔上线,点击上传发现没数据,师从百度,一问发现是表单问题,行我改,改完发现以前的样式不能用了,还得从头再来,我 **。
我们的搭建与调试就结束了
wget https://github.com/fatedier/frp/releases/download/v0.42.0/frp_0.42.0_linux_amd64.tar.gz
tar zxvf frp_0.42.0_linux_amd64.tar.gz
vim frp_0.42.0_linux_amd64/frps.ini [common]
bind_addr = 0.0.0.0
bind_port = 7000
bind_udp_port = 7001
kcp_bind_port = 7000
vhost_http_port = 80
vhost_https_port = 443
dashboard_addr = 0.0.0.0
dashboard_port = 7777 /*管理页面*/
dashboard_user = admin
dashboard_pwd = [email protected]#$QWER....
./frps -c frps.ini
[common]
server_addr = 你的vps
server_port = 7000
[smtp]
type = tcp
local_ip = 127.0.0.1
local_port = 25
remote_port = 9999 /*大于1000的端口不冲突的都可以*/
[web1]
type = http
local_ip = 127.0.0.1
local_port = 8010
remote_port = 8010
custom_domains=mail.xxx.com:8010 /*邮件服务器,xxx.com是你的邮件服务器域名*/
[web2]
type = http
local_ip = 127.0.0.1
local_port = 8000
remote_port = 8000
custom_domains=mail.xxx.com:8000
./frpc -c frpc.ini
好文推荐