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.
tra-chat-api
Advanced tools
Special Thanks:
This package require NodeJS 14.17.0 to work properly.
Original Project(Deprecated): https://github.com/Schmavery/facebook-chat-api
Wish you a good day!, thank you for using HZI products, best regards
ARIF-VAU-TRA(April 15, 2023)
Facebook already exists and allows users to create Api for Chatbots 😪 Here => Here.
Note ! If You Want To Use This Api Please See Document At Here.
If You Want To Use It, Download It By:
npm i tra-chat-api
or
npm install tra-chat-api
It Will Download To node_modules (Your Lib) - Note Replit Will Not Show Anywhere To Find 😪
If You Want To Use The Latest Or Updated Version Then Go To Terminal Or Command Promt Type:
npm install tra-chat-api@latest
Or
npm i tra-chat-api@latest
The benefit of this is that you won't waste time paying and having an account 😪 Please Use With Test Account => Facebook Whitehat Accounts.
const login = require("tra-chat-api"); // get it from lib
// log in
login({email: "Gmail Account", password: "Your Facebook Password"}, (err, api) => {
if(err) return console.error(err); // error case
// create a bot that automatically imitates you:
api.listenMqtt((err, message) => {
api.sendMessage(message.body, message.threadID);
});
});
As a result, it will imitate you as shown below:
If You Want Advanced Use Then Use The Bot Types Listed Above!
You Can Read Full Api At => here.
You Need To Go To File Mirai.js, Then Find Line
var login = require('depend on bot');
/* Maybe :
var login = require('@maihuybao/fca-Unofficial');
var login = require('fca-xuyen-get');
var login = require('fca-unofficial-force');
...
*/
And Replace It With:
var login = require('tra-chat-api')
After that, run normally!
To Save, You Need 1 Apstate Type (Cookie, etc,..) To Save Or Use Login Code As Above To Log In!
And this mode is already available in some Vietnamese bots, so you can rest assured!
Instructions With Appstate
const fs = require("fs");
const login = require("tra-chat-api");
var credentials = {email: "FB_EMAIL", password: "FB_PASSWORD"}; // thông tin tk
login(credentials, (err, api) => {
if(err) return console.error(err);
// đăng nhập
fs.writeFileSync('appstate.json', JSON.stringify(api.getAppState(), null,'\t')); //tạo appstate
});
() You Can Use => TRS-FBSTATE To Get Fbstate And Rename It Back To Apstate! (appstate.json)
FAQS => Link
FAQs
Facebook-chat-api by rebel Rajput X Naughty
We found that tra-chat-api 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.