Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Commandes :
Events :
Utilitaire :
Tickets
npm install lib-djs
const Elysao = require("lib-djs");
const Discord = require("discord.js");
const Elysao = require("Lib-DJS");
const client = new Discord.Client();
const prefix = "!";
const token = "token du bot";
client.login(token).then(() => console.log("Je suis connecté !!");
client.on("message", (message) => {
if(message.content.startsWith(`${prefix}mute`) {
let member = message.mentions.members.first();
new Elysao.Commands().Mute({
member: member,
guild: message.guild
// Vous pouvez ajouter une raison mais elle n'est pas obligatoire
});
message.channel.send(`Le membre **${member.user.username}** a bien été mute.`);
}
});
const Discord = require("discord.js");
const { Ticket } = require("Lib-DJS");
const client = new Discord.Client();
const prefix = "prefix";
client.login("votre token");
// Initialisation du message via une commande dans un channel spécifique
client.on("message", message => {
if(message.content === `${prefix}ticket`) {
let channel = message.mentions.channels.first();
let embed = new d.MessageEmbed()
.setTitle("Création d'un ticket")
.setDescription("Pour ouvrir un ticket, cliquez sur 📩.")
.setColor("#388e3c")
.setFooter(`${client.user.username}`, client.user.displayAvatarURL());
channel.send(embed).then((msg) => msg.react("📩"));
}
});
// Ajout de la détection de la réaction
client.on("messageReactionAdd", (reaction, user) => {
let parent = reaction.message.guild.channels.cache.get("id"); // Optionnel
let message = reaction.message;
if(user.bot) return;
if(reaction.emoji.name === "📩") {
new Ticket(user, message, parent).Create(`Message`, "Message dans l'embed.", tableauDeRôlesAutorisés)
reaction.users.remove(user);
}
});
FAQs
- Commandes : - Kick ; - Ban ; - Mute ; - Unmmute ; - Clear ; - Nuke
We found that lib-djs 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.