
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.
djs-confirmation
Advanced tools
Confirmations with reactions or buttons in an easy way.
Using Node.js require()
const confirmation = require("djs-confirmations");
Using ES6 imports
import confirmation from "djs-confirmations";
////// MAKE SURE YOU DEFINED THE PACKAGE
const Discord = require("discord.js");
const client = new Discord.Client({ intents: [Discord.Intents.FLAGS.GUILDS, Discord.Intents.FLAGS.GUILD_MESSAGES] });
client.on("ready", () => console.log(`I am ready to make cool button confirmations.`));
client.on("message", message => {
if (message.author.bot) return;
if (message.content == "confirm") {
const returned = new confirmation.ButtonConfirmation(
message.channel /*channel to send the message*/,
messageOptions /*message's options (MessageOptions)*/,
message.author.id /*User to click the button*/,
).start();
let interaction = returned[1];
if (returned[0]) {
interaction.reply("You selected true");
} else {
interaction.reply("You selected false");
}
}
});
client.login("super secret token");
Find em out with the typings or just check the internal codes at https://npm.runkit.com/djs-confirmations I'll do this later bye :D
FAQs
Confirmations with reactions or buttons in an easy way.
The npm package djs-confirmation receives a total of 2 weekly downloads. As such, djs-confirmation popularity was classified as not popular.
We found that djs-confirmation 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.