Code Monkey home page Code Monkey logo

giwifi-gear's Introduction

giwifi-gear (sh ver)

A UNIX shell command line interpreter tool for login giwifi

env

Any OS with UNIX command interpreter (GNU bash, zsh, other shells)

dep

  • curl

  • openssl (optional, for auth with app type)

  • gawk (optional, for windows and mac user)

usage

$ ./giwifi-gear.sh -h
giwifi-gear.sh
  A cli tool for login giwifi by cloud auth mode (multi-platform, fast, small)
usage:
  giwifi-gear.sh [-h] [-g <GATEWAY>] [-u <USERNAME>] [-p <PASSWORD>] [-t <TYPE>] [-T <TOKEN>] [-i <IFACE>] [-e <EXTRA_IFACE>] [-I] [-B] [-R] [-q] [-b] [-d] [-l] [-v]
optional arguments:
  -h                    show this help message and exit
  -g <GATEWAY>          set the gateway
  -u <USERNAME>         set the username
  -p <PASSWORD>         set the password
  -i <IFACE>            set the interface by name or ip
  -e <EXTRA_IFACE>      set the extra interface (-e vwan1 -e vwan2)
  -t <TYPE>             auth type (pc/pad/staff for web auth, android/ios/windows/mac/apad/ipad for app auth, token for directly auth by token, and default value is pc)
  -T <TOKEN>            set the token (need to use -t token)
  -b                    bind or rebind your device
  -q                    sign out of account authentication
  -I                    show more user info and host group info
  -B                    get the rebind mac counts
  -R					get the online records (raw data, within 6 months?)
  -d                    running in the daemon mode (remove sharing restrictions)
  -l                    print the log info
  -v                    show the tool version and exit
(c) 2020-2022 [email protected]

example

bind your device with the default pc type

$ giwifi-gear.sh -g 172.21.1.1 -u 13000000001 -p mypassword -b # -t pc

auth with mac auth type and daemon mode

$ giwifi-gear.sh -g 172.21.1.1 -u 13000000001 -p mypassword -t mac -d

auth with ipad auth type and specified interface

$ giwifi-gear.sh -u 13000000001 -p mypassword -t ipad -i wlan0 # will automatically detect the gateway

quit auth

$ giwifi-gear.sh -g 172.21.1.1 -q

and more...

giwifi-gear's People

Contributors

icepie avatar sakurajimamai69 avatar

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.