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.
ez-whatsapp
Advanced tools
Ini adalah wrapper untuk WA Baileys agar penggunaan api dari Baileys semakin mudah dan lebih cepat untuk setupnya. Juga terdapat tambahan fitur seperti Message Builder dan Message Extractor (merubah object pesan agar lebih enak digunakan).
Contoh pembuatan socket client
import Whatsapp, { Client } from "../Whatsapp";
// new Whatsapp(sessionID, options);
const wa: Whatsapp = new Whatsapp('david-14A', {
browser: Client.Opera,
showQRinTerminal: true
});
wa.login()
wa.onConnected((info: any) => {
console.log('Connected', info);
setTimeout(() => {
wa.stopSock() // to stop socket without logout
wa.logout() // to logout from socket
}, 50_000);
})
wa.onDisconnected((reasonInfo: object) => {
console.log('Disconnected', reasonInfo);
})
wa.onConnecting(() => {
console.log('Reconecting');
})
Untuk mengirim pesan
const msg = wa.createMessage()
msg.rawPayload({
text: 'Hello World'
})
msg.text('Hello World')
msg.send()
FAQs
Baileys API wrapper for easier usage
The npm package ez-whatsapp receives a total of 4 weekly downloads. As such, ez-whatsapp popularity was classified as not popular.
We found that ez-whatsapp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.