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.
Ruby wrapper for smsway.ru xml api
# Gemfile
gem 'smsway_api'
or just
$ gem install smsway_api
Parameters for smsway_api should be placed in SmswayApi.configure block. Put smsway_api.rb into config/initializers
directory of your rails application or just run:
rails generate smsway_api:install
Example of config file:
SmswayApi.configure do |config|
config.login = '123'
config.password = 'AbCdE654'
config.default_sender = 'smsway'
end
Now implemented only two methods of smsway api: send message and get balance. You can send sms, flash-sms, wap-push and vcard.
Simple sending message: SmswayApi::API.send_message('test message', phone)
.
Building and sending VCard:
vcard = SmswayApi::Message::Vcard.new({
name: 'Steave Jobs',
email: 'jobs@apple.com',
phone: {
work: '1-800-275-2273'
}
})
vcard.add_recipient('1-800-694-7466')
vcard.add_recipient('1-800-800-2775')
vcard.sender = 'apple'
SmswayApi::API.send_message(vcard)
This example will send vcard to two recipients. Field 'from' will be 'apple'.
Get balance:
SmswayApi::API.balance
FAQs
Unknown package
We found that smsway_api 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.