Giter Club home page Giter Club logo

srun-lzu-network-auth's Introduction

兰大深澜网络认证工具

last-commit release-date Python package

Followers watchers stars forks

Open Source Love GPL Licence Repo-Size

Total alerts Language grade: Python

(English version is down below)

Python库依赖

程序

Python版兰大深澜网络认证CLI登录、注销、查询信息客户端。

目前支持SRun CGI Auth Intf Svr V1.18 B20200522,可能并不局限于兰州大学(当然要指定loginurl),也可能向前向后版本都会兼容。请多多尝试!

使用方法:

--help     或 -h 来显示此消息.
--loginurl 或 -l 来指定 login_url.
--action   或 -a 来指定操作.
         info   来显示当前登录账户信息.
         logout 来退出当前登录.
         login  来使用指定信息登录.
--username 或 -u 来指定登录用户名.
--password 或 -p 来指定登录密码.

使用示例:

'-a login [-u username [ -p password]]'    来使用指定信息登录.
'-a logout -l 10.10.0.166'                 来使用指定的 login_url 退出当前登录.
'<empty>'                                  来显示当前登录账户信息.

Srun LZU Network Auth

Python Dependencies

Programme

Tool for CLI login, logout, check acccount info for LZU 'SRun CGI Auth Intf Svr V1.18' using Python.

Currently, SRun CGI Auth Intf Svr V1.18 B20200522 is supported. The programme may not be limited to Lanzhou University (of course, you should specify loginurl), may also be compatible with both newer and older versions. Please give it a try!

Usage:

--help     or -h to show this info.
--loginurl or -l to specify login_url.
--action   or -a to specify action.
         info   to show current loggin infomation.
         logout to logout current account.
         login  to login with specified information.
--username or -u to specify User Name.
--password or -p to specify Password.

Examples:

'-a login [-u username [ -p password]]'    to login with specified information.
'-a logout -l 10.10.0.166'                 to logout current account with specified login_url.
'<empty>'                                  to show current loggin infomation.

srun-lzu-network-auth's People

Contributors

hollowman6 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

cnyoki

srun-lzu-network-auth's Issues

有点小问题

Logout...
Logout Success!
Traceback (most recent call last):
File "xyw.py", line 521, in
login(username, passwd)
File "xyw.py", line 277, in login
srbx1, hmd5, chksum = do_encrypt_work(
File "xyw.py", line 262, in do_encrypt_work
srbx1 = "{SRBX1}"+get_base64(get_xencode(srbx1, token))
File "xyw.py", line 157, in get_base64
b10 = (_getbyte(s, i) << 16) | (_getbyte(s, i + 1) << 8)
File "xyw.py", line 130, in _getbyte
x = ord(s[i])
IndexError: string index out of range

Python 3.8.10
之前使用的时候没有这个问题

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.