z446c / esc-z Goto Github PK
View Code? Open in Web Editor NEWGD天翼校园shell脚本
License: GNU General Public License v3.0
GD天翼校园shell脚本
License: GNU General Public License v3.0
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"治标,关于如何治本,我暂时没有头绪。
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 ((tail call))
In anonymous function, file /usr/share/ucode/luci/runtime.uc, line 148, byte 45:
called from function [arrow function] (/usr/share/ucode/luci/dispatcher.uc:794:4)
called from function render ([C])
called from function render_action (/usr/share/ucode/luci/dispatcher.uc:768:24)
called from function run_action (/usr/share/ucode/luci/dispatcher.uc:795:4)
called from function [anonymous function] (/usr/share/ucode/luci/dispatcher.uc:1008:48)
called from function run_action (/usr/share/ucode/luci/dispatcher.uc:831:78)
called from function [anonymous function] (/usr/share/ucode/luci/dispatcher.uc:1008:48)
called from anonymous function (/www/cgi-bin/luci:39:13)
return lcall.call(modname, method, ...args);
Near here ----------------------------------------^
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"
如果看不懂,就看一下抓包图片吧QAQ
按照这样的话,脚本内的schoolid可能也会获取错误。虽然我已经指定好了_(´ཀ`」 ∠)__
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.