Social-Engineer Toolkit (SET)

Social-Engineer Toolkit. Automatise les attaques d'ingénierie sociale : sites de récupération d'identifiants, spear-phishing, envois d'e-mails en masse, supports infectés et exploits navigateur. Social-Engineer Toolkit. Automates social engineering attacks: credential harvesting sites, spear-phishing, mass mailers, infectious media, and browser exploits.

↗ https://github.com/trustedsec/social-engineer-toolkit

Overview

SET (Social-Engineer Toolkit) is a framework for automating social engineering attacks. Created by TrustedSec, it provides point-and-click attacks for web-based credential harvesting, phishing emails, infected USB/DVD payloads, and SMS spoofing.

Launch

sudo setoolkit
# or
sudo set
1) Social-Engineering Attacks
2) Penetration Testing (Fast-Track)
3) Third Party Modules
4) Update SET
99) Exit

Credential Harvesting (Website Clone)

1) Social-Engineering Attacks
→ 2) Website Attack Vectors
→ 3) Credential Harvester Attack Method
→ 2) Site Cloner

Enter URL to clone: https://login.target.com
SET clones the site and starts a listener
Credentials submitted by victims are logged to: /var/www/harvester_*.txt

Spear-Phishing Email

1) Social-Engineering Attacks
→ 1) Spear-Phishing Attack Vectors
→ 1) Perform a Mass Email Attack

Configure:
- Payload (malicious attachment: PDF, Office, etc.)
- Metasploit listener
- Email template
- Target email list

Creating a Malicious PDF/Office Document

1) Social-Engineering Attacks
→ 3) Infectious Media Generator
→ 2) Standard Metasploit Executable

or

1) Social-Engineering Attacks
→ 1) Spear-Phishing Attack Vectors
→ 1) Perform a Mass Email Attack
→ 13) Adobe PDF Embedded EXE Social Engineering

QRCode Attack Generator

1) Social-Engineering Attacks
→ 9) QRCode Generator Attack Vector

Generates a QR code pointing to a malicious URL

PowerShell Injection

1) Social-Engineering Attacks
→ 10) PowerShell Attack Vectors
→ 1) PowerShell Alphanumeric Shellcode Injector

Generates PowerShell one-liner that runs shellcode in memory

HTA (HTML Application) Attack

1) Social-Engineering Attacks
→ 2) Website Attack Vectors
→ 6) Multi-Attack Web Method

Generates HTA file that auto-executes on open

Common SET Attacks Summary

AttackMethod
Credential HarvestClone site, collect POST data
TabnabbingPage changes when tab is inactive
Web JackingRedirect victim via highlighted link
Spear PhishingMalicious attachment via email
Infectious MediaAutorun payload on USB
QR CodeRedirect to malicious URL
PowerShellMemory-based shellcode

Configuration

# /etc/set/set.config key settings
METASPLOIT_PATH=/opt/metasploit
AUTO_MIGRATE=ON              # Auto-migrate Meterpreter on connect
APACHE_SERVER=ON             # Use Apache instead of built-in server
APACHE_DIRECTORY=/var/www/   # Apache web root
WEBATTACK_EMAIL=ON           # Send email with web attack links

Tips

  • SET integrates with Metasploit for automatic payload creation and listener setup
  • The credential harvester works best with exact site clones — test before deploying
  • For phishing emails, consider GoPhish for better tracking and campaign management
  • SET’s PowerShell injection is AMSI-aware — may need custom obfuscation on modern systems
Quick attack reference
Credential Harvesting:
  1 → 2 → 3 → 2 → [enter URL to clone]

Spear Phishing:
  1 → 1 → 1 → [select payload]

Browser Exploit:
  1 → 2 → 2 → [select Metasploit module]

PowerShell:
  1 → 10 → 1 → [configure listener]

Infectious Media:
  1 → 3 → [select payload]

QRCode:
  1 → 9 → [enter target URL]

Vue d’ensemble

SET (Social-Engineer Toolkit) est un framework pour automatiser les attaques d’ingénierie sociale. Créé par TrustedSec, il propose des attaques clé en main pour la récupération d’identifiants basée sur le web, les e-mails de phishing, les payloads infectés sur clé USB/DVD, et le spoofing SMS.

Lancement

sudo setoolkit
# ou
sudo set
1) Social-Engineering Attacks
2) Penetration Testing (Fast-Track)
3) Third Party Modules
4) Update SET
99) Exit

Récupération d’identifiants (clonage de site)

1) Social-Engineering Attacks
→ 2) Website Attack Vectors
→ 3) Credential Harvester Attack Method
→ 2) Site Cloner

Enter URL to clone: https://login.target.com
SET clone le site et démarre un listener
Les identifiants soumis par les victimes sont enregistrés dans : /var/www/harvester_*.txt

E-mail de spear-phishing

1) Social-Engineering Attacks
→ 1) Spear-Phishing Attack Vectors
→ 1) Perform a Mass Email Attack

Configurer :
- Payload (pièce jointe malveillante : PDF, Office, etc.)
- Listener Metasploit
- Modèle d'e-mail
- Liste des cibles e-mail

Création d’un document PDF/Office malveillant

1) Social-Engineering Attacks
→ 3) Infectious Media Generator
→ 2) Standard Metasploit Executable

ou

1) Social-Engineering Attacks
→ 1) Spear-Phishing Attack Vectors
→ 1) Perform a Mass Email Attack
→ 13) Adobe PDF Embedded EXE Social Engineering

Générateur d’attaque QR Code

1) Social-Engineering Attacks
→ 9) QRCode Generator Attack Vector

Génère un QR code pointant vers une URL malveillante

Injection PowerShell

1) Social-Engineering Attacks
→ 10) PowerShell Attack Vectors
→ 1) PowerShell Alphanumeric Shellcode Injector

Génère une commande PowerShell one-liner qui exécute du shellcode en mémoire

Attaque HTA (HTML Application)

1) Social-Engineering Attacks
→ 2) Website Attack Vectors
→ 6) Multi-Attack Web Method

Génère un fichier HTA qui s'exécute automatiquement à l'ouverture

Résumé des attaques SET courantes

AttaqueMéthode
Récupération d’identifiantsCloner un site, collecter les données POST
TabnabbingLa page change quand l’onglet est inactif
Web JackingRediriger la victime via un lien mis en évidence
Spear PhishingPièce jointe malveillante par e-mail
Support infectéPayload en autorun sur clé USB
QR CodeRedirection vers une URL malveillante
PowerShellShellcode en mémoire

Configuration

# Paramètres clés de /etc/set/set.config
METASPLOIT_PATH=/opt/metasploit
AUTO_MIGRATE=ON              # Migration automatique du Meterpreter à la connexion
APACHE_SERVER=ON             # Utiliser Apache au lieu du serveur intégré
APACHE_DIRECTORY=/var/www/   # Racine web d'Apache
WEBATTACK_EMAIL=ON           # Envoyer un e-mail avec les liens d'attaque web

Conseils

  • SET s’intègre avec Metasploit pour la création automatique de payloads et la mise en place du listener
  • Le récupérateur d’identifiants fonctionne mieux avec des clones de site exacts : tester avant de déployer
  • Pour les e-mails de phishing, envisager GoPhish pour un meilleur suivi et une meilleure gestion des campagnes
  • L’injection PowerShell de SET est consciente de l’AMSI : peut nécessiter une obfuscation personnalisée sur les systèmes modernes
Référence rapide des attaques
Credential Harvesting:
  1 → 2 → 3 → 2 → [enter URL to clone]

Spear Phishing:
  1 → 1 → 1 → [select payload]

Browser Exploit:
  1 → 2 → 2 → [select Metasploit module]

PowerShell:
  1 → 10 → 1 → [configure listener]

Infectious Media:
  1 → 3 → [select payload]

QRCode:
  1 → 9 → [enter target URL]