Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
An extension of standard smtplib, which supports proxy tunneling.
Package works on Python 2.7+ and Python 3.5+.
Using PySocks <https://github.com/Anorov/PySocks>
_.
You can install xsmtplib from PyPI <https://pypi.python.org/pypi>
_ by running::
pip install xsmtplib
Or you can just download tarball / clone the repository and run::
python setup.py install
Alternatively, include just xsmtplib.py in your project.
xsmtplib extends standard python smtplib, so it can be used instead without any compatibility issues.
Connection to SMTP server via proxy can be done during instance initialization::
from xsmtplib import SMTP
server = SMTP(host="smtp.example.com", proxy_host="proxy.example.com")
server.sendmail("user@example.com", "admin@example.com", "I have an issue. Please help!")
server.quit()
Alternatively, you can connect to SMTP server manually when you need to::
from xsmtplib import SMTP
server = SMTP(timeout=30)
server.set_debuglevel(1)
server.connect_proxy(proxy_host="proxy.example.com", host="smtp.example.com")
server.helo("user@example.com")
server.sendmail("user@example.com", "admin@example.com", "I have an issue. Please help!")
s.quit()
SMTPS (SSL SMTP) and LMTP connections via proxy are not supported yet.
See <LICENSE>
_ file for more details.
FAQs
An extension of standard smtplib, which supports proxy tunneling
We found that xsmtplib 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.