Skip to content

Instantly share code, notes, and snippets.

@Senorsen
Last active January 28, 2021 01:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Senorsen/c1b6150392927ad72145d6a50a427513 to your computer and use it in GitHub Desktop.
Save Senorsen/c1b6150392927ad72145d6a50a427513 to your computer and use it in GitHub Desktop.
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('')
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment