Skip to content

一个使用Nodejs实现的Giwif自动登录脚本(适用于HPU)

Notifications You must be signed in to change notification settings

GiraffeLe/Auto-Giwifi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

介绍

这是一个能够自动登录河南理工大学的校园网GiWifi的脚本

具体分析内容见 博客文章

实现流程

  1. Cheerio获取登陆页面的表单项的值
  2. 然后使用Crypto-js进行本地加密处理.
  3. 最后将加密好的数据以post请求发送至学校服务器

使用

需要Node环境

下载 dist文件夹中的 index.js文件

index.js所在文件夹中

node index.js 你的账号 你的密码 认证服务器ip(可选)

认证服务器ip默认为10.53.1.3

node index.js 123456789 123456789 
node index.js 123456789 123456789 10.53.1.3

如果输入的账号密码正确,控制台会输出"认证成功,稍后跳转"

Todo

目前此脚本仅仅能够完成简单的登录

需要改善的地方还有很多.

目前只适用于HPU(大概) 别的学校的认证的时候数据没有加密,直接就能抓到

开发

将代码下载到本地

git clone https://github.com/GiraffeLe/Auto-Giwifi

下载依赖(axios,cheerio,crypto-jsncc打包)

npm install

输出dist/index.js

全局安装ncc

npm install -g ncc

打包成dist

ncc build index.js

About

一个使用Nodejs实现的Giwif自动登录脚本(适用于HPU)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published