https://github.com/mikechabot/smtp-email-spoofer-py
Python 3.x based email spoofer
https://github.com/mikechabot/smtp-email-spoofer-py
email-sender email-spoofer python smtp
Last synced: over 1 year ago
JSON representation
Python 3.x based email spoofer
- Host: GitHub
- URL: https://github.com/mikechabot/smtp-email-spoofer-py
- Owner: mikechabot
- License: gpl-3.0
- Created: 2018-08-01T17:12:46.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-09T20:01:10.000Z (over 2 years ago)
- Last Synced: 2025-04-02T10:12:14.252Z (over 1 year ago)
- Topics: email-sender, email-spoofer, python, smtp
- Language: Python
- Homepage:
- Size: 49.8 KB
- Stars: 242
- Watchers: 11
- Forks: 51
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# smtp-email-spoofer-py
Python 3.x based email spoofer
> *For educational purposes only. Do not send to or from addresses that you do not own.*
> Email spoofing is often used for spam campaigns and phishing attacks. If you use this tool inappropriately, you could violate of the [CAN-SPAM Act of 2003](https://en.wikipedia.org/wiki/CAN-SPAM_Act_of_2003) and/or the [Computer Fraud and Abuse Act](https://en.wikipedia.org/wiki/Computer_Fraud_and_Abuse_Act). You'd also be committing [wire fraud](https://en.wikipedia.org/wiki/Mail_and_wire_fraud#Wire). **Use your head**.
----
## Table of Contents
- [Getting Started](#getting-started)
- [Commands](#commands)
- [Wizard](#wizard)
- [CLI](#cli)
- [Result](#result)
1. `$ git clone https://github.com/mikechabot/smtp-email-spoofer-py.git`
3. Activate `virtualenv`
2. `$ pip install -r requirements.txt`
3. `$ python spoof.py`
> Instructions on creating and activating `virtualenv` can be found here: https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/
## Commands
`smtp-email-spoofer-py` offers two global commands: [`wizard`](#wizard) and [`cli`](#cli):
```bash
$ py spoof.py -h
usage: spoof.py [-h] {wizard,cli} ...
Python 3.x based email spoofer
optional arguments:
-h, --help show this help message and exit
commands:
{wizard,cli} Allowed commands
wizard Use the step-by-step wizard
cli Pass arguments directly
```
----
### Wizard
Issue the `wizard` command to use the step-by-step wizard:
```
$ py spoof.py wizard
```
1. Enter the SMTP server information to establish a connection over TLS:

2. Optionally provide credentials to login to the SMTP server:

3. Compose the forged message:
> Load the HTML message body from a file, or compose it within the shell

4. Send the message:

----
### CLI
Issue the `cli -h` command to view the help:
```bash
$ py spoof.py cli -h
usage: spoof.py cli [-h] (--noauth | --username USERNAME)
[--password PASSWORD] --host HOST --port PORT --sender
SENDER --name NAME --recipients RECIPIENTS
[RECIPIENTS ...] --subject SUBJECT --filename FILENAME
optional arguments:
-h, --help show this help message and exit
--noauth Disable authentication check
--username USERNAME SMTP username
--password PASSWORD SMTP password (required with --username)
required arguments:
--host HOST SMTP hostname
--port PORT SMTP port number
--sender SENDER Sender address (e.g. spoofed@domain.com)
--name NAME Sender name (e.g. John Smith)
--recipients RECIPIENTS [RECIPIENTS ...]
Recipient addresses (e.g. victim@domain.com ...)
--subject SUBJECT Subject line
--filename FILENAME Message body filename (e.g. example.html)
```
1. Issue the `cli` command along with the appropriate arguments:
> If `--noauth` is not specified, `--username` and `--password` are required.

----
## Result
