last version
This commit is contained in:
commit
4f89e35803
9
LICENSE
Normal file
9
LICENSE
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2023 leaf
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
15
README.md
Normal file
15
README.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# tool_autologin_wlan
|
||||||
|
|
||||||
|
学校校园的自动登录被禁用了,于是写了个脚本替代原本的自动登录
|
||||||
|
仅支持windows
|
||||||
|
|
||||||
|
###使用方法
|
||||||
|
1. 导入系统计划任务
|
||||||
|
将plan_task.xml里的内容进行修改
|
||||||
|
|
||||||
|
- <Author>FIBER-LAPTOP\leaf(填你的计算机名和用户名)</Author>
|
||||||
|
- [EventData[Data[@Name='SSID']='(填wifi名)']]
|
||||||
|
- <UserId>S-1-5-21-433269246-2958678966-4243435114-1001(填用户ID)</UserId>
|
||||||
|
- <Command>C:\Users\leaf\Apps\scripts\WLAN_autologin.vbs (填脚本位置)</Command>
|
||||||
|
|
||||||
|
2. 连接wifi测试触发
|
9
WLAN_autologin.vbs
Normal file
9
WLAN_autologin.vbs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
Dim wsh
|
||||||
|
Set wsh = CreateObject("wscript.shell")
|
||||||
|
set wshshell=CreateObject("wscript.shell")
|
||||||
|
wshshell.Run "explorer ""http://172.16.128.139/eportal/index.jsp?wlanuserip=a3357996790a3feaef0b9320120a5b7c&wlanacname=6703bb7db3de72764c306f5edff0658c&ssid=fa8cbcad3babdbfdf6138ca33d1cfce3&nasip=65e32a27ce47066051e4ea28fd79ea95&mac=e4d16b43e173565a49e9f37327b657c6&t=wireless-v2&url=64d70091b1789d1742d40e96d136bc85e4dfbe7d34276b3e""" '如果浏览器打不开添加绝对路径,后面添加访问的路径
|
||||||
|
WScript.Sleep 1000*5
|
||||||
|
wsh.AppActivate "上网认证"
|
||||||
|
wsh.SendKeys "{ENTER}"
|
||||||
|
WScript.Sleep 1000*3
|
||||||
|
wsh.SendKeys "^{w}"
|
BIN
WLAN_autologin.xml
Normal file
BIN
WLAN_autologin.xml
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user