mirror of
https://github.com/smallfawn/QLScriptPublic.git
synced 2026-01-14 22:40:42 +08:00
Compare commits
8 Commits
c1ca236d4f
...
1dab8d05b5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1dab8d05b5 | ||
|
|
5e24bc910b | ||
|
|
305a41509a | ||
|
|
37769631df | ||
|
|
79ec6e04c8 | ||
|
|
3128c8a506 | ||
|
|
a59d9dec29 | ||
|
|
0538c007cf |
80
Coca2.py
Normal file
80
Coca2.py
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
# -*- encoding: utf-8 -*-
|
||||||
|
# @Time : 18:57
|
||||||
|
# @Author : yuxian
|
||||||
|
# @Email : 1503889663@qq.com
|
||||||
|
# @File : Coca.py
|
||||||
|
# @SoftWare : PyCharm
|
||||||
|
# 可口可乐吧小程序,抓包authorization(全部内容 copy即可),填入环境变量Coca中,多账号换行或@隔开
|
||||||
|
import json, os, hashlib, random, time, requests as r
|
||||||
|
|
||||||
|
|
||||||
|
def UF(): return f"Mozilla/5.0 (iPhone; CPU iPhone OS {f'{random.randint(12, 15)}.{random.randint(0, 6)}.{random.randint(0, 9)}'} like Mac OS X) AppleWebKit/{f'{random.randint(600, 700)}.{random.randint(1, 4)}.{random.randint(1, 5)}'} (KHTML, like Gecko) Mobile/15E148 MicroMessenger/7.0.20(0x16001422) NetType/WIFI Language/zh_CN"
|
||||||
|
|
||||||
|
|
||||||
|
def generate_random_string_and_timestamp():
|
||||||
|
T = ''.join(random.choices('0123456789abcdefghijklmnopqrstuvwxyz', k=8))
|
||||||
|
d = str(int(time.time() * 1000))
|
||||||
|
return T, d
|
||||||
|
|
||||||
|
|
||||||
|
def sha256_encrypt(data):
|
||||||
|
hash_object = hashlib.sha256()
|
||||||
|
hash_object.update(data.encode('utf-8'))
|
||||||
|
hex_dig = hash_object.hexdigest()
|
||||||
|
return hex_dig
|
||||||
|
|
||||||
|
|
||||||
|
def get_header(url1):
|
||||||
|
T, d = generate_random_string_and_timestamp()
|
||||||
|
message = url1.replace("https://koplus.icoke.cn/cre-bff", "")
|
||||||
|
encrypted_data = sha256_encrypt(message + T + d + "apyuc3#7%m4*")
|
||||||
|
headers = {"x-sg-id": T, "x-sg-timestamp": d, "x-sg-signature": encrypted_data}
|
||||||
|
return headers
|
||||||
|
|
||||||
|
|
||||||
|
U = "https://koplus.icoke.cn/cre-bff/wechat/"
|
||||||
|
P = os.environ.get("Coca")
|
||||||
|
if P and P != "":
|
||||||
|
C = P.split("\n") if "\n" in P else P.split("@")
|
||||||
|
A = 1
|
||||||
|
for B in C:
|
||||||
|
try:
|
||||||
|
H = {
|
||||||
|
"Host": "koplus.icoke.cn",
|
||||||
|
"Connection": "keep-alive",
|
||||||
|
"xweb_xhr": "1",
|
||||||
|
"Authorization": B,
|
||||||
|
"User-Agent": UF(),
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
"Accept": "*/*",
|
||||||
|
"Accept-Language": "*",
|
||||||
|
"Sec-Fetch-Site": "cross-site",
|
||||||
|
"Sec-Fetch-Mode": "cors",
|
||||||
|
"Sec-Fetch-Dest": "empty",
|
||||||
|
"Referer": "https://servicewechat.com/wxa5811e0426a94686/364/page-frame.html",
|
||||||
|
"Accept-Encoding": "gzip, deflate, br"
|
||||||
|
}
|
||||||
|
url = f"{U}checkin"
|
||||||
|
H.update(get_header(url))
|
||||||
|
signReq = r.post(url=url, headers=H)
|
||||||
|
signResp = json.loads(signReq.text)
|
||||||
|
print(f"🎉开始签到账号:{A}🎉")
|
||||||
|
A += 1
|
||||||
|
if signResp["meta"]["transactionPoint"]:
|
||||||
|
print(f"⭕签到成功,获得{str(int(signResp['meta']['transactionPoint']) / 10)}个快乐瓶⭕")
|
||||||
|
elif signResp["meta"]["transactionPoint"] is None:
|
||||||
|
print("❗今日已签到,请勿重复签到❗")
|
||||||
|
else:
|
||||||
|
print("❌出现未知错误,签到失败❌")
|
||||||
|
time.sleep(3)
|
||||||
|
url = f"{U}profile"
|
||||||
|
H.update(get_header(url))
|
||||||
|
qReq = r.get(url=url, headers=H)
|
||||||
|
qResp = json.loads(qReq.text)
|
||||||
|
print(f"🎉开始查询账号积分🎉")
|
||||||
|
if qResp["data"]:
|
||||||
|
print(f"🎆账号快乐瓶总额:{str(int(qResp['data']['point']) / 10)}🎆")
|
||||||
|
else:
|
||||||
|
print("❌出现未知错误,查询失败❌")
|
||||||
|
except:
|
||||||
|
print("⚠️⚠️⚠️脚本报错执行下一个账号⚠️⚠️⚠️")
|
||||||
44
README.md
44
README.md
@ -16,7 +16,7 @@ time:2024/08/03
|
|||||||
``````
|
``````
|
||||||
export smallfawnPushWhite="脚本名字@脚本名字2"
|
export smallfawnPushWhite="脚本名字@脚本名字2"
|
||||||
``````
|
``````
|
||||||
# 组织基地:QQ群551674817
|
# 组织基地:QQ群1021185005
|
||||||
# 青龙面板拉库命令
|
# 青龙面板拉库命令
|
||||||
``````
|
``````
|
||||||
ql repo https://mirror.ghproxy.com/https://github.com/smallfawn/QLScriptPublic.git
|
ql repo https://mirror.ghproxy.com/https://github.com/smallfawn/QLScriptPublic.git
|
||||||
@ -25,18 +25,36 @@ ql repo https://mirror.ghproxy.com/https://github.com/smallfawn/QLScriptPublic.g
|
|||||||
``````
|
``````
|
||||||
#老版青龙(2.11.3)搭建命令
|
#老版青龙(2.11.3)搭建命令
|
||||||
docker run -dit \
|
docker run -dit \
|
||||||
-v $PWD/ql/config:/ql/config \
|
-v $PWD/ql/config:/ql/config \
|
||||||
-v $PWD/ql/log:/ql/log \
|
-v $PWD/ql/log:/ql/log \
|
||||||
-v $PWD/ql/db:/ql/db \
|
-v $PWD/ql/db:/ql/db \
|
||||||
-v $PWD/ql/repo:/ql/repo \
|
-v $PWD/ql/repo:/ql/repo \
|
||||||
-v $PWD/ql/raw:/ql/raw \
|
-v $PWD/ql/raw:/ql/raw \
|
||||||
-v $PWD/ql/scripts:/ql/scripts \
|
-v $PWD/ql/scripts:/ql/scripts \
|
||||||
-v $PWD/ql/deps:/ql/deps \
|
-p 5700:5700 \
|
||||||
-p 5700:5700 \
|
--name qinglong \
|
||||||
--name qinglong \
|
--hostname qinglong \
|
||||||
--hostname qinglong \
|
--restart unless-stopped \
|
||||||
--restart unless-stopped \
|
yanyu.icu/whyour/qinglong:2.11
|
||||||
registry.cn-hangzhou.aliyuncs.com/smallfawn/qinglong:2.11.3
|
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
qinglong:
|
||||||
|
image: yanyu.icu/whyour/qinglong:2.11
|
||||||
|
container_name: qinglong
|
||||||
|
hostname: qinglong
|
||||||
|
volumes:
|
||||||
|
- $PWD/ql/config:/ql/config
|
||||||
|
- $PWD/ql/log:/ql/log
|
||||||
|
- $PWD/ql/db:/ql/db
|
||||||
|
- $PWD/ql/repo:/ql/repo
|
||||||
|
- $PWD/ql/raw:/ql/raw
|
||||||
|
- $PWD/ql/scripts:/ql/scripts
|
||||||
|
ports:
|
||||||
|
- 5700:5700
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
https://github.com/whyour/qinglong/tree/d6614acf66a243fddc494bcfcee44b3a55020591
|
||||||
``````
|
``````
|
||||||
#最新版青龙搭建命令
|
#最新版青龙搭建命令
|
||||||
docker run -dit \
|
docker run -dit \
|
||||||
|
|||||||
1985
dianxin.js
Normal file
1985
dianxin.js
Normal file
File diff suppressed because it is too large
Load Diff
@ -20,7 +20,7 @@ let GacmotorCookies = './GacmotorCookies.json';//指定文件目录
|
|||||||
const $ = new Env("广汽传祺");
|
const $ = new Env("广汽传祺");
|
||||||
const notify = $.isNode() ? require('./sendNotify') : '';
|
const notify = $.isNode() ? require('./sendNotify') : '';
|
||||||
//const { updateEnv11, getEnvs, updateEnv } = require("./ql")
|
//const { updateEnv11, getEnvs, updateEnv } = require("./ql")
|
||||||
const appVersion = "5.1.12"
|
const appVersion = "5.1.22"
|
||||||
//let ckName = "gacmotorToken";
|
//let ckName = "gacmotorToken";
|
||||||
//let envSplitor = ["@", "\n"]; //多账号分隔符
|
//let envSplitor = ["@", "\n"]; //多账号分隔符
|
||||||
let strSplitor = "#"; //多变量分隔符
|
let strSplitor = "#"; //多变量分隔符
|
||||||
@ -874,7 +874,7 @@ class UserInfo {
|
|||||||
let { body: result } = await httpRequest(options);
|
let { body: result } = await httpRequest(options);
|
||||||
//console.log(options);
|
//console.log(options);
|
||||||
result = JSON.parse(result);
|
result = JSON.parse(result);
|
||||||
//console.log(result);
|
console.log(result);
|
||||||
if (result.resultCode == "0") {
|
if (result.resultCode == "0") {
|
||||||
if (result.data == true) {
|
if (result.data == true) {
|
||||||
//已签
|
//已签
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user