Code Monkey home page Code Monkey logo

makephish's Introduction

makephish

makephish

Software License Go Report Card follow on Twitter

makephish is a proof of concept tool designed to automate the creation of phishing kits based on a specified URL. It is important to note that makephish works exclusively with websites featuring simple login pages using HTML <form> elements.

The primary objective of this project is educational. I created makephish to gain familiarity with Go programming. Consequently, the code may lack optimal organization and quality. Additionally, this project aims to illustrate the ease with which a website can be cloned and repurposed to create phishing pages.

Install

After cloning the repository, navigate to the project directory and build the executable:

go build -o makephish cmd/makephish/*.go

This will create an executable called makephish. You can run the executable with the following flags:

Usage

  • -url: URL of login page
  • -ua: User Agent string, by defefault "Mozilla/5.0 (X11; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0"
  • -php: Path to the PHP file to be used, by default "phish.php"
  • -kits: Path used to store the kits, by default "./kits"

Example

$ ./makephish -url "https://github.com/login/"

           _           _   _     _
 _____  __| |_ ___ ___| |_|_|___| |_
|     ||. | '_| -_| . |   | |_ -|   |
|_|_|_|___|_|_|___|  _|_|_|_|___|_|_|
                  |_|


Navigating to https://github.com/login using the following User agent string: Mozilla/5.0 (X11; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0
Parameters found in the form of the given URL:
 - post action = /session
 - login attribute name = login
 - password attribute name = password
HTML file patched and saved in kits/github.com
PHP file saved in kits/github.com

[*] operation completed! kit created for https://github.com/login and saved in kits/github.com

$ tree kits/github.com
kits/github.com
├── assets
│   ├── behaviors-afe1a202.js
│   ├── chunk-frameworks-81b94425.js
│   ├── chunk-vendor-4d97ead9.js
│   ├── environment-f0adafbf.js
│   ├── frameworks-052cbe13e4b93c9b8358a7178885c1a0.css
│   ├── github-f19f9fd1ee83046f59cf1815d967f4d0.css
│   ├── sessions-45084fea.js
│   ├── settings-c44d66a8.js
│   ├── site-ca634d80a8a0df2203c34902267667dc.css
│   └── unsupported-a85b1284.js
├── index.html
└── phish.php

1 directory, 12 files

$ cd kits/github.com
$ php -S localhost:8000
[Sun Jan 10 12:10:54 2021] PHP 7.4.14 Development Server (http://localhost:8000) started

At this point, if you go to localhost:8000 you should find something like this:

fakeGH

If you enter some random credentials, you will note that you will be redirected to the real github.com login page:

realGH

If you didn't modify the phish.php file, you can find the credentials you just entered in localhost:8000/log:

logs

PHP capabilities

A simple PHP file is provided in this repo, but you can easily adjust it to your needs. By default, the file will save username, password, User Agent string and IP of the victim in a log file, you can disable this option by removing the content of the variable log. You can also specify an email address to send these details via email everytime a new victim enters the credentials.

$exfilemail = ""; // -> enter an email address to send the details via email
$logpath = "log"; // -> make this variable empty to disable logging feature

makephish's People

Contributors

andpalmier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

makephish's Issues

make makephish broken

I do

make makephish

and it says

/bin/sh: 1: go: not found
make: *** [makefile:4: makephish] Error 127

ERROR

I try to install the tool and I get this error

ERROR:
┌──(root💀kali)-[/home/kali/TOOLS/makephish]
└─# make makephish
cmd/makephish/makephish.go:15:2: missing go.sum entry for module providing package github.com/gocolly/colly; to add:
go mod download github.com/gocolly/colly
make: *** [makefile:4: makephish] Error 1

username and password is null

after login from localhost
i check log , username and password not found here

Username/Email:
Password:
IP:
Date: Sat Dec 11, 2021 2:42 pm
User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36

=============+=============
Username/Email:
Password:
IP:
Date: Sat Dec 11, 2021 2:44 pm
User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36

Question

Hello, I would like to know is it possible to install this tool on Windows? Or does it have to be Linux?

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.