
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.
fca-dung-bot
Advanced tools
npm install fca-dung-bot
project
| node_modules
| index.js
| appState.json
| SayHello.js
| MyController.js
const {Deploy, utils} = require('fca-dung-bot')
const {Fs} = utils
const MyController = require('./MyController')
class MyDeploy extends Deploy {
constructor() {
super();
const appState = Fs.getJSON(__dirname + "/appState.json");
this.setConfig({
config: {
name: "Dunn Bot", // Tên của bot,
own: "100000000000000", // ID facebook admin
prefix: "!", // Prefix mặc định của bot
subAdmins: ["100000000000000"], // ID facebook của sub admins
},
});
this.setController(new MyController());
this.facebook(appState)
.then((client) => {
// write your code here
})
.catch(console.log);
}
}
new MyDeploy();
const {Controller} = requrie('fca-dung-bot')
const SayHello = require('./SayHello')
class MyController extends Controller {
constructor() {
super();
this.commands.add(null, new SayHello());
}
}
module.exports = MyController
const {Command} = require('fca-dung-bot')
class SayHello extends Command {
name = "sayhello"; // Tên của command (bắt buộc) là tên người dùng gọi
description = "Say hello to you";
guide = "sayhello";
/**
*
* @param {import('fca-dung-bot/lib/types').CommandPs} params
*/
async onCall(params) {
const { event, message, api } = params;
// https://github.com/Schmavery/facebook-chat-api
api.sendMessage(
"Hello world!",
event.threadID,
(err, info) => {
if (err) return console.log(err);
},
event.messageID
);
// hàm reply của dunn-bot
message.reply("Hello world!", event.threadID, event.messageID);
// return string để bot tự động reply
return "Hello world!";
}
}
module.exports = SayHello
FAQs
Simple chat bot with nodejs
The npm package fca-dung-bot receives a total of 0 weekly downloads. As such, fca-dung-bot popularity was classified as not popular.
We found that fca-dung-bot 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.