Skip to content

Instantly share code, notes, and snippets.

@Senorsen
Senorsen / telecomadmin-password_HG261GS.js
Last active January 28, 2021 01:20
retrive telecomadmin password (HG261GS G60D1.00M4000)
// open http://192.168.1.1/cgi-bin/baseinfoSet.cgi
console.log(
json.BASEINFOSET.baseinfoSet_TELECOMPASSWORD
.split('&')
.filter(it => it)
.map(it => String.fromCharCode(Number(it) > 57 ? Number(it) - 4 : Number(it)))
.join('')
)