# Social-Engineer Toolkit

> A framework for authorised social-engineering tests: credential-harvesting pages, phishing campaigns and payload delivery.

- Category: Exploitation
- Commands: 75
- Page: https://terminal.rokibulroni.com/tool/exploitation/setoolkit
- Homepage: https://github.com/trustedsec/social-engineer-toolkit
- Documentation: https://github.com/trustedsec/social-engineer-toolkit#readme
- Tags: social engineering, phishing

## Install

- apt: `sudo apt install set`

## Toolkit Startup

### sudo setoolkit

```bash
sudo setoolkit
```

Launches the Social Engineer Toolkit interactive console with root privileges.

### seupdate

```bash
seupdate
```

Updates the Social Engineer Toolkit to the latest version from the repository.


## Configuration

### vi /etc/setoolkit/set.config

```bash
vi /etc/setoolkit/set.config
```

Opens the main configuration file to adjust Metasploit paths, email providers, and Apache settings.

### METASPLOIT_PATH=/opt/metasploit/apps/pro/msf3

```bash
METASPLOIT_PATH=/opt/metasploit/apps/pro/msf3
```

Example:

```bash
Edit inside set.config
```

Manually sets the path to the Metasploit Framework if not detected automatically.

### SENDMAIL=ON

```bash
SENDMAIL=ON
```

Example:

```bash
Edit inside set.config
```

Enables Sendmail usage for spoofing emails instead of using a Gmail/SMTP relay.

### APACHE_SERVER=ON

```bash
APACHE_SERVER=ON
```

Example:

```bash
Edit inside set.config
```

Configures SET to use the system Apache server instead of the built-in Python Python web server.


## Menu Navigation

### 1

```bash
1
```

Example:

```bash
Menu Selection: 1
```

Selects the 'Social-Engineering Attacks' menu, the core hub for most attack vectors.

### 2

```bash
2
```

Example:

```bash
Menu Selection: 2
```

Selects 'Penetration Testing (Fast-Track)', focusing on exploit delivery rather than social engineering.

### 3

```bash
3
```

Example:

```bash
Menu Selection: 3
```

Selects 'Third Party Modules', allowing access to addons like RATTE or remote administration tools.


## Social Engineering Attacks

### 1 -> 1

```bash
1 -> 1
```

Example:

```bash
Menu Selection: 1 -> 1
```

Navigates to Spear-Phishing Attack Vectors for targeted email campaigns.


## Spear Phishing

### 1 -> 1 -> 1

```bash
1 -> 1 -> 1
```

Example:

```bash
Menu Selection: 1 -> 1 -> 1
```

Initiates a Mass Email Attack using a predefined template or custom body.

### 1 -> 1 -> 2

```bash
1 -> 1 -> 2
```

Example:

```bash
Menu Selection: 1 -> 1 -> 2
```

Starts a FileFormat Payload attack to create malicious attachments (PDF, Word) for emails.

### 1 -> 1 -> 3

```bash
1 -> 1 -> 3
```

Example:

```bash
Menu Selection: 1 -> 1 -> 3
```

Launches a Social-Engineering Template attack to use pre-written credible email scenarios.


## Website Attack Vectors

### 1 -> 2

```bash
1 -> 2
```

Example:

```bash
Menu Selection: 1 -> 2
```

Navigates to Website Attack Vectors where malicious links and site cloning tools reside.

### 1 -> 2 -> 1

```bash
1 -> 2 -> 1
```

Example:

```bash
Menu Selection: 1 -> 2 -> 1
```

Selects the Java Applet Attack Method (Legacy) for testing outdated browser plugins.

### 1 -> 2 -> 2

```bash
1 -> 2 -> 2
```

Example:

```bash
Menu Selection: 1 -> 2 -> 2
```

Selects the Metasploit Browser Exploit Method to host known browser vulnerabilities.


## Credential Harvester

### 1 -> 2 -> 3

```bash
1 -> 2 -> 3
```

Example:

```bash
Menu Selection: 1 -> 2 -> 3
```

Selects the Credential Harvester Attack Method to capture usernames and passwords.

### 1 -> 2 -> 3 -> 1

```bash
1 -> 2 -> 3 -> 1
```

Example:

```bash
Menu Selection: 1 -> 2 -> 3 -> 1
```

Uses Web Templates (Gmail, Facebook, etc.) for the Credential Harvester landing page.

### 1 -> 2 -> 3 -> 2

```bash
1 -> 2 -> 3 -> 2
```

Example:

```bash
Menu Selection: 1 -> 2 -> 3 -> 2
```

Uses the Site Cloner to copy a live website's login page for credential harvesting.

### 1 -> 2 -> 3 -> 3

```bash
1 -> 2 -> 3 -> 3
```

Example:

```bash
Menu Selection: 1 -> 2 -> 3 -> 3
```

Allows Custom Import of a locally saved index.html for a completely tailored harvester page.


## Website Attack Vectors

### 1 -> 2 -> 4

```bash
1 -> 2 -> 4
```

Example:

```bash
Menu Selection: 1 -> 2 -> 4
```

Selects the Tabnabbing Attack Method which rewrites inactive browser tabs to a phishing page.

### 1 -> 2 -> 5

```bash
1 -> 2 -> 5
```

Example:

```bash
Menu Selection: 1 -> 2 -> 5
```

Selects Web Jacking Attack Method to overlay a fake page over a legitimate URL via iframe.

### 1 -> 2 -> 6

```bash
1 -> 2 -> 6
```

Example:

```bash
Menu Selection: 1 -> 2 -> 6
```

Selects Multi-Attack Web Method to combine multiple exploits (e.g., Harvester + Exploit) on one page.

### 1 -> 2 -> 7

```bash
1 -> 2 -> 7
```

Example:

```bash
Menu Selection: 1 -> 2 -> 7
```

Selects HTA Attack Method to serve a malicious HTML Application file that executes PowerShell.


## Infectious Media

### 1 -> 3

```bash
1 -> 3
```

Example:

```bash
Menu Selection: 1 -> 3
```

Navigates to Infectious Media Generator to create malicious USB/CD/DVD autorun payloads.

### 1 -> 3 -> 1

```bash
1 -> 3 -> 1
```

Example:

```bash
Menu Selection: 1 -> 3 -> 1
```

Generates a File-Format Exploit (e.g., PDF) and burns it to the media device.

### 1 -> 3 -> 2

```bash
1 -> 3 -> 2
```

Example:

```bash
Menu Selection: 1 -> 3 -> 2
```

Generates a Standard Metasploit Executable (reverse_tcp) for the media device autorun.


## Payloads & Listeners

### 1 -> 4

```bash
1 -> 4
```

Example:

```bash
Menu Selection: 1 -> 4
```

Navigates to Create a Payload and Listener to generate raw shellcode or binaries.

### 1 -> 4 -> 1

```bash
1 -> 4 -> 1
```

Example:

```bash
Menu Selection: 1 -> 4 -> 1
```

Selects Windows Shell Reverse_TCP payload for a basic command line callback.

### 1 -> 4 -> 2

```bash
1 -> 4 -> 2
```

Example:

```bash
Menu Selection: 1 -> 4 -> 2
```

Selects Windows Meterpreter Reverse_TCP payload for a full-featured Metasploit session.

### 1 -> 4 -> 8

```bash
1 -> 4 -> 8
```

Example:

```bash
Menu Selection: 1 -> 4 -> 8
```

Selects Linux Shell Reverse_TCP payload for targeting Linux-based systems.


## Mass Mailer

### 1 -> 5

```bash
1 -> 5
```

Example:

```bash
Menu Selection: 1 -> 5
```

Navigates to Mass Mailer Attack to send emails to a list of targets without a specific payload attachment.

### 1 -> 5 -> 1

```bash
1 -> 5 -> 1
```

Example:

```bash
Menu Selection: 1 -> 5 -> 1
```

Starts an E-Mail Attack Mass Mailer targeting a single email address.

### 1 -> 5 -> 2

```bash
1 -> 5 -> 2
```

Example:

```bash
Menu Selection: 1 -> 5 -> 2
```

Starts an E-Mail Attack Mass Mailer using a target list imported from a file.


## Arduino/Teensy

### 1 -> 6

```bash
1 -> 6
```

Example:

```bash
Menu Selection: 1 -> 6
```

Navigates to Arduino-Based Attack Vector for programming malicious USB HID devices.

### 1 -> 6 -> 1

```bash
1 -> 6 -> 1
```

Example:

```bash
Menu Selection: 1 -> 6 -> 1
```

Selects Powershell / HTTP Downloader for Teensy to fetch and execute payloads.

### 1 -> 6 -> 4

```bash
1 -> 6 -> 4
```

Example:

```bash
Menu Selection: 1 -> 6 -> 4
```

Selects Peensy (Powershell SD Card) Attack to execute scripts stored on the device's storage.


## Wireless Attacks

### 1 -> 7

```bash
1 -> 7
```

Example:

```bash
Menu Selection: 1 -> 7
```

Navigates to Wireless Access Point Attack Vector to create a rogue AP (requires dependencies).


## QR Code Attacks

### 1 -> 8

```bash
1 -> 8
```

Example:

```bash
Menu Selection: 1 -> 8
```

Navigates to QRCode Generator Attack Vector to create malicious QR codes.

### Enter URL: http://malicious.ip

```bash
Enter URL: http://malicious.ip
```

Example:

```bash
Input during QRCode setup
```

Defines the URL the victim will be redirected to upon scanning the QR code.


## Powershell Attacks

### 1 -> 9

```bash
1 -> 9
```

Example:

```bash
Menu Selection: 1 -> 9
```

Navigates to Powershell Attack Vectors to generate shellcode injection scripts.

### 1 -> 9 -> 1

```bash
1 -> 9 -> 1
```

Example:

```bash
Menu Selection: 1 -> 9 -> 1
```

Selects Powershell Alphanumeric Shellcode Injector for bypassing simple filters.

### 1 -> 9 -> 3

```bash
1 -> 9 -> 3
```

Example:

```bash
Menu Selection: 1 -> 9 -> 3
```

Selects Powershell Reverse TCP injection directly into memory.


## Third Party Modules

### 1 -> 10

```bash
1 -> 10
```

Example:

```bash
Menu Selection: 1 -> 10
```

Navigates to Third Party Modules to access external tools integrated into SET.

### 1 -> 10 -> 1

```bash
1 -> 10 -> 1
```

Example:

```bash
Menu Selection: 1 -> 10 -> 1
```

Launches the Google Analytics Attack to inject tracking code into cloned sites.


## Workflow: Site Cloning

### 1 -> 2 -> 3 -> 2 -> IP Address -> URL

```bash
1 -> 2 -> 3 -> 2 -> IP Address -> URL
```

Example:

```bash
Full workflow sequence
```

Complete sequence to clone a site: Select Attack -> Cred Harvester -> Cloner -> Set IP -> Set Target.


## Workflow: Spear Phishing

### 1 -> 1 -> 1 -> 1 -> Target Email -> 1 -> Login

```bash
1 -> 1 -> 1 -> 1 -> Target Email -> 1 -> Login
```

Example:

```bash
Full workflow sequence
```

Sequence to send a single mass email: Spear Phish -> Mass Email -> Single Target -> Gmail -> Credentials.


## Fast-Track

### 2 -> 1

```bash
2 -> 1
```

Example:

```bash
Menu Selection: 2 -> 1
```

Starts the Microsoft SQL Brute Forcer from the Pen Testing menu.

### 2 -> 2

```bash
2 -> 2
```

Example:

```bash
Menu Selection: 2 -> 2
```

Starts the Custom Exploit menu for specific server-side vulnerabilities.


## Reporting

### Generating reports in XML/HTML

```bash
Generating reports in XML/HTML
```

Example:

```bash
Automatic action post-attack
```

SET automatically saves credential harvester results to the ~/.set/reports/ directory.


## Cleanup

### 99

```bash
99
```

Example:

```bash
Menu Selection: 99
```

Exits the Social Engineer Toolkit and performs necessary cleanup of temporary files.


## Automation

### seautomation

```bash
seautomation
```

Example:

```bash
CLI Command
```

Starts the automation module to run SET non-interactively using a response file.

### nano my_set_script.ans

```bash
nano my_set_script.ans
```

Example:

```bash
File Creation
```

Creates an answer file for automation containing line-by-line menu selections.

### setoolkit my_set_script.ans

```bash
setoolkit my_set_script.ans
```

Example:

```bash
CLI Command
```

Runs setoolkit immediately feeding the answer file into the menu system.


## Post Exploitation

### sessions -i 1

```bash
sessions -i 1
```

Example:

```bash
Metasploit Interaction
```

Interacts with a successful session opened by a SET payload listener.

### sysinfo

```bash
sysinfo
```

Example:

```bash
Meterpreter Command
```

Retrieves system information from the compromised host within a Meterpreter session.


## Blue Team Validation

### Check logs at /var/log/apache2/access.log

```bash
Check logs at /var/log/apache2/access.log
```

Example:

```bash
Defense Verification
```

Verifies if the blue team detected the SET cloning activity via web server logs.

### Analyze generated .hta files

```bash
Analyze generated .hta files
```

Example:

```bash
Artifact Analysis
```

Inspects the HTA payloads generated by SET to write detection signatures.


## Advanced Config

### DIGITAL_SIGNATURE_STEAL=ON

```bash
DIGITAL_SIGNATURE_STEAL=ON
```

Example:

```bash
Edit inside set.config
```

Configures SET to attempt stealing a digital signature to sign malicious executables.

### UPX_ENCODE=ON

```bash
UPX_ENCODE=ON
```

Example:

```bash
Edit inside set.config
```

Enables UPX packing of payloads to attempt basic antivirus evasion.

### AUTO_MIGRATE=ON

```bash
AUTO_MIGRATE=ON
```

Example:

```bash
Edit inside set.config
```

Configures the Meterpreter payload to automatically migrate to a stable process upon execution.


## Module Updates

### 4

```bash
4
```

Example:

```bash
Menu Selection: 4 (Main Menu)
```

Checks for updates to the Social Engineer Toolkit code and modules.


## Help & Credits

### 6

```bash
6
```

Example:

```bash
Menu Selection: 6 (Main Menu)
```

Displays the help menu and credits for the toolkit developers.


## Wireless Attacks

### 1 -> 7 -> 1

```bash
1 -> 7 -> 1
```

Example:

```bash
Menu Selection: 1 -> 7 -> 1
```

Starts the Rogue Access Point attack (requires Airbase-ng).


## Payload Listener

### Stop listener? [yes/no]: no

```bash
Stop listener? [yes/no]: no
```

Example:

```bash
Workflow Choice
```

Keeps the Metasploit listener running in the background to catch multiple shells.


## Email Templates

### Subject: Important Update

```bash
Subject: Important Update
```

Example:

```bash
Template Input
```

Sets the subject line during the creation of a custom email template.


## Spoofing

### Use open relay? [yes/no]: yes

```bash
Use open relay? [yes/no]: yes
```

Example:

```bash
Workflow Choice
```

Configures the mailer to use an open relay for sending spoofed emails.


## Payload Customization

### PORT of the listener: 443

```bash
PORT of the listener: 443
```

Example:

```bash
Configuration Input
```

Sets the listening port to 443 (HTTPS) to blend in with legitimate traffic.


## Dell DRAC

### 1 -> 10 -> 2

```bash
1 -> 10 -> 2
```

Example:

```bash
Menu Selection: 1 -> 10 -> 2
```

Selects the Dell DRAC/Chassis Default Checker third-party module.


## Advanced Workflow

### 1 -> 2 -> 6 -> (Select attacks)

```bash
1 -> 2 -> 6 -> (Select attacks)
```

Example:

```bash
Multi-Attack Configuration
```

Configures the Multi-Attack vector by sequentially selecting enabled exploits.


## SMS Spoofing

### 1 -> 10 -> SMS

```bash
1 -> 10 -> SMS
```

Example:

```bash
Menu Selection: 1 -> 10 -> SMS (if available)
```

Attempts to use the legacy SMS spoofing module (availability depends on API gateways).


## Evidence Collection

### ls ~/.set/reports/

```bash
ls ~/.set/reports/
```

Example:

```bash
CLI Command
```

Lists the report files generated after a campaign for audit and review.


## Custom Exploit

### 2 -> 2 -> 1

```bash
2 -> 2 -> 1
```

Example:

```bash
Menu Selection: 2 -> 2 -> 1
```

Runs a specific custom exploit against a target IP from the Fast-Track menu.


## Infectious Media

### 1 -> 3 -> 3

```bash
1 -> 3 -> 3
```

Example:

```bash
Menu Selection: 1 -> 3 -> 3
```

Burns a malicious ISO directly to a CD/DVD device.


## System Cleanup

### rm -rf ~/.set

```bash
rm -rf ~/.set
```

Example:

```bash
CLI Command
```

Manually removes the SET configuration and reports directory for a complete factory reset.

## Related tools

- [msfvenom](https://terminal.rokibulroni.com/tool/exploitation/msfvenom)
- [Metasploit Framework](https://terminal.rokibulroni.com/tool/exploitation/metasploit)
