浏览器登录光猫后台(admin/自己看光猫背面),然后粘贴以下代码到右键 F12 审查元素: --- fetch('/boaform/formSaveConfig', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, body: 'save_cs=1' }) .then(response => response.text()) .then(result => { if (result.includes('userreg.asp')) { alert('特么请先登录啊!') } else { prompt('您的 FJGDAdmin 密码为', getField(result, 'SUSER_PASSWORD')) } }) function getField(str, name) { let valueLine = str.split('\n').find(x => { return x.includes(name) }) return valueLine.trim().split('" Value="')[1].replace('"/>', '') } ---