From 638b0f559617c8e822ca28ed84247204708955c8 Mon Sep 17 00:00:00 2001 From: catvod <88956744+catvod@users.noreply.github.com> Date: Tue, 18 Jul 2023 17:29:10 +0800 Subject: [PATCH] js eval & http cookie --- open/czzy_open.js | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/open/czzy_open.js b/open/czzy_open.js index 30cc885..6477338 100644 --- a/open/czzy_open.js +++ b/open/czzy_open.js @@ -165,30 +165,6 @@ async function detail(id) { }); } -async function proxy(segments, headers) { - let what = segments[0]; - let url = base64Decode(segments[1]); - if (what == 'img') { - var resp = await req(url, { - buffer: 2, - headers: { - Referer: url, - 'User-Agent': UA, - }, - }); - return JSON.stringify({ - code: resp.code, - buffer: 2, - content: resp.content, - headers: resp.headers, - }); - } - return JSON.stringify({ - code: 500, - content: '', - }); -} - async function play(flag, id, flags) { const link = url + '/v_play/' + id + '.html'; const html = await request(link); @@ -259,7 +235,6 @@ export function __jsEvalReturn() { category: category, detail: detail, play: play, - proxy: proxy, search: search, }; }