
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.
gleamingexaltedactivemovie
Advanced tools
 Join the Official [Discord support server](https://discord.gg/QWS3zcAPXb)
Join the Official Discord support server
npm i discord-webhook.js
send info message:
const { Webhook } = require("discord-webhook.js")
const hook = new Webhook("WEBHOOK URL")
hook.sendInfo("WEBHOOK NAME", "this is info") // you can put avatar by adding hook.setAvatar("AVATAR URL")
Output:
send Warn message:
const { Webhook } = require("discord-webhook.js")
const hook = new Webhook("WEBHOOK URL")
hook.sendWarn("WEBHOOK NAME", "this is Warn")
Output:
send Error message:
const { Webhook } = require("discord-webhook.js")
const hook = new Webhook("WEBHOOK URL")
hook.sendErr("WEBHOOK NAME", "this is Error")
Output:
send Success message:
const { Webhook } = require("discord-webhook.js")
const hook = new Webhook("WEBHOOK URL")
hook.sendSuccess("WEBHOOK NAME", "this is Success")
Output:
How to send message?
const { Webhook } = require("discord-webhook.js")
const hook = new Webhook("YOUR WEBHOOK URL")
hook.setUsername("discord-webhooks.js")
hook.setAvatar("AVATAR URL")
hook.send("hi there!!")
Output:
how to send embed ?
const { Webhook, MessageBuilder } = require("discord-webhook.js")
const hook = new Webhook("YOUR WEBHOOK URL")
const embed = new MessageBuilder()
.setTitle('My title here')
.setAuthor('author', 'https://cdn.discordapp.com/embed/avatars/0.png', 'https://www.google.com')
.setURL('https://www.google.com')
.addField('field', 'this is inline', true)
.addField('field', 'this is not inline') // deafult is false
.setColor('#00b0f4')
.setThumbnail('https://cdn.discordapp.com/embed/avatars/0.png')
.setDescription('description')
.setImage('https://cdn.discordapp.com/embed/avatars/0.png')
.setFooter('Footer', 'https://cdn.discordapp.com/embed/avatars/0.png')
.setTimestamp();
hook.setUsername("Discord")
hook.send(embed)
Output:
you can send text + embed by using .setText()
Example:
const { Webhook, MessageBuilder } = require("discord-webhook.js")
const hook = new Webhook("YOUR WEBHOOK URL")
const embed = new MessageBuilder()
.setText("this is a message")
.setTitle('My title here')
.setAuthor('author', 'https://cdn.discordapp.com/embed/avatars/0.png', 'https://www.google.com')
.setURL('https://www.google.com')
.addField('field', 'this is inline', true)
.addField('field', 'this is not inline') // deafult is false
.setColor('#00b0f4')
.setThumbnail('https://cdn.discordapp.com/embed/avatars/0.png')
.setDescription('description')
.setImage('https://cdn.discordapp.com/embed/avatars/0.png')
.setFooter('Footer', 'https://cdn.discordapp.com/embed/avatars/0.png')
.setTimestamp();
hook.setUsername("Discord")
hook.send(embed)
Output:
FAQs
 Join the Official [Discord support server](https://discord.gg/QWS3zcAPXb)
We found that gleamingexaltedactivemovie 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.