yohoa / network-nuaa-by-raf Goto Github PK
View Code? Open in Web Editor NEWLogin in nuaa.portal WLAN with CLI tools.
Login in nuaa.portal WLAN with CLI tools.
curl 'http://202.119.65.214/iPortal/action/doLogin.do' -H 'Connection: keep-alive' -H 'Accept: application/json, text/javascript, /; q=0.01' -H 'Origin: http://202.119.65.214' -H 'X-Requested-With: XMLHttpRequest' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Referer: http://202.119.65.214/iPortal/index.htm?from=003cc944be32e253866e243f60c20815&wlanuserfirsturl=http://www.gstatic.com/generate_204' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: zh-CN,zh;q=0.9,zh-TW;q=0.8,en;q=0.7' --data 'username=自己替换&password=自己替换&saved=1&from=003cc944be32e253866e243f60c20815&domain=1' --compressed --insecure
要重新抓取curl了
我在mac上用curl执行了,发现无法连接
地点:明故宫校区,已更换对应的form
bogon:~ ruixinwu$ curl 'http://202.119.65.214/iPortal/action/doLogin.do' -X POST -H 'Content-Type: application/x-www-form-urlencoded' -H 'Referer: http://202.119.65.214/iPortal/index.htm?from=003cc944be32e253866e243f60c20815&wlanuserfirsturl=http://www.ip.cn/' -H 'Accept: application/json, text/javascript, /; q=0.01' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36' -H 'Origin: http://202.119.65.214' -H 'X-Requested-With: XMLHttpRequest' --data 'username={0117xxxxx}&password={xxxxxx}&saved=1&from=003cc944be32e253866e243f60c20815&domain=1'
回应是:{"status":1,"statusText":"","id":"0","num":"0","num2":"0","data":"{"domain":"公网资源","ip":"172.18.104.222","loginTime":"","saved":0,"status":"reject","username":"{0117xxxxx}"}","data2":"[]"}
【为保护隐私我隐藏了学号和密码】
I just moved to Minggugong Campus from Jinagjun Road Campus. And I find the value of from should changed to 003cc944be32e253866e243f60c20815
, and then the shell would work properly. Please update the shell, thank you!
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.