惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

罗磊的独立博客
SecWiki News
SecWiki News
酷 壳 – CoolShell
酷 壳 – CoolShell
爱范儿
爱范儿
量子位
M
MIT News - Artificial intelligence
GbyAI
GbyAI
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
TaoSecurity Blog
TaoSecurity Blog
博客园 - 【当耐特】
H
Heimdal Security Blog
腾讯CDC
The Last Watchdog
The Last Watchdog
Security Archives - TechRepublic
Security Archives - TechRepublic
Hacker News: Ask HN
Hacker News: Ask HN
S
Schneier on Security
Microsoft Security Blog
Microsoft Security Blog
WordPress大学
WordPress大学
博客园 - 司徒正美
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Cybersecurity and Infrastructure Security Agency CISA
S
SegmentFault 最新的问题
大猫的无限游戏
大猫的无限游戏
Application and Cybersecurity Blog
Application and Cybersecurity Blog
F
Full Disclosure
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Threatpost
月光博客
月光博客
A
Arctic Wolf
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
雷峰网
雷峰网
T
Troy Hunt's Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The Cloudflare Blog
D
DataBreaches.Net
O
OpenAI News
L
LINUX DO - 最新话题
宝玉的分享
宝玉的分享
小众软件
小众软件
V
Vulnerabilities – Threatpost
A
About on SuperTechFans
人人都是产品经理
人人都是产品经理
T
The Exploit Database - CXSecurity.com
Martin Fowler
Martin Fowler
美团技术团队
P
Privacy International News Feed

WishMeLz

柯尼卡美能达 bizhub C226 复印机 SMB 扫描到电脑配置教程 minio 最后的绝唱 搭建配置流程 - WishMeLz Namecrane/CraneMail 优化访问速度之 - Nginx stream 做 TCP 邮件代理 Scriptable 小组件 - 搬瓦工 - WishMeLz 港卡,CSL 记录 - WishMeLz Electron 主进程起一个可用的 HTTPS 静态服务器 - WishMeLz 目标域名在线测试 - WishMeLz Safari 解锁 120hz - WishMeLz CraneMail 优化访问速度之 - Stunnel/HAProxy - WishMeLz Linux 工具箱整理 - WishMeLz Docker 使用指南 - WishMeLz
某x面板每月自动重置流量功能 - WishMeLz
WishMeLz · 2025-12-25 · via WishMeLz
最新版貌似已经添加了重置功能
const axios = require("axios");
const https = require("https");

const baseUrl = "https://xxx.xxx.cn:12221/oG5g0pFGbeeL5Aq";

const api = axios.create({
    baseURL: baseUrl,
    httpsAgent: new https.Agent({
        rejectUnauthorized: false,
    }),
    timeout: 20000,
});

async function main() {
    // 登录
    const loginRes = await api.post("/login", {
        username: "",
        password: "",
    });

    // 提取 set-cookie
    const setCookies = loginRes.headers["set-cookie"];
    if (!setCookies || setCookies.length === 0) {
        throw new Error("login response has no set-cookie");
    }

    const cookieHeader = setCookies.map((c) => c.split(";")[0]).join("; ");

    console.log("cookie:", cookieHeader);

    // 重置所有入站
    const resAllInbound = await api.post("/panel/inbound/resetAllTraffics", null, {
        headers: {
            Cookie: cookieHeader,
        },
    });

    console.log(resAllInbound.data);
    // 重置所有用户
    const resAllUser = await api.post("/panel/inbound/resetAllClientTraffics/-1", null, {
        headers: {
            Cookie: cookieHeader,
        },
    });
    console.log(resAllUser.data);
    console.log("all reset done");
}

main().catch((err) => {
    console.error("FATAL:", err.message);
});

2025-12-25T07:52:39.png


最后编辑时间为: December 25th , 2025 at 03:37 pm
本文由 Wish 创作,采用 知识共享署名 4.0 国际许可协议进行许可
可自由转载、引用,但需署名作者且注明文章出处

标签 : 无标签