
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.
github.com/sajberk/rich-go
An implementation of Discord's rich presence in Golang for Linux, macOS and Windows, forked from hugolgst and adjusted for Snap and go module support that the other Snap fork did not have
Install github.com/sajberk/rich-go
:
$ go get github.com/sajberk/rich-go
First of all import rich-go
import "github.com/sajberk/rich-go/client"
then login by sending the first handshake
err := client.Login("DISCORD_APP_ID")
if err != nil {
panic(err)
}
and you can set the Rich Presence activity (parameters can be found :
err = client.SetActivity(client.Activity{
State: "Heyy!!!",
Details: "I'm running on rich-go :)",
LargeImage: "largeimageid",
LargeText: "This is the large image :D",
SmallImage: "smallimageid",
SmallText: "And this is the small image",
Party: &client.Party{
ID: "-1",
Players: 15,
MaxPlayers: 24,
},
Timestamps: &client.Timestamps{
Start: time.Now(),
},
})
if err != nil {
panic(err)
}
More details in the example
FAQs
Unknown package
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.