Simple smtp sending tool (smtp_send) with file and directory sending.
Execute:
cd /tmp
git clone https://github.com/0dayexploit/smtp_sendYou can use virtualenv and install project into python virtual environment:
virtualenv --system-site-packages --python=python3 venv
source venv/bin/activateFor installing execute:
python setup.py installsmtp_send uses smtp.mail.ru server by default and port 587. Also smtp_send sends message to yourself by default.
smtp_send login@mail.ru passwordTo set recipient use -R option:
smtp_send login@mail.ru password -R user@yandex.ruIf you want to attach file or directory (without subdirectories) set -a parameter:
smtp_send login@mail.ru password -a directoryTo change server/port use -s/-p parameters:
smtp_send login@gmail.com password -s smtp.gmail.comIf you want to set Subject and Message fields use -S and -M parameters:
smtp_send login@mail.ru password -S Test -M "Hello world"