Add files via upload

This commit is contained in:
n3rddd 2024-06-01 22:15:45 +08:00 committed by GitHub
parent 82e3395c33
commit 37a64afb2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 127 additions and 5 deletions

1
JN/dr_py/js/29片库.js Normal file
View File

@ -0,0 +1 @@
H4sIADGjWmYC/+VZW2/byBV+96/gBkUobWnedLehZh3HzWXjJrHsYLtGIIzIITURRSrkULacCCj60KLoZdN2X4qmKFCg2H0p8tKHwg/tn9nE23/RM8OLeJPt3S7Qh8qIRM6cc+bMuXznzMQKXYMSzxVMbPiLGa2ZiKK68HJDgI+DqTDBC6Ev7LI578FAxq4h38On8gz5Aa7d6BqNjtFtdHvqyDL0nqn3Gh1LNfVGd4S7rZ56o76dSiLzSwRZnU633UKdlt5C7aapoY5qjLBlYdzCHb3byQoCViYFm1l5O3sDOdlDpD37GGQ2xj7Fp3Qrv/RtFOB2M16d75nzLCW2YUlYSSDzLfgnpe9Tz8QZWexV3r29uyKYIdMkrp2hgRH58cQIOtESdZl6A+oDTS2n0hG1uvEufUxD311tdHtjubFhJa6yMR0Q262FvpN4ivqLjM7MSAFQDIECbATfcjBzCK2JhjcV68fas+0cLQ2AipvivktrLj4R7iCKa3UZVjokU3gSFEFTVbW+4lOUlFPUOvCndnt6S8wLtsgp7JSR7O2T28bBo737rQfjTzX7ye44cMcjc/rDA9U8E3NiPbuWKF8vTtCgvl3eJvJ9xKL0OOGTQDFJEM/uNtQnn+x/3J7cG4SDnQNy+PCJCOONtt5qNHq9BrxEKmYMkjHcSrj83CNuTdwU69dQNdUr4Hufmq11VD5GzspJwvcF8Raj7IvwmFk8cIiBa5okbGr1lSaMfDOlhLVWsuP4ScRHE0vBQNQYCzVcz8RKTApUERGLNNvxRsg5HJMgSSlQMH7azs7GkQiz8dP2xhz5gh86GMbi0CTUgYwR9d7FL37+7vz3YpQqYy+gR74TbAnHqS7imNJZsKUoNqEYyxCsigup6ZAFUtWGqipTrbmY2urZycg/w2cvuicvrMXZ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OAvibVvAOCXgPZ3A9RZH2efq2EUomDN6dJBZ4urz5bJxbXbbEz9prxYLBxnwS+tdVVvqg2tpxze/tRY6KgbHebkaSPsCu8+e/v+d39b958VqRULR+XkMP8yPp+rUmTOhFWC0GX2yKTc8j/NT46ighwAAA==

View File

@ -11,9 +11,9 @@ var rule = {
play_parse: true,
lazy: $js.toString(() => {
let url = input.startsWith('push://') ? input : 'push://' + input;
input = {parse: 1, url: url};
input = {parse: 0, url: url};
}),
一级: '',
// 一级: '',
二级: $js.toString(() => {
VOD = {};
VOD.vod_id = input;

View File

@ -11,7 +11,7 @@ var rule = {
play_parse: true,
lazy: $js.toString(() => {
let url = input.startsWith('push://') ? input : 'push://' + input;
input = {parse: 1, url: url};
input = {parse: 0, url: url};
}),
一级: '',
二级: '*',

121
JN/dr_py/js/易搜[搜].js Normal file
View File

@ -0,0 +1,121 @@
/**
* 解密json数据中的url
* @param url
* @returns {*}
*/
function decrypt(url) {
let key = CryptoJS.enc.Utf8.parse("4OToScUFOaeVTrHE");
let iv = CryptoJS.enc.Utf8.parse("9CLGao1vHKqm17Oz");
let encrypted = CryptoJS.AES.decrypt({
ciphertext: CryptoJS.enc.Base64.parse(url)
}, key, {
iv: iv,
mode: CryptoJS.mode.CBC,
padding: CryptoJS.pad.Pkcs7
}).toString(CryptoJS.enc.Utf8);
return encrypted;
}
/**
* 自动输入验证码并登录成功获取cookie
* @returns {`satoken=${*};${string}`|string}
*/
function verifyLogin() {
let cnt = 0;
let cookie = '';
let yzm_url = 'https://yiso.fun/api/user/login/captcha';
log(`验证码链接:${yzm_url}`);
let submit_url = 'https://yiso.fun/api/user/login';
log(`post登录链接:${submit_url}`);
while (cnt < OCR_RETRY) {
try {
let {cookie, html} = reqCookie(yzm_url, {toBase64: true});
let code = OcrApi.classification(html);
log(`${cnt + 1}次验证码识别结果:${code}`);
html = post(submit_url, {
headers: {Cookie: cookie},
body: {
"userName": 'hjdhnx1',
"password": 'Dz@hjdhnx1',
"code": code
}
});
html = JSON.parse(html);
if (html.code === 200) {
let tokenValue = html.data.tokenValue;
log(`${cnt + 1}次验证码提交成功`);
cookie = `satoken=${tokenValue};${cookie}`
return cookie // 需要返回cookie
} else if (html.code !== 200 && cnt + 1 >= OCR_RETRY) {
cookie = ''; // 需要清空返回cookie
}
} catch (e) {
log(`${cnt + 1}次验证码提交失败:${e.message}`);
if (cnt + 1 >= OCR_RETRY) {
cookie = '';
}
}
cnt += 1
}
return cookie
}
globalThis.decrypt = decrypt;
globalThis.verifyLogin = verifyLogin;
var rule = {
title: '易搜[搜]',
host: 'https://yiso.fun',
searchUrl: '/api/search?name=**',
searchable: 2,
quickSearch: 0,
headers: {'User-Agent': 'PC_UA'},
timeout: 10000,
play_parse: true,
lazy: $js.toString(() => {
let url = input.startsWith('push://') ? input : 'push://' + input;
input = {parse: 0, url: url};
}),
// 一级: '',
二级: '*',
搜索: $js.toString(() => {
let cookie = getItem(RULE_CK, '');
log('储存的cookie:' + cookie);
let ret = request(MY_URL, {
headers: {
Referer: encodeUrl(`https://yiso.fun/info?searchKey=${KEY}`),
Cookie: cookie,
}
});
if (/登录用户无限制/.test(ret)) {
log(ret);
cookie = verifyLogin();
if (cookie) {
log(`本次成功过验证,cookie:${cookie}`);
setItem(RULE_CK, cookie);
} else {
log(`本次自动过搜索验证失败,cookie:${cookie}`);
}
ret = request(MY_URL, {
headers: {
Referer: encodeUrl(`https://yiso.fun/info?searchKey=${KEY}`),
Cookie: cookie,
}
});
}
let d = [];
let arr = JSON.parse(ret).data.list;
arr.forEach(it => {
let u = decrypt(it.url);
if (u && u.includes('ali')) {
d.push({
title: it.fileInfos[0].fileName,
url: u,
desc: (it.gmtShare || it.gmtCreate) + "\n" + (u),
content: u,
});
}
});
setResult(d);
}),
}

View File

@ -11,9 +11,9 @@ var rule = {
play_parse: true,
lazy: $js.toString(() => {
let url = input.startsWith('push://') ? input : 'push://' + input;
input = {parse: 1, url: url};
input = {parse: 0, url: url};
}),
一级: '',
// 一级: '',
二级: '*',
搜索: $js.toString(() => {
var d = [];