waikkii / waikiki_ninja Goto Github PK
View Code? Open in Web Editor NEW自用,仅为青龙变量添加工具
自用,仅为青龙变量添加工具
但是填入PT_key显示获取用户信息失败,请不吝赐教呀,谢谢。
目前不能修改备注,WSKEY也不能录入
另外希望可以自动选择开关WSKEY录入,还有可以显示推送的二维码图片
不能进入备注面板,也不能看到推送二维码,怎么搞
重复请求了,先删除了
大佬会考虑添加到ninja里面吗?
rm -rf ck sc pt cl(){ read -p "请输入手机号: " mobile appid=959 qversion=1.0.0 country_code=86 } ck(){ ts=$(expr $(date +%s%N) / 1000000) sub_cmd=1 gsign=$(echo -n $appid$qversion$ts"36"$sub_cmd"sb2cwlYyaCSN1KUv5RHG3tmqxfEb8NKN" | md5sum | cut -d ' ' -f1) d="client_ver=1.0.0&gsign=$gsign&appid=$appid&return_page=https%3A%2F%2Fcrpl.jd.com%2Fn%2Fmine%3FpartnerId%3DWBTF0KYY%26ADTAG%3Dkyy_mrqd%26token%3D&cmd=36&sdk_ver=1.0.0&sub_cmd=$sub_cmd&qversion=$qversion&ts=$ts" l=${#d} curl -s -k -i --raw -o ck --http2 -X POST -H "Host:qapplogin.m.jd.com" -H "cookie:" -H "user-agent:Mozilla/5.0 (Linux; Android 10; V1838T Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/98.0.4758.87 Mobile Safari/537.36 hap/1.9/vivo com.vivo.hybrid/1.9.6.302 com.jd.crplandroidhap/1.0.3 ({"packageName":"com.vivo.hybrid","type":"deeplink","extra":{}})" -H "accept-language:zh-CN,zh;q=0.9,en;q=0.8" -H "content-type:application/x-www-form-urlencoded; charset=utf-8" -H "content-length:$l" -H "accept-encoding:" -d "$d" "https://qapplogin.m.jd.com/cgi-bin/qapp/quick" gsalt=$(cat ck | grep -o "gsalt.*" | cut -d '"' -f3) guid=$(cat ck | grep -o "guid.*" | cut -d '"' -f3) lsid=$(cat ck | grep -o "lsid.*" | cut -d '"' -f3) rsa_modulus=$(cat ck | grep -o "rsa_modulus.*" | cut -d '"' -f3) ck=$(echo "guid=$guid; lsid=$lsid; gsalt=$gsalt; rsa_modulus=$rsa_modulus;") } sc(){ ts=$(expr $(date +%s%N) / 1000000) sub_cmd=2 gsign=$(echo -n $appid$qversion$ts"36"$sub_cmd$gsalt | md5sum | cut -d ' ' -f1) sign=$(echo -n $appid$qversion$country_code$mobile'4dtyyzKF3w6o54fJZnmeW3bVHl0$PbXj' | md5sum | cut -d ' ' -f1) d="country_code=$country_code&client_ver=1.0.0&gsign=$gsign&appid=$appid&mobile=$mobile&sign=$sign&cmd=36&sub_cmd=$sub_cmd&qversion=$qversion&ts=$ts" l=${#d} curl -s -k -i --raw -o sc --http2 -X POST -H "Host:qapplogin.m.jd.com" -H "cookie:$ck" -H "user-agent:Mozilla/5.0 (Linux; Android 10; V1838T Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/98.0.4758.87 Mobile Safari/537.36 hap/1.9/vivo com.vivo.hybrid/1.9.6.302 com.jd.crplandroidhap/1.0.3 ({"packageName":"com.vivo.hybrid","type":"deeplink","extra":{}})" -H "accept-language:zh-CN,zh;q=0.9,en;q=0.8" -H "content-type:application/x-www-form-urlencoded; charset=utf-8" -H "content-length:$l" -H "accept-encoding:" -d "$d" "https://qapplogin.m.jd.com/cgi-bin/qapp/quick" err_msg=$(cat sc | grep -o "err_msg.*" | cut -d '"' -f3) [ -z $err_msg ] && echo 手机号为$mobile的验证码发送成功 || echo $err_msg } pt(){ read -p "请输入验证码: " smscode ts=$(expr $(date +%s%N) / 1000000) sub_cmd=3 gsign=$(echo -n $appid$qversion$ts"36"$sub_cmd$gsalt | md5sum | cut -d ' ' -f1) d="country_code=$country_code&client_ver=1.0.0&gsign=$gsign&smscode=$smscode&appid=$appid&mobile=$mobile&cmd=36&sub_cmd=$sub_cmd&qversion=$qversion&ts=$ts" l=${#d} curl -s -k -i --raw -o pt --http2 -X POST -H "Host:qapplogin.m.jd.com" -H "cookie:$ck" -H "user-agent:Mozilla/5.0 (Linux; Android 10; V1838T Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/98.0.4758.87 Mobile Safari/537.36 hap/1.9/vivo com.vivo.hybrid/1.9.6.302 com.jd.crplandroidhap/1.0.3 ({"packageName":"com.vivo.hybrid","type":"deeplink","extra":{}})" -H "accept-language:zh-CN,zh;q=0.9,en;q=0.8" -H "content-type:application/x-www-form-urlencoded; charset=utf-8" -H "content-length:$l" -H "accept-encoding:" -d "country_code=$country_code&client_ver=1.0.0&gsign=$gsign&smscode=$smscode&appid=$appid&mobile=$mobile&cmd=36&sub_cmd=$sub_cmd&qversion=$qversion&ts=$ts" "https://qapplogin.m.jd.com/cgi-bin/qapp/quick" err_msg=$(cat pt | grep -o "err_msg.*" | cut -d '"' -f3) if [ -z $err_msg ] then pt_key=$(cat pt | grep -o "pt_key.*" | cut -d '"' -f3) pt_pin=$(cat pt | grep -o "pt_pin.*" | cut -d '"' -f3) qlck="pt_key=$pt_key;pt_pin=$pt_pin;" echo 你的JD_COOKIE为 $qlck rm -rf ck sc pt else echo $err_msg fi } cl && ck && sc [ -z $err_msg ] && pt
把默认5701改成了自己的端口,就打不开了,删掉.env文件就又能打开了
最新版支持对wskey的有效性检查
目前提交的代码就是所有修改的有效代码,多余部分以及我们俩仓库通用部分我已经移除了代码
巨佬,请问这部分代码如何修改,才能实现 ninja连接部署在另外一台服务器的青龙呢?
假设 青龙host是 http://256.256.256.256:6666
用户名密码分别是 username
, password
https://github.com/Waikkii/Waikiki_ninja/blob/main/backend/ql.js#L8-L19
const qlDir = process.env.QL_DIR || '/ql';
const authFile = path.join(qlDir, 'config/auth.json');
const api = got.extend({
prefixUrl: process.env.QL_URL || 'http://localhost:5600',
retry: { limit: 0 },
});
async function getToken() {
const authConfig = JSON.parse(await readFile(authFile));
return authConfig.token;
}
感谢巨佬
请问大佬wsck是多长时间转一次,一睁眼上百条失效消息
env环境已改true
wsck录入好像无效啊,输入了一点反应都没有~
请问有时间吗,给你发了邮件,希望能详细问一下
抱歉白天没啥时间,只有晚上搞搞
今天试了下,容器内存在ck,然后登录是ok的
但是新ck的话,登录直接无响应
控制台直接报错如下,你看看:
POST http://xxxxx.cn/api/cklogin 500 (Internal Server Error)
(anonymous) @ vendor.4eb73c88.js:15
(anonymous) @ vendor.4eb73c88.js:15
_fetch @ vendor.4eb73c88.js:15
o @ vendor.4eb73c88.js:15
async function (async)
o @ vendor.4eb73c88.js:15
create @ vendor.4eb73c88.js:15
Qg.t. @ vendor.4eb73c88.js:16
(anonymous) @ index.34a494f0.js:1
CKLogin @ index.34a494f0.js:1
di @ vendor.4eb73c88.js:1
pi @ vendor.4eb73c88.js:1
dn @ vendor.4eb73c88.js:1
handleClick @ vendor.4eb73c88.js:1
Vf.createBlock.onClick.t..t. @ vendor.4eb73c88.js:1
di @ vendor.4eb73c88.js:1
pi @ vendor.4eb73c88.js:1
n @ vendor.4eb73c88.js:1
vendor.4eb73c88.js:15 HTTPError: Request failed with status code 500 Internal Server Error
at o (vendor.4eb73c88.js:15)
at async Promise.r. [as json] (vendor.4eb73c88.js:15)
at async CKLogin (index.34a494f0.js:1)
o @ vendor.4eb73c88.js:15
async function (async)
o @ vendor.4eb73c88.js:15
create @ vendor.4eb73c88.js:15
Qg.t. @ vendor.4eb73c88.js:16
(anonymous) @ index.34a494f0.js:1
CKLogin @ index.34a494f0.js:1
di @ vendor.4eb73c88.js:1
pi @ vendor.4eb73c88.js:1
dn @ vendor.4eb73c88.js:1
handleClick @ vendor.4eb73c88.js:1
Vf.createBlock.onClick.t..t. @ vendor.4eb73c88.js:1
di @ vendor.4eb73c88.js:1
pi @ vendor.4eb73c88.js:1
n @ vendor.4eb73c88.js:1
vendor.4eb73c88.js:15 TypeError: Cannot read properties of undefined (reading 'clone')
at Promise.r. [as json] (vendor.4eb73c88.js:15)
at async CKLogin (index.34a494f0.js:1)
r. @ vendor.4eb73c88.js:15
async function (async)
r. @ vendor.4eb73c88.js:15
(anonymous) @ index.34a494f0.js:1
CKLogin @ index.34a494f0.js:1
di @ vendor.4eb73c88.js:1
pi @ vendor.4eb73c88.js:1
dn @ vendor.4eb73c88.js:1
handleClick @ vendor.4eb73c88.js:1
Vf.createBlock.onClick.t..t. @ vendor.4eb73c88.js:1
di @ vendor.4eb73c88.js:1
pi @ vendor.4eb73c88.js:1
n @ vendor.4eb73c88.js:1
index.34a494f0.js:1 TypeError: Cannot read properties of undefined (reading 'data')
at CKLogin (index.34a494f0.js:1)
CKLogin @ index.34a494f0.js:1
async function (async)
CKLogin @ index.34a494f0.js:1
di @ vendor.4eb73c88.js:1
pi @ vendor.4eb73c88.js:1
dn @ vendor.4eb73c88.js:1
handleClick @ vendor.4eb73c88.js:1
Vf.createBlock.onClick.t..t. @ vendor.4eb73c88.js:1
di @ vendor.4eb73c88.js:1
pi @ vendor.4eb73c88.js:1
n @ vendor.4eb73c88.js:1
第二个容器ninja文件夹还是空的,这个不说了,我现在知道想改Ninja 环境变量的话可以
cd /ql/ninja/backend
cp .env.example .env
pm2 start
那是不是现在不能在文件夹里对第二个容器的ninja环境变量进行更改了
只能用cd /ql/ninja/backend
cp .env.example .env
vi .env
pm2 start
是吗?
抓包数据显示cookie未获取到用户信息,最近频繁发生 cookie是正常可用的
这个当前也是无效的吗?
控制台输出
从打开首页开始报错:index.34a494f0.js:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'showQR')
at t (index.34a494f0.js:1)
at index.34a494f0.js:1
at di (vendor.4eb73c88.js:1)
at pi (vendor.4eb73c88.js:1)
at Array.t.__weh.t.__weh (vendor.4eb73c88.js:1)
at Fi (vendor.4eb73c88.js:1)
at Bi (vendor.4eb73c88.js:1)
t @ index.34a494f0.js:1
(anonymous) @ index.34a494f0.js:1
di @ vendor.4eb73c88.js:1
pi @ vendor.4eb73c88.js:1
t.__weh.t.__weh @ vendor.4eb73c88.js:1
Fi @ vendor.4eb73c88.js:1
Bi @ vendor.4eb73c88.js:1
Promise.then (async)
ji @ vendor.4eb73c88.js:1
Pi @ vendor.4eb73c88.js:1
Mi @ vendor.4eb73c88.js:1
Pn @ vendor.4eb73c88.js:1
(anonymous) @ vendor.4eb73c88.js:1
Ye @ vendor.4eb73c88.js:1
Kt @ vendor.4eb73c88.js:1
(anonymous) @ vendor.4eb73c88.js:1
Ye @ vendor.4eb73c88.js:1
Kt @ vendor.4eb73c88.js:1
(anonymous) @ vendor.4eb73c88.js:1
Ye @ vendor.4eb73c88.js:1
Kt @ vendor.4eb73c88.js:1
set value @ vendor.4eb73c88.js:1
x @ vendor.4eb73c88.js:21
(anonymous) @ vendor.4eb73c88.js:21
Promise.then (async)
y @ vendor.4eb73c88.js:21
v @ vendor.4eb73c88.js:21
install @ vendor.4eb73c88.js:21
use @ vendor.4eb73c88.js:1
(anonymous) @ index.34a494f0.js:1
点击ck登录无响应,并报错下面这个,
index.34a494f0.js:1 TypeError: Cannot read properties of undefined (reading 'eid')
at CKLogin (index.34a494f0.js:1)
昨天重装之后ninja还是可以添加ck的,但现在新老ck都不能添加,都会显示失败
还有,ninja文件夹内没有.env文件,只有.env.example文件,改了其中参数之后没用,ninja不变
大神这是新出现的bug吗,昨天还正常啊
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.