#!/usr/bin/env python

#Spoofed E-Mail Sender (SEMS)
#Author: <NAME>
#Blog: https://clasiru.blogspot.com

import argparse
import sys
from urllib.request import urlopen
from urllib.parse import urlencode

banner = """
 ███████╗███████╗███╗   ███╗███████╗
 ██╔════╝██╔════╝████╗ ████║██╔════╝
 ███████╗█████╗  ██╔████╔██║███████╗
 ╚════██║██╔══╝  ██║╚██╔╝██║╚════██║
 ███████║███████╗██║ ╚═╝ ██║███████║
 ╚══════╝╚══════╝╚═╝     ╚═╝╚══════╝
          Spoofed/Fake E-Mail Sender
                      by Area Master


 LEGAL NOTICE:
 
 THIS TOOL IS PROVIDED FOR EDUCATIONAL USE ONLY!
 IF YOU ENGAGE IN ANY ILLEGAL ACTIVITY,
 THE AUTHOR DOES NOT TAKE ANY RESPONSIBILITY FOR IT.
 BY USING THIS TOOL YOU AGREE WITH THESE TERMS.
"""

print (banner, "\n");

def google_ok():
    try:
        urlopen('https://www.google.com', timeout=10);
        return True
    except: 
        return False
    return True

def yahoo_ok():
    try:
        urlopen('https://www.yahoo.com', timeout=10);
        return True
    except: 
        return False
    return True

def mailhandler_ok():
    try:
        mhand = open ('mhandurl.txt', 'r');
        mhand.close
    except: 
        return False
    return True

parser = argparse.ArgumentParser('python3 sems.py', description='Simple Port Scanner for scanning TCP ports in target hosts')

parser.add_argument('--sN', default='E-Mail Sender',  help='Sender Name (Eg: "<NAME>")')
parser.add_argument('--sE', default='<EMAIL>', help='Sender E-Mail Address (Eg: <EMAIL>)', type=str)
parser.add_argument('--rE', default='<EMAIL>', help='Recipient  E-Mail Address (Eg: <EMAIL>)', type=str)
parser.add_argument('--sub', default='Spoofed E-Mail',  help='Type Subject (Eg: "See Me Chan")')
parser.add_argument('--msg', default='This email was sent by Spoofed E-Mail Sender (SEMS)',  help='Type Message (Eg: "You can see  me brother. I know that.")')

args = parser.parse_args()

fromname = args.sN
fromemail = args.sE
toemail = args.rE
subject = args.sub
message = args.msg

if len(sys.argv)==1:
    parser.print_help();
    sys.exit(0);

data = {
        "fromname" : fromname,
        "fromemail" : fromemail,
        "toemail" : toemail,
        "subject" : subject,
        "message" : message,
       }

if google_ok() or yahoo_ok():
    print ('[*] Internet Status: Online');
    print ();
    
    if mailhandler_ok():
        print ('[*] Mail handler Status: Available');
        
    else:
        print ('[*] Mail handler Status: Unavailable');
        print ();
        wmhand = str(input('Paste your mail handler URL: '));
        mhand = open ('mhandurl.txt', 'w');
        mhand.write(wmhand);
        mhand.close
        print ();
        print ('[*] Getting a new mail handler');

    mhand = open ('mhandurl.txt', 'r');
    mailhandler = mhand.read();
    mhand.close
    
    encoded_data = urlencode(data).encode("utf-8");
    urlopen(mailhandler, encoded_data);
    print ();
    print ('[*] E-Mail sent !');
    print ('[*] Some E-Mails will be blocked by E-Mail servers.');
    print ('[*] It depends on Sender E-Mail Address.');
    sys.exit(0);
    
else:
    print ('[*] Internet Status: Offline');
    print ('[*] You need an Internet connection to send E-Mail.');

sys.exit(0);

#!/usr/bin/env python

#Spoofed E-Mail Sender (SEMS)
#Author: <NAME>
#Blog: https://clasiru.blogspot.com

import argparse
import sys
from urllib.request import urlopen
from urllib.parse import urlencode

banner = """
 ███████╗███████╗███╗   ███╗███████╗
 ██╔════╝██╔════╝████╗ ████║██╔════╝
 ███████╗█████╗  ██╔████╔██║███████╗
 ╚════██║██╔══╝  ██║╚██╔╝██║╚════██║
 ███████║███████╗██║ ╚═╝ ██║███████║
 ╚══════╝╚══════╝╚═╝     ╚═╝╚══════╝
          Spoofed/Fake E-Mail Sender
                      by Area Master


 LEGAL NOTICE:
 
 THIS TOOL IS PROVIDED FOR EDUCATIONAL USE ONLY!
 IF YOU ENGAGE IN ANY ILLEGAL ACTIVITY,
 THE AUTHOR DOES NOT TAKE ANY RESPONSIBILITY FOR IT.
 BY USING THIS TOOL YOU AGREE WITH THESE TERMS.
"""

print (banner, "\n");

def google_ok():
    try:
        urlopen('https://www.google.com', timeout=10);
        return True
    except: 
        return False
    return True

def yahoo_ok():
    try:
        urlopen('https://www.yahoo.com', timeout=10);
        return True
    except: 
        return False
    return True

def mailhandler_ok():
    try:
        mhand = open ('mhandurl.txt', 'r');
        mhand.close
    except: 
        return False
    return True

parser = argparse.ArgumentParser('python3 sems.py', description='Simple Port Scanner for scanning TCP ports in target hosts')

parser.add_argument('--sN', default='E-Mail Sender',  help='Sender Name (Eg: "<NAME>")')
parser.add_argument('--sE', default='<EMAIL>', help='Sender E-Mail Address (Eg: <EMAIL>)', type=str)
parser.add_argument('--rE', default='<EMAIL>', help='Recipient  E-Mail Address (Eg: <EMAIL>)', type=str)
parser.add_argument('--sub', default='Spoofed E-Mail',  help='Type Subject (Eg: "See Me Chan")')
parser.add_argument('--msg', default='This email was sent by Spoofed E-Mail Sender (SEMS)',  help='Type Message (Eg: "You can see  me brother. I know that.")')

args = parser.parse_args()

fromname = args.sN
fromemail = args.sE
toemail = args.rE
subject = args.sub
message = args.msg

if len(sys.argv)==1:
    parser.print_help();
    sys.exit(0);

data = {
        "fromname" : fromname,
        "fromemail" : fromemail,
        "toemail" : toemail,
        "subject" : subject,
        "message" : message,
       }

if google_ok() or yahoo_ok():
    print ('[*] Internet Status: Online');
    print ();
    
    if mailhandler_ok():
        print ('[*] Mail handler Status: Available');
        
    else:
        print ('[*] Mail handler Status: Unavailable');
        print ();
        wmhand = str(input('Paste your mail handler URL: '));
        mhand = open ('mhandurl.txt', 'w');
        mhand.write(wmhand);
        mhand.close
        print ();
        print ('[*] Getting a new mail handler');

    mhand = open ('mhandurl.txt', 'r');
    mailhandler = mhand.read();
    mhand.close
    
    encoded_data = urlencode(data).encode("utf-8");
    urlopen(mailhandler, encoded_data);
    print ();
    print ('[*] E-Mail sent !');
    print ('[*] Some E-Mails will be blocked by E-Mail servers.');
    print ('[*] It depends on Sender E-Mail Address.');
    sys.exit(0);
    
else:
    print ('[*] Internet Status: Offline');
    print ('[*] You need an Internet connection to send E-Mail.');

sys.exit(0);

#!/usr/bin/env python #Spoofed E-Mail Sender (SEMS) #Author: <NAME> #Blog: https://clasiru.blogspot.com ███████╗███████╗███╗   ███╗███████╗
  ██╔════╝██╔════╝████╗ ████║██╔════╝
  ███████╗█████╗  ██╔████╔██║███████╗
  ╚════██║██╔══╝  ██║╚██╔╝██║╚════██║
  ███████║███████╗██║ ╚═╝ ██║███████║
  ╚══════╝╚══════╝╚═╝     ╚═╝╚══════╝
           Spoofed/Fake E-Mail Sender
                       by Area Master
 
 
  LEGAL NOTICE:
  
  THIS TOOL IS PROVIDED FOR EDUCATIONAL USE ONLY!
  IF YOU ENGAGE IN ANY ILLEGAL ACTIVITY,
  THE AUTHOR DOES NOT TAKE ANY RESPONSIBILITY FOR IT.
  BY USING THIS TOOL YOU AGREE WITH THESE TERMS.