Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

Commit

Permalink
Added a message once the email gets sent
Browse files Browse the repository at this point in the history
  • Loading branch information
lunarca committed Apr 15, 2015
1 parent 0dd6ada commit 6a4289d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions SimpleEmailSpoofer.py
Expand Up @@ -27,13 +27,13 @@ def get_args():


email_options = parser.add_argument_group("Email Options")
email_options.add_argument("-i", "--interactive", action="store_true", dest="interactive_email",
email_options.add_argument("-i", "--interactive", action="store_true", dest="interactive_email",
help="Input email in interactive mode")

smtp_options = parser.add_argument_group("SMTP options")
smtp_options.add_argument("-s", "--server", dest="smtp_server",
smtp_options.add_argument("-s", "--server", dest="smtp_server",
help="SMTP server IP or DNS name (default localhost)", default="localhost")
smtp_options.add_argument("-p", "--port", dest="smtp_port", type=int, help="SMTP server port (default 25)",
smtp_options.add_argument("-p", "--port", dest="smtp_port", type=int, help="SMTP server port (default 25)",
default=25)

return parser.parse_args()
Expand Down Expand Up @@ -84,7 +84,7 @@ def get_ack(force):

from_domain = email_re.match(args.from_address).group(1)
to_domain = email_re.match(args.to_address).group(1)

info("Checking if from domain " + Style.BRIGHT + from_domain + Style.NORMAL + " is spoofable")


Expand Down Expand Up @@ -178,6 +178,8 @@ def get_ack(force):

server.sendmail(args.from_address, args.to_address, msg.as_string())

good("Email Sent")

except smtplib.SMTPException as e:
error("Error: Could not send email to " + args.to_address )
raise e

0 comments on commit 6a4289d

Please sign in to comment.