
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Add SMS sending capability to your application. A simple wrapper provides basic functionally needed to create a SMS. Also a DSL to setup the gateway and deliver the SMS is applied. Because every provider has a different API this has to be implemented for each gateway that inherit from this wraper.
Read the Wiki for more details.
Add this line to your application's Gemfile:
gem 'simsen', :git => 'git@github.com:SalesLentz/simsen.git'
And then execute:
$ bundle
Implement your own wrapper for your required third-party SMS gateway provider or choose one of the existing implementations. If you're going to implement a new wrapper please refer to our example
Selecting and configuring the wrapper is done within the setup block.
The following setup options are provided. Please note that a wrapper could use only a subset of them according to the provider API functionality. Please consult the wrapper test or documentation for more information.
Simsen.setup do |config|
config.gateway = :example_gateway
config.password = 'secret'
config.sender = 'Sales-Lentz'
config.testmode = :off # or :on
config.testmode_strategy = :succeed # or :fail
config.username = 'username'
end
After setup is done just create a new SMS and deliver it. This method takes two parameters. First the message you want to send and second the recipients phone number.
sms = Simsen.new_sms('A short message', 352000000000)
Now you can deliver the SMS by calling deliver
on the returned object.
sms.deliver
You can find an example implementation as a ruby script using bundler here: https://gist.github.com/3750204
:bulksms_com
- http://bulksms.de/docs/eapi/submission/send_smsAll tests are written in RSpec, so if you checkout this gem from Github https://github.com/SalesLentz/simsen you can run the tests with
$ bundle exec rake
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that simsen 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.