-
Notifications
You must be signed in to change notification settings - Fork 139
/
index.js
70 lines (53 loc) · 3.32 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
import fetch from "node-fetch"
import HttpsProxyAgent from "https-proxy-agent"
import chalk from 'chalk'
import fs from 'fs'
import gradient from 'gradient-string'
import readline from 'readline'
process.stdout.write(
String.fromCharCode(27) + "]0;" + `TikTok Mass Report Bot | Reports: 0 | Speed: 0/m` + String.fromCharCode(7)
);
console.error = function() {}
process.on('uncaughtException' || "unhandledRejection", function (err) {
null
});
function ascii() {
console.clear()
const ascii = gradient.vice(`
▄▄▄▄▄▪ ▄ •▄ ▄▄▄▄▄ ▄ •▄ ▄▄▄▄· ▄• ▄▌▄▄▌ ▄ •▄ ▄▄▄ ▄▄▄ . ▄▄▄· ▄▄▄ ▄▄▄▄▄
•██ ██ █▌▄▌▪•██ ▪ █▌▄▌▪ ▐█ ▀█▪█▪██▌██• █▌▄▌▪ ▀▄ █·▀▄.▀·▐█ ▄█▪ ▀▄ █·•██
▐█.▪▐█·▐▀▀▄· ▐█.▪ ▄█▀▄ ▐▀▀▄· ▐█▀▀█▄█▌▐█▌██▪ ▐▀▀▄· ▐▀▀▄ ▐▀▀▪▄ ██▀· ▄█▀▄ ▐▀▀▄ ▐█.▪
▐█▌·▐█▌▐█.█▌ ▐█▌·▐█▌.▐▌▐█.█▌ ██▄▪▐█▐█▄█▌▐█▌▐▌▐█.█▌ ▐█•█▌▐█▄▄▌▐█▪·•▐█▌.▐▌▐█•█▌ ▐█▌·
▀▀▀ ▀▀▀·▀ ▀ ▀▀▀ ▀█▄▀▪·▀ ▀ ·▀▀▀▀ ▀▀▀ .▀▀▀ ·▀ ▀ .▀ ▀ ▀▀▀ .▀ ▀█▄▀▪.▀ ▀ ▀▀▀
`)
console.log(ascii)
console.log(chalk.grey('----------------------------------------------------------------------------------------------------------------------'))
console.log(chalk.white(' https://github.com/Lorenzik/TMRB'),chalk.grey(" | "),chalk.white('https://github.com/Lorenzik/TMRB'),chalk.grey(" | "),chalk.white('https://github.com/Lorenzik/TMRB'),)
console.log(chalk.grey('----------------------------------------------------------------------------------------------------------------------\n'))
}
ascii()
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
rl.question(`${chalk.gray(`${new Date().toLocaleTimeString()} `) + chalk.grey(`[`) + chalk.cyan.bold(`?`) + chalk.grey(`]`)} Enter the request URL from Inspect Element: `, async function (answer) {
ascii()
var reportCount = 1, reportsPerSecond = 0
var text = fs.readFileSync('proxies.txt','utf8')
var proxies = text.split(/\r?\n/)
setInterval(() => {
proxies.forEach(async proxy => {
const proxyAgent = new HttpsProxyAgent(`https://${proxy}`);
const url = await fetch(answer, { agent: proxyAgent});
const json = await url.json();
console.log(chalk.gray(` ${new Date().toLocaleTimeString()} `) + gradient.vice(` Send report with ID: ${json.extra.logid} | Report count: ${reportCount}`))
reportCount++,reportsPerSecond++
})
}, 300);
setInterval(() => {
process.stdout.write(
String.fromCharCode(27) + "]0;" + `TikTok Mass Report Bot | Reports: ${reportCount} | Speed: ${reportsPerSecond*6}/m` + String.fromCharCode(7)
);
reportsPerSecond = 0
}, 10000);
})