Re: [问题] Hinet付费热点

楼主: tomsawyer (安安)   2024-02-29 19:51:22
一样用他原本那个git
我是只改这样 连iTaiwan 基本上只有auth的网址跟referer有点不同跟username/password不太一样
然后我是cronjob */1 * * * * 你sh放的地方
供你参考
原著作为 https://github.com/jikker/dd-wrt-auto-login-CHT-Wi-Fi
#!/bin/sh
# default script path: /opt/script/login-cht-wifi.sh
# default curl path: /opt/usr/bin/curl
# original author: JustinTWD <[email protected]>
# author: jikker <[email protected]>
# date: 2017/07/17
# note: phone number account format: [email protected]
# HN account format: [email protected]
#要改的部分
USERNAME=ABCDEF123456@itw
PASSWD=myegov
LOGFILE=/tmp/cht-wifi.log
TMPSESSION=/tmp/cht_session.tmp
login_v2() {
rm -f $TMPSESSION
#wlan1 换成你自己的连到热点的phy名称
R1=$(/usr/bin/curl

Links booklink

Contact Us: admin [ a t ] ucptt.com