Git Product home page Git Product logo

lgn_bjut_script's Introduction

lgn_bjut_script

适用于校内使用linux服务器登录网关的脚本

用法

  1. 修改login_bjut.sh中的DDDDDupass,分别填入账号和密码,DDDDD2upass2可填入另外一个账号,作为备用账号使用,主号停机时备用账号可以替代备用账号登录
  2. 设置login_bjut.sh中的v46s的值可以选择ipv6登录和ipv4登录,0代表ipv4和ipv6登录,1代表ipv4,2代表ipv6登录。
  3. 使用 bash login_bjut.sh命令登录网关,提示success证明登录成功,使用bash login_bjut.sh 4代表ipv4登陆,bash login_bjut.sh 6代表ipv6登陆。
  4. 退出网关使用bash logout_bjut.sh退出网关

无法登录?

查看无法登录的报错,即$gno$变量的值,修改$gno$变量为报错的$gno$值。

#if [ "$gno" == "Gno=01" ]; then
# 修改为报错值
if [ "$gno" == "Gno=44" ]; then
    echo "login_success"

lgn_bjut_script's People

Contributors

josephstalin117 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lgn_bjut_script's Issues

连不上网了

emmm我在本地跑了一下脚本,然后连接失败,但是跑脚本的时候是连接网络的状态之后就一直没法注销了,也没法上网,请问有什么办法吗

路由器

能否用于路由器登录,路由器已刷openwrt,不知道路由器能不能登录校园网

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.