For the complete documentation index, see llms.txt. This page is also available as Markdown.

Phishing using Modlishka

Installation

wget https://github.com/drk1wi/Modlishka/releases/download/v.1.1.0/Modlishka-linux-amd64
chmod +x Modlishka-linux-amd64
./Modlishka-linux-amd64 -h

Usage

Modlishka need a conf file for its usage. it also requires certificate and private key for successfull attack.

Attacking in a Lab Environment.

In a lab environment, you can somehow modify the DNS record of the environment to point any random domain, like `test.programmersecurity.com,` to your local IP address. So when a victim visits test.programmersecurity.com, he will be pointing towards your IP.

Now, here we will use modlishka, so that when a user visits test.programmersecurity.com, they should see the contents of programmersecurity.com. So in this case, Modlishka works as a reverse proxy.

When the victim's traffic hits your IP on port 443 (HTTPS) or 80 (HTTP), Modlishka intercepts it. Instead of hosting a fake static HTML page, Modlishka acts as a dynamic bridge:

  • It establishes a connection to the real backend server (programmersecurity.com).

  • It pulls the legitimate login pages, assets, and scripts in real-time.

  • It serves this authentic content back to the victim.

Generating Certificates

We can generate legitimate ssl certificate as well.

Using awk

The commands below will help you to paste Cert and private key easily in your Modlishka conf file.

Config file

Run Modlishka

you can create your own json config file.

Send emails using swaks

Last updated