Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
= Introduction
BulkSMS is a Ruby library that allows you to easily integrate SMS services into your Ruby or Ruby on Rails applications.
It has support for all BulkSMS international sites, including the UK, USA, South Africa, Spain and Europe.
To use the library, you will need an account from www.bulksms.com and some credits.
= Configuration
Simply set using the configuration object provided by the Bulksms module:
Bulksms.config do |config| config.username = 'testuser' config.password = 'zepass' config.country = :uk end
If Rails is available, the library can be configured using the standard environment configs:
SomeRails::Application.configure do
# set config in one go
config.bulksms do |c|
c.username = 'testuser'
c.password = 'zepass'
end
# single config options
config.bulksms.country = :es
end
= Examples
Sending a quick message is very simple:
Bulksms.deliver(:message => 'Hello, I hope you like my message!', :recipient => '44799123456')
== Multiple messages
Provide an array of hashes and multiple messages will be sent via the same HTTP connection:
Bulksms.deliver([{:message => 'Test Message', :recipient => "44342134131"}, {:message => "Another Msg", :recipient => "4441234354254"}])
== Additional message options
If you prefer more control, the Service and Message objects are also available for direct usage:
s = Bulksms::Service.new m = Bulksms::Message.new(:message => "Test Message", :recipient => "34901123123") m.routing_group = 1 m.want_report = 1 s.deliver(m)
== Encoding
All messages will be converted to ISO-8859-15 before being sent to the Bulksms servers. Some special characters, including the euro symbol, will be converted and prepended with a special escape character, suitable for GSM-7, so that they will be received correctly. For more details on character encoding, checkout the Bulksms API:
http://www.bulksms.com/int/docs/eapi/submission/character_encoding/
== Checking your account balance
Use the main module to request the current user's balance:
Bulksms.credits
A Bulksms::AccountError will be raised if there is a problem.
= Limitations
This library currently only implements a small portion of the API, allowing you to send messages and check your account balance. Further parts of the BulkSMS API may be implemented in the future such as the ability to receive messages and status reports and manage the address book provided by BulkSMS.
= Testing
Rspec from the console:
rspec spec
Tests still need a bit more work to cover all cases.
= Authors
The Original work on "ruby-bulksms" was made by Luke Redpath (email:contact@lukeredpath.co.uk). Modifications were added by Basayel Said (email:eng.basayel.said@gmail.com).
The latest version, "bulksms", with a simpler interface, rspec testing, and an easier configuration was written by Sam Lown (me@samlown.com).
Modifications include:
FAQs
Unknown package
We found that bulksms demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.