Skip to content

Instantly share code, notes, and snippets.

@0x5e
Last active May 5, 2022 12:28
Show Gist options
  • Save 0x5e/710b2f3fa600921eb292a73689ef0a05 to your computer and use it in GitHub Desktop.
Save 0x5e/710b2f3fa600921eb292a73689ef0a05 to your computer and use it in GitHub Desktop.
获取电信超管密码
#!/bin/sh
# 使用方式:
# 1. 使用小翼管家App绑定光猫,确保光猫处于在线状态
# 2. 打开抓包工具,同时手机打开网关详情页,开关一下指示灯,获取token和mac地址
# 3. 填入下面的环境变量中运行
mac="112233AABBCC"
token="........................................................................................................"
curl -H "AppKey: u1wnD9pYvSobwllR8bisYw==" --data '{"Params":[],"MethodName":"GetTAPasswd","RPCMethod":"CallMethod","ObjectPath":"/com/ctc/igd1/Telecom/System","InterfaceName":"com.ctc.igd1.SysCmd","ServiceName":"com.ctc.igd1"}' https://nos9.189cube.com/device/api?token=$token&MAC=$mac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment