
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.
Simple Ruby wrapper for the Wechat Admin API.
$ gem install wechat-rb
This wrapper tries to implement all available methods of the Wechat Admin API in a Ruby-like fashion. However, the Wechat API lacks a decent amount of methods that you expect an API to provide. Thus, if methods are missing or a certain implementation style was choosen it is most likely due to the inconsistency of the API itself. Feel free to get in touch or submit a pull request if you encounter any problems.
Must-known facts about the Wechat API:
Authenticate with the api credentials provided in your Wechat Admin Account.
Wechat.configure do |c|
c.api_appid = 'my_appid'
c.api_appsecret = 'my_secret'
# OPTIONAL, defaults to https://api.weixin.qq.com/cgi-bin
c.api_endpoint = 'https://api.weixin.qq.com/cgi-bin'
end
You can interact with the API on the provided data objects
# Send a custom Text message
Wechat::Message.send({to: 'oRVIRuNafMJvn-eEwd0r9nv5HhqE'}, {text: "Hello World"})
# Send a custom Image message
Wechat::Message.send({to: 'oRVIRuNafMJvn-eEwd0r9nv5HhqE'}, {image: "http://example.com/image.jpg"})
# Send a custom News message
Wechat::Message.send({to: 'oRVIRuNafMJvn-eEwd0r9nv5HhqE'}, {news: [{title: 'My title', description: 'My descript', url: 'www.example.com', pic_url: 'http://example.com/image.jpg'}]})
# Send a News Message Broadcast to all Followers
Wechat::Broadcast.send(news: [{title: 'My title', description: 'My descript', url: 'www.example.com', pic_url: 'http://example.com/image.jpg'}])
# Send a News Message Broadcast to select Followers
Wechat::Broadcast.send(news: [{title: 'My title', description: 'My descript', url: 'www.example.com', pic_url: 'http://example.com/image.jpg'}], ['oRVIRuNafMJvn-eEwd0r9nv5HhqE'])
# Get list of Followers
Wechat::Follower.list
# Get follower profile
Wechat::Follower.show('oRVIRuNafMJvn-eEwd0r9nv5HhqE')
# Create a Custom menu
Wechat::Menu.create({button: [{type: 'click',name: 'News', key: 'news_today'}]})
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)This gem was developed and tested with versions 2.0.0
Copyright (c) 2014 Eshaam Rabaney. See LICENSE.txt for details.
FAQs
Unknown package
We found that wechat-rb 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.