🌴 Sync 2026-03-05 23:51:42

This commit is contained in:
github-actions[bot] committed 2026-03-05 23:51:42 +08:00
1 parent 97c049ed0a
commit 0acff03804
14253 files changed
+3893239

No files matched your search

@@ -0,0 +1,5 @@
config chongyoung 'config'
option time '30'
option user ''
@@ -0,0 +1,15 @@
#默认模拟安卓登陆
system CDMA+WLAN(Maod)
#设备系统前缀
prefix %21%5EAdcm0
#AidcAuthAttr系统版本参数
AidcAuthAttr3 47dnVRav
AidcAuthAttr4 gPwzFkyhP04Z6c7pbsAg7um8YYOF5bdMhDM287AMbR7Xpjk%3D
AidcAuthAttr5 46lnVROuQxpFton6Esgh%2Fpf5N43uue8PnUBpq%2FZSLEDCpyUGI67httmCm433
AidcAuthAttr6 4qttSxWgXRtHtJfzFcMq%2Fok%3D
AidcAuthAttr8 %2FqhnThW2QBpR6si9BZ5xutqma9H%2F6bdP0BM87v9JM0DfoCcaKbO%2F952MzsKyBsVfv0JLLXpIFPlQGcstHb0cPsY2cz5jSGqL99ONjVD7t5SxkcHEoS4%3D
AidcAuthAttr15 465kShc%3D
AidcAuthAttr22 4g%3D%3D
AidcAuthAttr23 oew0GEDpHg%3D%3D
@@ -0,0 +1,32 @@
#31天密码
1=
2=
3=
4=
5=
6=
7=
8=
9=
10=
11=
12=
13=
14=
15=
16=
17=
18=
19=
20=
21=
22=
23=
24=
25=
26=
27=
28=
29=
30=
31=
+35
View File
@@ -0,0 +1,35 @@
#!/bin/sh /etc/rc.common
START=99
log_file="/tmp/log/chongyoung.log"
start() {
enabled=$(uci get chongyoung.config.enabled)
if [ "$enabled" -eq 1 ]; then
kill -9 $(pgrep -f "/usr/bin/chongyong") 2>/dev/null
sh /usr/bin/chongyong &
echo "[$(date "+%Y-%m-%d %H:%M:%S")]: 已启用" >> "$log_file"
return 1
else
kill -9 $(pgrep -f "/usr/bin/chongyong") 2>/dev/null
echo "[$(date "+%Y-%m-%d %H:%M:%S")]: 停止认证" >> "$log_file"
fi
}
stop() {
kill -9 $(pgrep -f "/usr/bin/chongyong") 2>/dev/null
echo "[$(date "+%Y-%m-%d %H:%M:%S")]: 已停用" >> "$log_file"
}
restart() {
stop
sleep 1
start
echo "$(date "+%Y-%m-%d %H:%M:%S"): 已重新启动 /etc/autoshell.sh"
}
disable() {
echo "禁用功能未实现"
}
+72
View File
@@ -0,0 +1,72 @@
#!/bin/sh
userprofile="/etc/config/userprofile"
logfile="/tmp/log/chongyoung.log"
time=$(uci get chongyoung.config.time)
edition="/etc/config/edition"
init() {
user=$(uci get chongyoung.config.user)
fyxml=`curl -H "Accept: */*" -H "User-Agent:CDMA+WLAN(Maod)" -H "Accept-Language: zh-Hans-CN;q=1" -H "Accept-Encoding: gzip, deflate" -H "Connection: keep-alive" -H "Content-Type:application/x-www-form-urlencoded" -L "http://100.64.0.1"`
fylgurl=`echo $fyxml | awk -v head="CDATA[" -v tail="]" '{print substr($0, index($0,head)+length(head),index($0,tail)-index($0,head)-length(head))}'`
usmac=`echo $fyxml | awk -v head="sermac=" -v tail="&wlanacname" '{print substr($0, index($0,head)+length(head),index($0,tail)-index($0,head)-length(head))}'`
acname=`echo $fyxml | awk -v head="wlanacname=" -v tail="&wlanuserip" '{print substr($0, index($0,head)+length(head),index($0,tail)-index($0,head)-length(head))}'`
usip=`echo $fyxml | awk -v head="wlanuserip=" -v tail="]" '{print substr($0, index($0,head)+length(head),index($0,tail)-index($0,head)-length(head))}'`
AidcAuthAttr1=`echo $fyxml | awk -v head="Attr1>" -v tail="</Aidc" '{print substr($0, index($0,head)+length(head),index($0,tail)-index($0,head)-length(head))}'`
system=`cat $edition | grep -vE "^#" | grep system |awk '{print $2}'`
prefix=`cat $edition | grep -vE "^#" | grep prefix |awk '{print $2}'`
AidcAuthAttr3=`cat $edition | grep -vE "^#" | grep AidcAuthAttr3 |awk '{print $2}'`
AidcAuthAttr4=`cat $edition | grep -vE "^#" | grep AidcAuthAttr4 |awk '{print $2}'`
AidcAuthAttr5=`cat $edition | grep -vE "^#" | grep AidcAuthAttr5 |awk '{print $2}'`
AidcAuthAttr6=`cat $edition | grep -vE "^#" | grep AidcAuthAttr6 |awk '{print $2}'`
AidcAuthAttr8=`cat $edition | grep -vE "^#" | grep AidcAuthAttr8 |awk '{print $2}'`
AidcAuthAttr15=`cat $edition | grep -vE "^#" | grep AidcAuthAttr15 |awk '{print $2}'`
AidcAuthAttr22=`cat $edition | grep -vE "^#" | grep AidcAuthAttr22 |awk '{print $2}'`
AidcAuthAttr23=`cat $edition | grep -vE "^#" | grep AidcAuthAttr23 |awk '{print $2}'`
}
login() {
lgg=`echo "curl -d \"&createAuthorFlag=0&UserName=${prefix}${user}&Password=${passwd}&AidcAuthAttr1=${AidcAuthAttr1}&AidcAuthAttr3=${AidcAuthAttr3}&AidcAuthAttr4=${AidcAuthAttr4}&AidcAuthAttr5=${AidcAuthAttr5}&AidcAuthAttr6=${AidcAuthAttr6}&AidcAuthAttr8=${AidcAuthAttr8}&AidcAuthAttr15=${AidcAuthAttr15}&AidcAuthAttr22=${AidcAuthAttr22}&AidcAuthAttr23=${AidcAuthAttr23}\" -H \"User-Agent: ${system}\" -H \"Content-Type: application/x-www-form-urlencoded\" \"${fylgurl}\"" | sh`
result=`echo $lgg | awk -v head="ReplyMessage>" -v tail="</ReplyMessage" '{print substr($0, index($0,head)+length(head),index($0,tail)-index($0,head)-length(head))}'`
}
heart() {
sys="CDMA+WLAN(Maod)"
hht=`echo "curl -d \"\" -H \"User-Agent: ${sys}\" -H \"Content-Type: application/x-www-form-urlencoded\" \"http://58.53.199.146:8007/Hv6_dW\" " | sh`
ht=echo $hht
}
while true; do
log_line_count=$(wc -l < "$logfile")
if [ "$log_line_count" -gt 100 ]; then
echo "日志行数达到上限,已覆盖" > "$logfile"
fi
ping -c 3 8.8.8.8 >/dev/null
if [ $? -eq 0 ]; then
echo "[$(date "+%Y-%m-%d %H:%M:%S")] 已登陆" >> $logfile
heart
echo $hht
else
echo "[$(date "+%Y-%m-%d %H:%M:%S")] 未登录,正在连接" >> $logfile
init
day=`echo ${AidcAuthAttr1:6:2} | sed -r 's/^0*([^0]+|0)$/\1/'`
day="^$day="
passwd=`cat $userprofile | grep -vE "^#" | grep -E $day |awk -F= '{print $2}' `
login
echo "$result" >> $logfile
echo "用户账号:$user" >> $logfile
echo "用户密码:$passwd" >> $logfile
echo "用户设备MAC:$usmac" >> $logfile
echo "用户IP地址:$usip" >> $logfile
echo "服务器地址:$acname" >> $logfile
echo "服务器时间:$AidcAuthAttr1" >> $logfile
fi
sleep $time
done