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.
Programatically send emails using a given gmail account. No username/passwords needed, just use your OAUTH credentials
This has only been tested on ruby 1.9.2
message = GmailMailer::Message.new("to", "Hello Subject", "Hello Body")
message.add_attachment("<path-to-file>")
You will need to provide mailer with a hashmap containing the ouath details for your account. email_credentials = { :smtp_oauth_token=>"", :smtp_oauth_token_secret=>"", :email=>"" }
mailer.send(message)
require 'gmail-mailer'
email_credentials =
{
:smtp_oauth_token=>"<your outh_token>",
:smtp_oauth_token_secret=>"<your ouath token secret>",
:email=>"<your gmail address>"
}
# construct message
message = GmailMailer::Message.new("to", "Hello Subject", "Hello Body")
# add an attachment to the message
message.add_attachment(File.expand_path('~/image.png'))
# construct mailer using the email_credentials defined above
mailer = GmailMailer::Mailer.new(email_credentials)
# send email
mailer.send(message)
Copyright (c) 2011 Daniel Harper. See LICENSE.txt for further details.
FAQs
Unknown package
We found that gmail-mailer demonstrated a not healthy version release cadence and project activity because the last version was released 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.