Giter Club home page Giter Club logo

drillphish's Introduction

DrillPhish

DrillPhish is a minimal JavaScript library for making phishing drill pages. It watches selected username and password fields for user input, then reports the victim falling for it to a given webhook and either redirects the user to a page of your choice, or displays a popup, without letting them finish typing in their credentials.

Features

  • Highly configurable, yet simple.
  • Easy to deploy.
  • Configurable webhooks, which allow you to receive detailed reports on user interaction with your phishing drill page.
  • Secure by blocking user inputs after they have "fallen for it," and clearing those inputs.
  • Redirects to a page of your choice upon user failure.
  • Resistant to specious replay messages as users navigate back to the original page.
  • Records unique user IDs in persistent storage to enhance non-repudiation.

Usage

Docker / Docker-Compose

The best way to deploy DrillPhish is to do so in the Docker container built from the Dockerfile in this repository, and with Docker Compose for orchestration. To get started, run the following command:

git clone https://github.com/JonathanWilbur/drillphish

Then, with Docker and Docker-Compose installed, run:

docker-compose up

This will start up the "PhishBook" test page. To bring it down, just press Ctrl-C.

To host your own phishing site, you will have to mount your own static files in /usr/share/nginx/html via the docker-compose.yml file. You will also want to configure the environment variables to your liking, though they come with sensible defaults.

The <meta> tags of the phishing page should have the following line added, or an equivalent:

<script src="/drillphish.min.js"></script>

The exact path you use will depend on where you keep drillphish.min.js.

Direct Hosting

You do not need Docker or Docker-Compose to use DrillPhish, however. You can manually edit the settings at the top of ./dist/drillphish.js and include that file in your webpage for the same effect.

Building

Run npm install to install all of the development dependencies.

To build ./dist/drillphish.js, run tsc.

To build ./dist/drillphish.min.js, run webpack.

ToDo

  • Support OAuth 2.0 authentication for webhooks
  • Implement WebAssembly Build I cannot figure out how to get console symbols to work and other problems.
  • Create usage GIF
  • Create AWS API Gateway + Lambda Webhook Example
  • Create Azure Example
  • Create GCE Example
  • Document everything
    • Docker setup

Contact Me

If you would like to suggest fixes or improvements on this library, please just leave an issue on this GitHub page. If you would like to contact me for other reasons, please email me at [email protected] (My GPG Key) (My TLS Certificate). ๐Ÿ—

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.