Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
The idi_sms
gem is a Ruby library that simplifies the process of sending SMS messages using the 8070 short code SMS-Gateway API. This gem is specifically designed for integration with the PITB Dengue Tracking System, allowing you to send SMS messages efficiently and seamlessly.
To use the idi_sms
gem in your project, follow these steps:
Add the gem to your project's Gemfile:
gem 'idi_sms'
Run bundle install to install the gem and its dependencies.
Run Command to generate yml file for setting key:
$ rails generate idi_sms:config
it will create a file on config/idi_sms.yml
Require the gem in your Ruby code:
require 'idi_sms'
sms_sender = IdiSms::SmsSender.new
Customize your SMS details, including the phone number, SMS text, and SMS language:
phone_no = 'xxxxxxxxxx'(allow number only)
sms_text = 'This gem created by idi'
sms_language = 'english'
Send an SMS using the send_sms method and handle the response:
result = sms_sender.send_sms(phone_no, sms_text, sms_language)
puts result
SUCCESS Response:
{
"status": "success",
"message": "sent to SMS Provider for broadcast."
}
Error Response:
{
"status": "error",
"message": "Phone Number is Missing"
}
{
"status": "error",
"message": "SMS text is missing"
}
{
"status": "error",
"message": "Phone Number should contains only digits & length equals to 11."
}
{
"status": false,
"error": "Invalid API Key."
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
The idi_sms gem is released under the MIT License. See the LICENSE file for details.
Contact If you have any questions or encounter issues with the idi_sms gem, feel free to contact idrees.ibrahim009@gmail.com.
In the provided text, I added instructions for generating an API key and setting environment variables. Please customize it further with the actual URLs, environment variable names, and any additional details specific to your gem.
FAQs
Unknown package
We found that idi_sms demonstrated a healthy version release cadence and project activity because the last version was released less than 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
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.