GithubHelp home page GithubHelp logo

mercurialjd / wifiloginer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shanghaitechgeekpie/wifiloginer

0.0 1.0 0.0 11.73 MB

不同语言实现的上海科技大学网络自动验证登录器

License: GNU General Public License v2.0

Ruby 3.17% Python 49.62% Shell 16.14% C# 19.64% PowerShell 8.10% JavaScript 3.34%

wifiloginer's Introduction

WifiLoginer

上海科技大学网络自动验证登录器

这里有多位同学写的不同版本,大家可以根据介绍自行选用。


EZNetLoginer

作者:吕文涛

环境:Linux/Mac OS X/Windows/Android/UNIX Like

语言:Python 2.5+

实现登录功能、Heartbeat保持登录、记住密码、语言切换


WifiLoginer

作者:陈宸

环境:OS with ruby

语言:Ruby

实现登录功能


Shtulogin

作者:邓岂

环境:Linux/Mac OS X/Windows etc.

语言:Golang

基本的登录功能实现


CURL

作者:邓岂

环境:Linux/Mac OS X/Windows etc.

语言:shell 脚本

需要curl

1.命令行下直接:

curl -k -H "Content-Type: application/x-www-form-urlencoded" -X POST -v --data \
"userName=(你的用户名)&password=(你的密码)&hasValidateCode=false&authLan=zh_CN"  \
--cookie "JSESSIONID=D56359E00B58C7877668AAB44B3BFE31" \
https://controller.shanghaitech.edu.cn:8445/PortalServer//Webauth/webAuthAction\!login.action

2.Shell 脚本:

./shtech.sh 用户名 密码

3.用wget wget支持下载的时候认证,所以也可以用来做认证

wget --header="Content-Type: application/x-www-form-urlencoded"  \
--no-check-certificate   \
--header="Cookie:JSESSIONID=D56359E00B58C7877668AAB44B3BFE31"    \
--post-data="userName=(用户名)&password=(密码)&hasValidateCode=false&authLan=zh_CN" \
https://controller.shanghaitech.edu.cn:8445/PortalServer//Webauth/webAuthAction\!login.action \

UWPLoginer

作者:夏寅岑

环境:Windows 10 higher than version 1511(10586)

语言:C# & XAML

实现登录功能、记住密码、后台自动登陆*


Shtulogin

作者:邓岂

环境:Windows only. 需要 Poweshell > 4.0.

语言:

  1. 基本的登录功能
  2. 保持连接
  3. 账号密码的本地存储(交互式)
  4. 优雅的配色

launchd

作者:荆玉琢

环境:macOS (only), 欢迎 port 到 systemd

语言:shell & launchd

  1. 连上 Wi-Fi 后自动判断是否为ShanghaiTech,并自动进行登录
  2. 可设定重试次数

使用方式:

  1. 先用你最喜欢的编辑器打开launchd/shtechlogin 文件,修改usernamepassword变量,然后在命令行中
chmod +x shtechlogin
cp shtechlogin /usr/local/bin/shtechlogin

此时若/usr/local/bin/PATH 中,则可直接通过命令行运行shtechlogin 进行一次性登录

  1. 将服务文件添加到系统launchd托管
sed "s/WHOAMI/$(whoami)/g" org.geekpie.wifiloginer.plist > ~/Library/LaunchAgents/org.geekpie.wifiloginer.plist
launchctl load ~/Library/LaunchAgents/org.geekpie.wifiloginer.plist

此后每次接入ShanghaiTech都会自动进行登录,生成的log文件在~/Library/Logs/shtechlogin.log,可以用Console.app进行查看。

wifiloginer's People

Contributors

allankevinrichie avatar chenminhua avatar linonetwo avatar nerdneilsfield avatar nerdroychan avatar philipxyc avatar superobertking avatar wtlyu avatar zeanzhou avatar

Watchers

 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.