
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@moscowcity/djs-eval
Advanced tools
This package helps you quickly evaluate any thing via discord.js bot.
This package helps you quickly evaluate any thing via discord.js bot.
Package requires Node.js v10+ to run.
Install package using this command:
$ npm install discord-js-eval
First, declare requirement.
const _eval = require('@moscowcity/djs-eval');
Then create command:
const _evalCommand = new _eval.Eval([ 'owner', 'Ids' ], 'locale'); // Locales: ru/en
Only 1 thing left, call 'run' function. 2nd argument
_evalCommand.run(messageObject);
To run with dependencies (client, message, args, etc) use this:
_evalCommand.run(messageObject, {bot: client, etc: 'etc'});
const _eval = require("@moscowcity/djs-eval");
const Eval = new _eval.Eval(["323424226889433088"], "ru");
module.exports.run = async (client, message) => {
Eval.run(message, { bot: 0 });
};
Imagine that message content is:
const moment = require("moment")
moment(Date.now()).format("DD.MM.YYYY HH:mm")
If author id is not the same as specified, output message:
You are not permitted to use this command!
If everything is correct, output message:
06.08.2021 11:47 // example
Reply from code with .catch(), or just send callback use 'doReply()' or 'doReply' in your code. To make callback with error, use doReply in .catch():
doReply('test');
or
doSomething().then(doSomethingElse()).catch(doReply);
To get all methods of class, use 'getMethods(obj)'
doReply(getMethods(require('@moscowcity/djs-eval')))
FAQs
This package helps you quickly evaluate any thing via discord.js bot.
We found that @moscowcity/djs-eval 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.