ER2260T 多网桥

 

备忘

 

HTTP样本, 请自行替换<SESSION_TOKEN>为当前浏览器会话的stok (见Network选项卡), 将bindif修改为自己的, 粘贴到Console执行即可。

var req = fetch("https://192.168.1.1/stok=<SESSION_TOKEN>/ds", {
    "headers": {
        "accept": "text/plain, */*; q=0.01",
        "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
        "cache-control": "no-cache",
        "content-type": "application/json; charset=UTF-8",
        "pragma": "no-cache",
        "sec-ch-ua": ""Chromium";v="104", " Not A;Brand";v="99", "Microsoft Edge";v="104"",
        "sec-ch-ua-mobile": "?0",
        "sec-ch-ua-platform": ""Windows"",
        "sec-fetch-dest": "empty",
        "sec-fetch-mode": "cors",
        "sec-fetch-site": "same-origin",
        "x-requested-with": "XMLHttpRequest"
    },
    "referrer": "https://192.168.1.1/",
    "referrerPolicy": "strict-origin-when-cross-origin",
    "body": '{"method":"add","network":{"table":"bridge","para":{"if_name":"TV","bindif":["GE1","GE2","V48"],"configif":"GE1","stp":"1"}}}',
    "method": "POST",
    "mode": "cors",
    "credentials": "omit"
});

 

posted on 2022-11-22 18:52  tonkai  阅读(884)  评论(1编辑  收藏  举报

导航

tonkai