Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Python 3.* Email Spammer

THIS PROJECT IS FREE!

This is a very simple python program (30 lins of code), that allows you to spam any email address. Hope you guys enjoy!


To login with "your" email you need to allow for less secure apps to connect to your google account (myaccount.google.com/lesssecureapps).

Source Code: ghostbin.com/paste/94k68]
You don't catch exceptions, and smtplib.sendmail() can raise one. This will give the illusion of working even if it doesn't.
(May 10, 2017 10:35 PM)saliva Wrote:  You don't catch exceptions, and smtplib.sendmail() can raise one. This will give the illusion of working even if it doesn't.
I have tested this and has worked. I'm not sure if every single email sends, but works alright. Ill definitely look into improving it!
(May 10, 2017 10:26 PM)FuzzOG Wrote:  
THIS PROJECT IS FREE!

This is a very simple python program (30 lins of code), that allows you to spam any email address. Hope you guys enjoy!


To login with "your" email you need to allow for less secure apps to connect to your google account (myaccount.google.com/lesssecureapps).

Source Code: ghostbin.com/paste/94k68]

Since Gmail doens't allow spamming this thing won't actually spam. I might be wrong here but Google has an limit of 500 emails per day. If you want a cool spam script, I got one for you. Able to spam over few 100 mails every second exploiting other websites.
(May 11, 2017 12:47 AM)Mohinder Wrote:  Since Gmail doens't allow spamming this thing won't actually spam. I might be wrong here but Google has an limit of 500 emails per day. If you want a cool spam script, I got one for you. Able to spam over few 100 mails every second exploiting other websites.
Yo, can you hit me up with a PM, if your willing to show me the script
(May 11, 2017 12:47 AM)Mohinder Wrote:  Since Gmail doens't allow spamming this thing won't actually spam. I might be wrong here but Google has an limit of 500 emails per day. If you want a cool spam script, I got one for you. Able to spam over few 100 mails every second exploiting other websites.

Thats correct.. I think they only let you send 100 emails at the time and 400-500 per day total.
[Image: V9Gredc.png]
Wow! Your topic here is very interesting, might giving it a try. ;)
(May 11, 2017 07:06 AM)BungeeGum Wrote:  Wow! Your topic here is very interesting, might giving it a try. ;)
IF you find ways to improve it please let me know :D
(May 11, 2017 12:00 PM)FuzzOG Wrote:  IF you find ways to improve it please let me know :D

If you are asking for the ways to improve it... Here is couple of things you can use to make it work with html and also attachments plus specify the date format and all ..
Code
from os.path import basename
from email.mime.application import MIMEApplication
from email.utils import COMMASPACE, formatdate

If you need the functioning code for reference just let me know.
[Image: V9Gredc.png]
Just a thought, but have you thought about monetizing this and turning it into a project? Not only could the script be used for email bombing, you could purchase a relatively cheap SMTP service to allow unlimited mail for mail bombing, and also since SMS messages [texts] have email to SMS gateways, you could use it to SMS bomb with relative ease.. you could then sell this as a service / package to users on HF.

Edit:

Just a quick explanation, email to SMS works like this as an example:

[Phonenumber here]@[carrierid].co.uk

You send emails, and they are received as SMS by the number.. your script could do this easily. Kinda like the one in my sig -.^
[Image: test.jpg]
(May 11, 2017 12:25 PM)๖ۣۜGC༻ Wrote:  Just a thought, but have you thought about monetizing this and turning it into a project? Not only could the script be used for email bombing, you could purchase a relatively cheap SMTP service to allow unlimited mail for mail bombing, and also since SMS messages [texts] have email to SMS gateways, you could use it to SMS bomb with relative ease.. you could then sell this as a service / package to users on HF.

Edit:

Just a quick explanation, email to SMS works like this as an example:

[Phonenumber here]@[carrierid].co.uk

You send emails, and they are received as SMS by the number.. your script could do this easily. Kinda like the one in my sig -.^

Email -> sms only works with some carriers .. mostly American tho. Its a good idea nonetheless.
[Image: V9Gredc.png]
I'm absolutely aware, I just figured it'd be relatively easy to implement it Python wise, could be an interesting project and for him to make a little cash on the side whilst helping out the HF community :)
[Image: test.jpg]
Why do you define x, but never actually use it?

It's a waste of precious memory!
(May 11, 2017 01:07 PM)hunter24957 Wrote:  Why do you define x, but never actually use it?

It's a waste of precious memory!

lol good spot.

Also if you enable the subject in your code by removing # .. it will not work.. you need to add this line before you attach MIME or subject will remain empty.
Code
msg['Subject'] = subject

This will create an issue of stacking emails. Easy fix tho.
Code
# mailBomb
# Python ver: 3.*
# Made by: FuzzOG
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
import string, random

num = 1
fromaddr = ""         #Your email
PASSWORD = ""                      #Your password (https://myaccount.google.com/lesssecureapps)
#PASSWORD = open('pass.txt', 'r').read()    #Use to get password from pass.txt
toaddr = input("Recievers Email: ")         #Recievers email
sub = input("Subject: ")
body = input("Message: ")                   #Message

server = smtplib.SMTP('smtp.gmail.com', 587)
server.starttls()
server.login(fromaddr, PASSWORD)

while True:
    msg = MIMEMultipart()
    msg['From'] = fromaddr
    msg['To'] = toaddr
    subject=sub+''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(5))
    msg['Subject'] = subject
    msg.attach(MIMEText(body, 'plain'))
    text = msg.as_string()
    server.sendmail(fromaddr, toaddr, text)
    subject=sub
    print("Your message has been sent to:", toaddr, " (Press CTR + C to stop) Count:", num)
    num = num + 1
server.quit()
As you can see in this case the MIME has to be constructed inside the loop for this to work correctly. I personally prefer for loop for this task with specified number of emails. Multithreading would be an advantage but then again .. gmail will only allow so many emails to be sent so kinda waste of time.
[Image: V9Gredc.png]
(May 11, 2017 12:25 PM)๖ۣۜGC༻ Wrote:  Just a thought, but have you thought about monetizing this and turning it into a project? Not only could the script be used for email bombing, you could purchase a relatively cheap SMTP service to allow unlimited mail for mail bombing, and also since SMS messages [texts] have email to SMS gateways, you could use it to SMS bomb with relative ease.. you could then sell this as a service / package to users on HF.
Thanks man, I am thinking og making a website where you can use this from but I dont know laws around email spamming so... IDK, might try selling as a product on HF

(May 11, 2017 01:27 PM)Malicious Intent Wrote:  lol good spot.

Also if you enable the subject in your code by removing # .. it will not work.. you need to add this line before you attach MIME or subject will remain empty...
Thanks for the help, I will definitely implement some of these.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by Bass_ReevesAug 20, 2023 01:44 AM 9 632 Aug 20, 2023 01:44 AM
Last Post: Lucky4L
[Python] by SIM-4910684Oct 7, 2021 04:35 PM 7 280 Oct 7, 2021 04:35 PM
Last Post: hackhim
[Python] by kirmacoeaMay 29, 2021 03:38 PM 4 284 May 29, 2021 03:38 PM
Last Post: PITI