
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Just add the following to your Gemfile:
gem 'clockworksms'
Full documentation is at http://rubydoc.info/github/mediaburst/clockwork-ruby/master/frames. Alternatively, run yard doc
and open doc/index.html.
For more information on the available optional parameters for the API (Clockwork::API), see here.
For more information on the available optional parameters for each SMS (Clockwork::SMS), see here. For more information on the response object returned from each SMS (Clockwork::SMS::Response), see here.
require 'clockwork'
api = Clockwork::API.new( 'API_KEY_GOES_HERE' )
message = api.messages.build( :to => '441234123456', :content => 'This is a test message.' )
response = message.deliver
if response.success
puts response.message_id
else
puts response.error_code
puts response.error_description
end
require 'clockwork'
api = Clockwork::API.new( 'API_KEY_GOES_HERE' )
message = api.messages.build
message.to = '441234123456'
message.content = 'This is a test message.'
response = message.deliver
if response.success
puts response.message_id
else
puts response.error_code
puts response.error_description
end
You should not use the Clockwork::Message#deliver
method for each message, but instead use the Clockwork::API#deliver
method to send multiple messages in the same API request. This will decrease load on the API and ensure your requests are processed significantly faster.
messages = [
{ :to => '441234123456', :content => 'This is a test message.', :client_id => '1' },
{ :to => '441234123456', :content => 'This is a test message 2.', :client_id => '2' },
{ :to => '441234123456', :content => 'This is a test message 3.', :client_id => '3' },
{ :to => '441234123456', :content => 'This is a test message 4.', :client_id => '4' },
{ :to => '441234123456', :content => 'This is a test message 5.', :client_id => '5' },
{ :to => '441234123456', :content => 'This is a test message 6.', :client_id => '6' }
]
require 'clockwork'
api = Clockwork::API.new( 'API_KEY_GOES_HERE' )
messages.each do |m|
api.messages.build(m)
end
responses = api.deliver_messages
responses.each do |response|
puts response.client_id
if response.success
puts response.message_id
else
puts response.error_code
puts response.error_description
end
end
require 'clockwork'
api = Clockwork::API.new( 'API_KEY_GOES_HERE' )
balance = Clockwork::API.balance
puts balance # => { :account_type => "PAYG", :balance => 575.23, :currency => { :code => "GBP", :symbol => "£" } }
This project is licensed under the MIT open-source license.
A copy of this license can be found in LICENSE.
If you have any feedback on this wrapper drop us an email to hello@clockworksms.com.
The project is hosted on GitHub at http://www.github.com/mediaburst/clockwork-ruby.
If you would like to contribute a bug fix or improvement please fork the project and submit a pull request. Please add RSpec tests for your use case.
If we don't respond to your bug report or pull request within a few days please email hello@clockworksms.com or remind @ClockworkSMS on Twitter, we probably haven't spotted the notification.
First, create a file at spec/spec_authentication_details containing the following:
YOUR_API_KEY_HERE
Substitute your own API key on line 1 of the file and replace the telephone numbers in the spec files with your own.
Then, run rspec
.
FAQs
Unknown package
We found that clockworksms 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.