Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Here are some of the features:
The API for Mailer.To is changed. Use a string to specify a single recipient, and an iterable to specify more than one.
You can now specify the port in Mailer ::
from mailer import Mailer sender = Mailer('smtp.example.com', port=20)
Thanks to Douglas Mayle for his patch for this.
You can now specify MIME type::
msg.attach("picture.png", mimetype="image/png")
Sending an HTML email: ::
from mailer import Mailer from mailer import Message
message = Message(From="me@example.com", To="you@example.com", charset="utf-8") message.Subject = "An HTML Email" message.Html = """This email uses HTML!""" message.Body = """This is alternate text."""
sender = Mailer('smtp.example.com') sender.send(message)
Sending an attachment: ::
from mailer import Mailer from mailer import Message
message = Message(From="me@example.com", To=["you@example.com", "him@example.com"], Subject="Cute Cat") message.Body = """Kittens with dynamite""" message.attach("kitty.jpg")
sender = Mailer('smtp.example.com') sender.send(message)
Tested with Python 2.4, 2.5, and 2.6
FAQs
A module to send email simply in Python
We found that mailer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.