What is SEToolkit?
The Social-Engineer Toolkit (SET) is an open-source penetration testing framework designed for social engineering attacks. It automates phishing, credential harvesting, exploit delivery, and other attack vectors that exploit human psychology rather than technical vulnerabilities.
Key Features:
- Phishing attacks (website cloning, credential harvesting)
- Spear-phishing (email spoofing)
- Infectious media generation (malicious USB/CD)
- QR code attacks
- PowerShell-based attacks
- Metasploit integration for exploitation
How SEToolkit Works
SEToolkit leverages social engineering tactics to trick users into:
- Entering credentials on fake login pages
- Opening malicious files/links
- Running payloads that grant attacker access
It integrates with Metasploit for payload generation and post-exploitation.
Installation
SEToolkit comes pre-installed in Kali Linux. If missing, install it via:
Bash
sudo apt update
sudo apt install setoolkitAlternatively, clone from GitHub:
Bash
git clone https://github.com/trustedsec/social-engineer-toolkit.git
cd social-engineer-toolkit
pip3 install -r requirements.txt
python3 setup.pyBasic Usage
Starting SEToolkit
Bash
sudo setoolkit(Requires root privileges for some attacks.)
Main Menu Options
Bash
1) Spear-Phishing Attack Vectors
2) Website Attack Vectors
3) Infectious Media Generator
4) Create a Payload and Listener
5) Mass Mailer Attack
6) QRCode Generator Attack
7) Powershell Attack Vectors
8) Third Party Modules Advanced Usage Examples
1. Spear-Phishing Attack (Email Spoofing)
Bash
1) Spear-Phishing Attack Vectors
1) Perform a Mass Email Attack
2) Email attack single email address - Uses Gmail, SMTP, or Sendmail for spoofing.
- Attaches a malicious payload (e.g., PDF exploit).
2. Website Cloning (Credential Harvesting)
Bash
2) Website Attack Vectors
3) Credential Harvester Attack Method
2) Site Cloner - Clones a login page (e.g., Facebook, Gmail).
- Captures credentials entered by victims.
3. Malicious QR Code Attack
Bash
6) QRCode Generator Attack
1) Generate QRCode for a URL - Generates a QR code pointing to a malicious site.
- Useful for physical social engineering.
4. PowerShell Attack (Windows Exploitation)
Bash
7) Powershell Attack Vectors
1) Powershell Alphanumeric Shellcode Injector - Generates obfuscated PowerShell payloads.
- Bypasses AV detection.
5. Infectious USB/DVD Attack
Bash
3) Infectious Media Generator
1) File-Format Exploits - Creates a malicious PDF, Word doc, or executable.
- Auto-executes when opened.
Command-Line Options
Run SEToolkit non-interactively:
Bash
setoolkit --helpCommon flags:
--update→ Update SEToolkit.--config→ Modify configuration.--quick-start→ Bypass intro.
Real-World Use Cases
1. Red Team Assessments
- Simulate phishing attacks to test employee awareness.
- Deliver fake updates to check security policies.
2. Penetration Testing
- Harvest credentials via cloned login pages.
- Test physical security with malicious USBs.
3. Law Enforcement (Ethical Use)
- Track cybercriminals via phishing traps.
- Gather evidence from malicious actors.
Troubleshooting Tips
| Issue | Solution |
|---|---|
| SEToolkit crashes | Run with sudo or reinstall. |
| Phishing emails blocked | Use a different SMTP server (e.g., SendGrid). |
| Cloned site not loading | Check Apache (sudo service apache2 start). |
| Payload not executing | Disable AV on target or use obfuscation. |
| No Metasploit integration | Ensure Metasploit is running (msfconsole). |