Code Monkey home page Code Monkey logo

mail_fishing's Introduction

简介


本项目是基于thinkphp写的一个内部钓鱼网站系统。用来测试甲方公司内部钓鱼,请勿用于非法用途。

部署方法


支持windowslinuxMAC

克隆项目到本地

git clone https://github.com/MSG-maniac/mail_fishing.git

部署目录为项目根目录的public目录

具体参考thinkphp部署方法

https://www.kancloud.cn/manual/thinkphp5/336757

举个栗子


如果当前终端在/usr/share/nginx目录下

执行命令

git clone https://github.com/MSG-maniac/mail_fishing.git

nginx配置文件如下

server {
    #默认http请求自动跳转到https
    listen       80;
    server_name oa.xxx.com;
    rewrite ^(.*)$  https://$host$1 permanent;
}

server {
    listen      443 ssl;
    server_name oa.xxx.com;

    #需要配置证书
    ssl on;
    ssl_certificate     /opt/ssl/oa.crt;
    ssl_certificate_key /opt/ssl/oa.key;

    location / {
        root   /usr/share/nginx/mail_fishing/public;
        index index.php  index.html index.htm;
        if (!-e $request_filename) {
                rewrite  ^(.*)$  /index.php?s=/$1  last;
                break;
        }
    }


    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    location ~ \.php$ {
        root           /usr/share/nginx/mail_fishing/public;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME   $document_root$fastcgi_script_name;
        include        fastcgi_params;
    }
}

模板文件替换

文件路径

application\index\view\index.html

模板内需要包含一个html的form表单

默认是一个极简内容页,新模板一定要包含:

<form action="/index/index/input" method="post">

仿制页面时候请把静态文件放入到目录,或者自定义目录:

public\static

配置数据库

数据库文件在根目录,导入即可:

mail.sql

配置数据库连接:

文件路径:
config/database.php

默认如下
    // 数据库类型
    'type'            => 'mysql',
    // 服务器地址
    'hostname'        => '127.0.0.1',
    // 数据库名
    'database'        => 'mail',
    // 用户名
    'username'        => 'root',
    // 密码
    'password'        => '',

部署完成

到此部署完成,可以找邮箱开始给公司同事发邮件了。

中招查看

http://oa.xxx.com/superhack/index/search?key=fcvxz657o54ewn123cvb432lg

自己替换域名

mail_fishing's People

Contributors

lostmaniac avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.