Coder Social home page Coder Social logo

elon-sarif / mail-spoofer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 6point6/mail-spoofer

0.0 0.0 0.0 1.92 MB

A proof of concept email spoofing tool built on Docker.

License: MIT License

Dockerfile 14.03% Shell 61.90% PHP 0.24% C++ 0.22% NASL 0.84% Lua 22.77%

mail-spoofer's Introduction

Mail Spoofer

One of the biggest mistakes the cybersecurity industry has made is believing SPF, DKIM, and ARC prevent email contents spoofing.

Mail Spoofer is a Proof-of-Concept email spoofing tool built on Docker. We created it to target domains with missing or misconfigured DMARC records.

The tool reduces the effort of setting up PTR, SPF, DKIM and ARC infrastructure. Our guiding principle is to reduce the complexity of spoofing attacks, educate the cybersecurity industry and force organizations into universally applying DMARC records.

Mail Spoofer uses these technologies — Caddy, GoPhish, Postfix, and Rspamd —including Cloudflare API integration to configure DNS records automatically.

For more detailed help, how-to guides and materials check out the Mail Spoofer Wiki.

How-to Run with Docker

1. Download files

Get the latest repository by git clone https://github.com/6point6/mail-spoofer.git.

2. Change the settings.env file

You must change the following options to match your domain name and/or relay host.

For the Return-Path address, leave the username as "no-reply" and only change the domain name. Otherwise, the mail server may start to issue thousands of bounce messages and fill up your log files.

  • You MUST change the root domain name: DOMAIN=example.com
  • You MUST change the tracking subdomain for GoPhish: TRACK_DOMAIN=click.example.com
  • You MUST change the Return-Path address: RETURN_PATH_ADDRESS=[email protected]
  • You MUST change the Cloudflare API for editing DNS: CLOUDFLARE_API_TOKEN={Cloudflare_API_Key}

Warning — SendGrid DOES NOT WORK WITH RECENT API KEYS

If you are using a third-party (SendGrid) then change.

  • Add your SendGrid API Key to: SENDGRID_API_KEY={Sendgrid_API_Key}

3. Run Docker-compose

To start all the containers, go to the repository folder and type: docker-compose up.

To stop all containers, type docker-compose down.

4. Open Gophish web management

The Gophish web management portal will be accessible on https://example.com:3333. You need to log in using the default Gophish credentials.

With versions 0.9.0 and below the default username and password is admin and gophish. On newer versions of Gophish, the password is automatically generated and can be retrieved by docker logs {gophish-container-name}.

Building containers

If you plan to build your containers to modify code or make further improvements to the tool, you need to update the docker-compose.yml. You need to replace the image argument with the build context, and also be sure to include the required directory.

For example:

postfix:
    build:  
        context: ./postfix

You will need to do this for all services you have modified.

Build and start containers

To build and start all the containers, type docker-compose up -d --build. The -d option will daemonize all containers.

Stop all containers

To stop all containers type docker-compose down -v

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.