ESC-Z icon indicating copy to clipboard operation
ESC-Z copied to clipboard

GD天翼校园shell脚本

Results 4 ESC-Z issues
Sort by recently updated
recently updated
newest added

Runtime error Unhandled exception during request dispatching /usr/lib/lua/luci/ucodebridge.lua:23: ...r/lib/lua/luci/model/cbi/esurfing-client/setting.lua:2: attempt to call method 'get_wandev' (a nil value) In error(), file [C] called from function [anonymous function] (/usr/lib/lua/luci/ucodebridge.lua:23) called from function...

https://img1.imgtp.com/2023/10/27/1OJ6183N.jpg

emmm不知道咋说 验证码获取失败,getVerifyCode里的data再到getJson获取的值是对的,但是一被当做赋值,花括号就不见了。 大概就是 正确传递的应该是{"version":"214","username":"114514","clientip":"xx.xx.xx.xx","nasip":"xx.xx.xx.xx","mac":"xxxxxx","timestamp":"123456","authenticator":"456789"} 但是从脚本传递出来的却是 "version":"214","username":"114514","clientip":"xx.xx.xx.xx","nasip":"xx.xx.xx.xx","mac":"xxxxxx","timestamp":"123456","authenticator":"456789" 花括号不见了,然后直接就返回验证码错误了 ![Screenshot_20231025_105832_HttpCanary](https://github.com/Z446C/ESC-Z/assets/38871500/1fdd7e15-c94a-406b-8d01-f00f9ec77944) 如果看不懂,就看一下抓包图片吧QAQ 按照这样的话,脚本内的schoolid可能也会获取错误。虽然我已经指定好了_(´ཀ`」 ∠)__

1,脚本开头应该是bash而非sh,否则语法不对还需要指定用bash执行 2,在虚拟机和实机Linux测试后发现,nasip变量会出现/r控制符,并随数据发送,导致获取验证码失败{"rescode":"-1","resinfo":"Unterminated string at character 90 of {省略}"} (验证码获取失败,请检查账号密码),以及登录失败{"rescode":"-1","resinfo":"challenge is null"},但是在Windows下使用git bash可正常登录。 测试环境:Kali官方VMware虚拟机环境(网络桥接),AArch64 Debian Bullseye(Wi-Fi) 已知解决方案是在要用到nasip的地方直接重新赋值,在getVerifyCode()和loginTask()的buffer前拆入一句nasip="119.146.175.80"治标,关于如何治本,我暂时没有头绪。