
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.
discord-temprole
Advanced tools
const Discord = require('discord.js') // import the discord module
const client = new Discord.Client()
const temprole = require('discord-temprole')
const ms = require('ms')
const prefix = '!'
temprole.connect("MONGODB_URL")
client.on('ready', async () => {
await temprole.schedule(client)
})
client.on('message', async (message) => {
const args = message.content.trim().split(/ +/g)
const cmd = args[0].slice(prefix.length).toLowerCase()
if(cmd === 'temprole'){
if(!args[0]) return message.channel.send('Please specify a role')
if(!args[1]) return message.channel.send('Please mention a member')
if(!args[2]) return message.channel.send('Please specify a duration')
const role = message.mentions.roles.first()
const member = message.mentions.members.first()
const duration = ms(args[2])
const guild = message.guild
await temprole.temprole(guild, member, role, duration)
}
})
client.login("YOUR_DISCORD_BOT_TOKEN")
FAQs
Temprole using mongodb
The npm package discord-temprole receives a total of 4 weekly downloads. As such, discord-temprole popularity was classified as not popular.
We found that discord-temprole 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.