Giter Site home page Giter Site logo

nuistnet's Introduction

NUISTNet

南京信息工程大学校园网自动登录脚本(适配新系统)

使用教程可以参考https://github.com/pd12bbf7608ae1/NUISTNet.Deprecated

如何写类似的脚本可以参考https://github.com/pd12bbf7608ae1/NJUPT_Network_AutoLogin

本项目仅适配了新系统,使用方式仍然相同。

注意

2022-11-24 脚本已经根据新的系统进行了修改,应该没有问题了。另追加了simple版本的脚本,仅保留登录功能。

2022-11-19 学校修改了系统,暂时可以将脚本开头的loginServer修改为10.255.255.46使用 项目过几天会跟进。

2021-9-28 目前本脚本已经稳定运行近2个月,应该没有什么问题了。

2021-8-18 学校无线网络完成改造,应该可以适配无线网络登录了。

2021-8-6 目前该程序仅用于完成改造的校园有线网络(登陆页面为10.255.255.34),并没经过大量测试,仍在测试阶段。

nuistnet's People

Contributors

pd12bbf7608ae1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

pommissarzhu pea4

nuistnet's Issues

curl报错 但运行两遍之后又莫名其妙连上了

root@MiRouter:# sh /root/nuistnet.sh
测试网络通断...
网络断开,尝试连接登录服务器...
获取当前登录信息...
获取本地IP...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 35 100 35 0 0 7000 0 --:--:-- --:--:-- --:--:-- 8750
IP获取成功
地址: 10.11.192.242
/root/nuistnet.sh: line 201: iconv: not found
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 138 0 0 100 138 0 2029 --:--:-- --:--:-- --:--:-- 2059
curl: (23) Failed writing body (0 != 241)
curl 错误 Code:127
未知情况,默认断网处理
获取本地IP...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 35 100 35 0 0 3888 0 --:--:-- --:--:-- --:--:-- 4375
IP获取成功
地址: 10.11.192.242
/root/nuistnet.sh: line 102: iconv: not found
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 130 0 0 100 130 0 1625 --:--:-- --:--:-- --:--:-- 1645
curl: (23) Failed writing body (0 != 243)
curl 错误 Code:127
使用硬编码ID
获取本地IP...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 35 100 35 0 0 3181 0 --:--:-- --:--:-- --:--:-- 3500
IP获取成功
地址: 10.11.192.242
尝试登录...
/root/nuistnet.sh: line 152: iconv: not found
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 129 0 0 100 129 0 358 --:--:-- --:--:-- --:--:-- 357
curl: (23) Failed writing body (0 != 65)
curl 错误 Code:127
root@MiRouter:# sh /tmp/nuistnet.sh
测试网络通断...
网络断开,尝试连接登录服务器...
获取当前登录信息...
获取本地IP...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 35 100 35 0 0 5833 0 --:--:-- --:--:-- --:--:-- 7000
IP获取成功
地址: 10.11.192.242
/tmp/nuistnet.sh: line 201: iconv: not found
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 138 0 0 100 138 0 2705 --:--:-- --:--:-- --:--:-- 2760
curl: (23) Failed writing body (0 != 241)
curl 错误 Code:127
未知情况,默认断网处理
获取本地IP...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 35 100 35 0 0 2692 0 --:--:-- --:--:-- --:--:-- 2916
IP获取成功
地址: 10.11.192.242
/tmp/nuistnet.sh: line 102: iconv: not found
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 130 0 0 100 130 0 1585 --:--:-- --:--:-- --:--:-- 1585
curl: (23) Failed writing body (0 != 243)
curl 错误 Code:127
使用硬编码ID
获取本地IP...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 35 100 35 0 0 3888 0 --:--:-- --:--:-- --:--:-- 4375
IP获取成功
地址: 10.11.192.242
尝试登录...
/tmp/nuistnet.sh: line 152: iconv: not found
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 129 0 0 100 129 0 1869 --:--:-- --:--:-- --:--:-- 1897
curl: (23) Failed writing body (0 != 248)
curl 错误 Code:127
root@MiRouter:~# sh /tmp/nuistnet.sh
测试网络通断...
已经联网,退出

第一次失败我以为是root文件夹权限问题就转移到了tmp,运行前都给nuistnet.sh了777权限,不太清楚是不是我路由器环境的问题

你好

你好,假设我想做宽带聚合,可不可以用这个做到

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.