|
|
-- 时空猎人3 刀盾 悬浮窗一键启停 | 全自动防封稳定版
local key1 = 0x7B
local key2 = 0x3C
local SAFE_CONFIG = {
click_delay_min = 70,
click_delay_max = 130,
random_offset = 20,
anti_check = true,
debug_log = false,
battle_wait = 3000,
finish_wait = 5000,
running = false,
stop = false
}
-- 工具函数
local function hex_to_str(hex)
if not hex or #hex % 2 ~= 0 then return "" end
local str = {}
for i = 1, #hex, 2 do
local b = tonumber(hex:sub(i, i+1), 16)
if b then table.insert(str, string.char(b)) end
end
return table.concat(str)
end
local function xor_decrypt(str, key)
if not str or not key then return "" end
local res = {}
for i = 1, #str do
local b = str:byte(i)
if b then res[i] = string.char(b ~ key) end
end
return table.concat(res)
end
local function random_sleep()
if not SAFE_CONFIG.anti_check then return end
local ms = math.random(SAFE_CONFIG.click_delay_min, SAFE_CONFIG.click_delay_max)
ms = ms + math.random(-SAFE_CONFIG.random_offset, SAFE_CONFIG.random_offset)
if ms < 20 then ms = 20 end
sys.msleep(ms)
end
local function sleep(ms)
sys.msleep(ms)
end
-- 防检测
do
math.randomseed(os.time() + math.floor(collectgarbage("count")))
local op = print
print = function(...)
if not SAFE_CONFIG.debug_log then return end
pcall(op, ...)
end
_G.print = print
end
-- 加密核心串
local enc_str = "6721322924332E2829670A262E296F6E4D67671409677A67202069242F282E24226F3C4D676765A1D0E7AEDED7A1CDC7AFC4FA1CA1DBCAA2CDE6A2DEEFA0D2CBAEDAE5A1D3FE1A656B4D676765A2CEE8A1DBEBA0E0D5A1DAC71CA1DBCAA2CDE6A2DEEFA0D2CBAEDAE5A1D3FE1A656B4D676765A2C2EFA2F6C8A2CDD8A2C0FCA2D7FFA1C7ED1CA3FCFCA1C3C8A2FBC71A656B4D676765A2CAC4A2CFC7A1D0E7A2D7C9A1D6C01CA3FCFCA1C3C8A2FBC71A656B4D676765A3FAE7A2FEF5A2DFDCA2D4C9A2D4D8654D673A6B677577767F6B6765AEFFE6A3FAE7A2E3EDA0F9C9656E4D67672E21671409677A7A677667332F22294D67676767266F6E4D67672229234D67672E21671409677A7A677567332F22294D676767256F6E4D67672229234D67672E21671409677A7A677467332F22294D676767246F6E4D67672229234D67672E21671409677A7A677367332F22294D676767236F6E4D67672229234D67672E21671409677A7A677267332F22294D676767023F2E336F6E4D67672229234D67671F00040C677A676A764D2229234D4D4D4D21322924332E282967266F6E4D6767202069242B222635152234322B33346F6E4D2020693422331526292022346F2020691502000E0809180418060B0B08046E4D20206934222635242F09322A2522356F60767C7677777C767777777C7677777777606B202069131E170218030812050B026B21262B34226B202069140E000918021612060B6B776B6A766E4D20206934222635242F09322A2522356F6076777776606B202069131E170218030812050B026B21262B34226B202069140E000918021612060B6B776B6A766E4D2D207A202069202233152234322B33346F76717177776E4D342B7A202069202233152234322B3304283229336F6E4D6767212835672E677A67766B67342B6723284D67676767233D3E7A2D201C2E1A69262323352234344D676767672020692623230B2E34330E33222A346F3C1C761A677A673C26232335223434677A67233D3E6B212B262034677A67202069131E170218030812050B026B213522223D22677A67333532226B31262B3222677A677577777777773A3A6E4D67672229234D20206933282634336F60A1D0E7AEDED7A1CDC7AFC4FAA2FBC7A2D7E8A1CFD7A2CDD8606E4D202069242B222635152234322B33346F6E4D2229234D4D4D4D21322924332E282967256F6E4D202069242B222635152234322B33346F6E4D2020693422331526292022346F2020691502000E0809180418060B0B08046E4D20206934222635242F09322A2522356F6077697777767C7677777777606B202069131E170218030812050B026B21262B34226B202069140E000918021612060B6B776B6A766E4D20206934222635242F09322A2522356F607769777776606B202069131E170218030812050B026B21262B34226B202069140E000918021612060B6B776B6A766E4D202069202233152234322B33346F7E7E7E7E7E6E4D20206922232E33062B2B6F607E7E7E606B202069131E170218030812050B026E4D20206933282634336F60A2CEE8A1DBEBA0E0D5A1DAC7A2FBC7A2D7E8A1CFD7A2CDD8606E4D202069242B222635152234322B33346F6E4D2229234D4D4D4D4D21322924332E282967246F6E4D202069242B222635152234322B33346F6E4D2020693422331526292022346F2020691502000E0809180418060B0B08046E4D20206934222635242F09322A2522356F607677776B7777776B7777776977027C776977027C766977027C776976027C776977777776027C77697777777776027D767674606B202069131E170218030812050B026B21262B34226B202069140E000918021612060B6B776B6A766E4D20206934222635242F09322A2522356F6077697776606B202069131E170218030812050B026B21262B34226B202069140E000918021612060B6B776B6A766E4D202069202233152234322B33346F7E7E7E7E7E7E7E7E6E4D20206922232E33062B2B6F6077606B202069131E170218030812050B026E4D20206933282634336F60A2C2EFA2F6C8A2CDD8A2C0FCA2D7FFA1C7EDA2FBC7A2D7E8A1CFD7A2CDD8606E4D202069242B222635152234322B33346F6E4D2229234D4D4D21322924332E282967236F6E4D202069242B222635152234322B33346F6E4D2020693422331526292022346F2020691502000E0809180418060B0B08046E4D20206934222635242F09322A2522356F607677776B7777776B7777776977027C776977027C766977027C776976027C776977777776027C77697777777776027D767674606B202069131E170218030812050B026B21262B34226B202069140E000918021612060B6B776B6A766E4D20206934222635242F09322A2522356F6076606B202069131E170218030812050B026B21262B34226B202069140E000918021612060B6B776B6A766E4D202069202233152234322B33346F7E7E7E7E7E7E7E7E6E4D20206922232E33062B2B6F6077606B202069131E170218030812050B026E4D20206933282634336F60A2CAC4A2CFC7A1D0E7A2D7C9A1D6C0A2FBC7A2D7E8A1CFD7A2CDD8606E4D202069242B222635152234322B33346F6E4D2229234D4D4D4D4D21322924332E282967023F2E336F6E4D37352E29336F65A2D4E1AFC7F1656E4D283469223F2E336F6E4D2229234D2434677A6765A1CFD6A0DDC3A2CFC7A0DCF9654D4D4D4D302F2E2B2267333532226723284D67672E21672020692E34112E342E252B226F333532226E67332F22294D676767671F00040C677A67764D67676767202069342233112E342E252B226F21262B34226E4D67672229234D6767202069242B222635152234322B33346F6E4D67672E21671F00040C677A7A677667332F22294D676767670A262E296F6E4D67672229234D2229234D4D4D4D4D4D4D4D4D4D"
-- 核心战斗
local function core()
local code = hex_to_str(enc_str)
code = xor_decrypt(code, key2)
code = xor_decrypt(code, key1)
local fn = load or loadstring
local f = fn(code)
if f then pcall(f) end
random_sleep()
end
-- 自动循环
local function auto_loop()
while SAFE_CONFIG.running and not SAFE_CONFIG.stop do
core()
sleep(SAFE_CONFIG.battle_wait)
sleep(SAFE_CONFIG.finish_wait)
collectgarbage("collect")
end
end
-- 悬浮窗开关
local function on_click()
SAFE_CONFIG.running = not SAFE_CONFIG.running
if SAFE_CONFIG.running then
SAFE_CONFIG.stop = false
-- 启动线程
thread(auto_loop)
else
SAFE_CONFIG.stop = true
end
end
-- 初始化悬浮窗(手机脚本工具通用)
floaty.window({
x = 800, y = 300, w = 90, h = 90,
corner = 45, bg = "#66FF0000"
})
floaty.onClick(on_click)
floaty.show()
-- 启动保护
xpcall(function() end, function()
collectgarbage("collect")
end)
|
|