Summery

sendEmail is a command-line SMTP client (don’t consfuse it with “SendMail”) used to send emails through an SMTP server. It supports specifying the sender, recipient, message body, and file attachments.

In pentesting, it can be used to test SMTP services and perform authorized email-based security assessments.

Commands

sendEmail -s 10.129.238.35 -f "0xEr3bus <0xEr3bus@htb.vl>" -t hr@job2.vl -o tls=no -m "hey" -a cv.docm - Send an email with an attachment through an SMTP server

Flags

-s - Target server
-f - From, sender
-t - To, recipient, target user
-o - Specifies an option like -o tls=no means disables TLS encryption for the SMTP connection
-m - Message, the body of the email
-a - Attachments
You can likely use most of these flags multiple times to send email to multiple people or attach multiple files.

References

Similar tools: swaks