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.
telegram_simple_messenger
Advanced tools
It's a simple gem to send messages through Telegram to a user or a group/channel.
To use it, you need and Telegram API KEY (a bot key) and a Chat ID.
The API KEY you can get building a new bot through @BotFather. Just send a Telegram message to @BotFather and follows the instructions. An API KEY looks like this: 5490951233:AAFZH99VRQuIOH-qweL1fwATf3kna2eBQSE
.
Use another Telegram Bot @RawDataBot to find your own Chat ID or a group/channel Chat ID.
Add to your Gemfile
gem "telegram_simple_messenger", github: "shayani/telegram_simple_messenger"
Then run
bundle install
Create a initializer file to set the default API KEY and CHAT ID
# config/initializers/telegram_simple_messenger.rb
TelegramSimpleMessenger.default_api_key=MY_API_KEY
TelegramSimpleMessenger.default_chat_id=MY_CHAT_ID
Simple call the service:
TelegramSimpleMessenger.send_message("Hello world!")
You can overwrite the default API KEY and CHAT ID passing them as arguments:
TelegramSimpleMessenger.send_message("Hello world!", ANOTHER_API_KEY, ANOTHER_CHAT_ID)
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/telegram_simple_messenger.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that telegram_simple_messenger 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.