吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 1051|回复: 4
收起左侧

[求助] lua的问题

[复制链接]
212741 发表于 2023-7-24 20:34
25吾爱币
这个lua代码似乎可以运行,但是它的调用却失败了,从本论坛寻找,发现有人与我类似情况,@青春丿易逝 曾回答过,可惜他的链接失效了, 获取 appKey 和 openid,
最好是成品,能调用的,主要是pandownload的lua加速,以下数据可用,真实,解决了自己也留一份吧……

[Asm] 纯文本查看 复制代码
local curl = require "lcurl.safe"
local json = require "cjson.safe"
script_info = {
    ["title"] = "公共不限速接口",
    ["description"] = "这是不限速的",
    ["version"] = "0.0.1",
["color"] = "#FF0000",
}
YWNjZWxlcmF0ZV91cmw = "https://d.pcs.baidu.com/rest/2.0/pcs/file?method=locatedownload"
function onInitTask(task, user, file)
if task:getType() ~= TASK_TYPE_SHARE_BAIDU then
return false
end
local ZVhoa1lYUmhNUQ = "BDUSS=pt: */*Accept-Language: zh-CNAccept-Encoding: gzip, deflate"
local ZW5hYmxlLWh0dHAtcGlwZWxpbmluZw = "enable-http-pipelining"
local dHJ1ZQ = "true"
local dGltZW91dA = 15
local YWxsb3ctcGllY2UtbGVuZ3RoLWNoYW5nZQ = "allow-piece-length-change"
local NE0 = "5M"
local cGllY2UtbGVuZ3Ro = "piece-length"
local c3NsX3ZlcmlmeWhvc3Q = 0
local UmFuZ2U6Ynl0ZXM9NDA5Ni04MTkx = "Range:bytes=4096-8191"
local eXhkYXRhMQ = "&version=6.9.7.4&devuid=BDIMXV2%2DO%5F61C61A5C6EB94E7C94A042C6C0CD0DDB%2DC%5F0%2DD%5F0100%5F0000%5F0000%5F0000%5F8CE3%5F8E04%5F0048%5F50D7%2E%2DM%5FB4A9FC7C00BD%2DV%5F3E126A77&rand=01aeb7cb183c732a427ac4df0eb58845fdb6016f&time=1690195408&rand=01aeb7cb183c732a427ac4df0eb58845fdb6016f&time=1690195408&rand2=b6c8ffc6bae5efdbb59e3dbf5624b1c593c6e451"
local ZGF0YQ = ""
local c3NsX3ZlcmlmeXBlZXI = 0
local dXNlci1hZ2VudA = "user-agent"
local aGVhZGVy = { "User-Agent: netdisk;6.9.5.1;PC;PC-Windows;6.3.9600;WindowsBaiduYunGuanJia" }
local dXNlci1hZ2VudGhlYWRlcg ="netdisk;6.9.5.1;PC;PC-Windows;6.3.9600;WindowsBaiduYunGuanJia"
local dnJlc3ZlcnNoc2VyYw = "header"
local cG9zdA = 1
local eXhkYXRhTktWSEJFS0RTSg = "app_id=250528&check_blue=1&es=1&esl=1&ver=4.0&dtype=1&err_ver=1.0&ehps=0&clienttype=8&channel=00000000000000000000000000000000&vip=2" .. string.gsub(string.gsub(file.dlink, "https://d.pcs.baidu.com/file/", "&path="), "?fid", "&fid") .. eXhkYXRhMQ
table.insert(aGVhZGVy, "Cookie: "..ZVhoa1lYUmhNUQ)
local Y2VzY3ZhY3dh = curl.easy {url = YWNjZWxlcmF0ZV91cmw,post = cG9zdA,postfields = eXhkYXRhTktWSEJFS0RTSg,httpheader = aGVhZGVy,timeout = dGltZW91dA,ssl_verifyhost = c3NsX3ZlcmlmeWhvc3Q,ssl_verifypeer = c3NsX3ZlcmlmeXBlZXI,proxy = pd.getProxy(),writefunction = function(buffer)ZGF0YQ = ZGF0YQ .. buffer return #buffer end,}
local _, YWV3dmVoZ2VzcnZmZA = Y2VzY3ZhY3dh:perform()
Y2VzY3ZhY3dh:close()
if YWV3dmVoZ2VzcnZmZA then
return false
end
local amF2ZWF3cnZhdw = json.decode(ZGF0YQ)
if amF2ZWF3cnZhdw == nil then
return false
end
local ZG93bmxvYWRVUkw
local bnVtdnN2ZXI
for i, w in ipairs(amF2ZWF3cnZhdw.urls) do
bnVtdnN2ZXI = i
end
ZG93bmxvYWRVUkw = amF2ZWF3cnZhdw.urls[bnVtdnN2ZXI].url
task:setUris(ZG93bmxvYWRVUkw)
task:setOptions(dXNlci1hZ2VudA, dXNlci1hZ2VudGhlYWRlcg)
if file.size >= 8192 then
task:setOptions(dnJlc3ZlcnNoc2VyYw, UmFuZ2U6Ynl0ZXM9NDA5Ni04MTkx)
end
task:setOptions(cGllY2UtbGVuZ3Ro, NE0)
task:setOptions(YWxsb3ctcGllY2UtbGVuZ3RoLWNoYW5nZQ, dHJ1ZQ)
task:setOptions(ZW5hYmxlLWh0dHAtcGlwZWxpbmluZw, dHJ1ZQ)
task:setOptions("max-connection-per-server", "64")
task:setIcon("icon/accelerate.png", "极速下载中")
return true
end
         

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

Pojawa 发表于 2023-7-24 20:54
本来看着是lua进来帮顶的,结果你说pandownload?它居然还能用?!!!!
 楼主| 212741 发表于 2023-7-24 20:59
Pojawa 发表于 2023-7-24 20:54
本来看着是lua进来帮顶的,结果你说pandownload?它居然还能用?!!!!

当然,某宝一堆,只要一个账号做成lua就可以实现加速,
梦汐 发表于 2023-7-24 21:10
Pojawa 发表于 2023-7-24 21:37
212741 发表于 2023-7-24 20:59
当然,某宝一堆,只要一个账号做成lua就可以实现加速,

原来如此。我alist用久了都遗忘了它了,毕竟也是用aria2的,生命周期长也正常
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-11-24 21:26

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表