-- ============================================================ -- STAGE-1 LOADER (plaintext, sengaja kecil & tidak berisi logika bisnis) -- Placeholder diisi otomatis oleh build-protect.lua -- Alur: identifikasi mesin -> tanya server -> server putuskan -> jalankan payload -- ============================================================ local CFG = { endpoint = [[https://ezcyeat.shop/gate.php?r=get]], product = [[esp-universal]], version = [[1.1]], buildId = [[02d6c413]], key = [[]], -- kosong = ambil dari getgenv().KEY saat runtime hwidFix = [[]], -- kosong = dihitung saat runtime } -- key kosong di build -> pembeli isi getgenv().KEY sebelum loadstring if CFG.key == "" then local ge = (type(getgenv) == "function") and getgenv() or _G CFG.key = tostring(ge.KEY or "") end -- ---------- util: hex decode (payload dikirim sebagai hex) ---------- local function unhex(h) return (h:gsub("%x%x", function(b) return string.char(tonumber(b, 16)) end)) end -- ---------- util: fingerprint perangkat (portabel) ---------- local function getHwid() if CFG.hwidFix ~= "" then return CFG.hwidFix end local ok, v = pcall(function() local g = _G if g.gethwid then return gethwid() end if g.syn and syn.get_hwid then return syn.get_hwid() end if g.gg and gg.getDeviceInfo then return tostring(gg.getDeviceInfo().android_id or gg.getDeviceInfo().imei or "gg") end if g.GetPlayerIdentifierByType then return tostring(GetPlayerIdentifierByType("license")) end -- fallback: file identitas persisten (desktop/GG) local p = "/tmp/.cid.state" local f = io.open(p, "r") if f then local s = f:read("*l"); f:close(); if s and #s > 0 then return s end end local seed = tostring(os.time()) .. "|" .. tostring(math.random(1, 1e9)) -- hash FNV-1a ringkas local h = 0x811c9dc5 for i = 1, #seed do h = (h - h % 2) + (h % 2 ~= seed:byte(i) % 2 and 1 or 0) h = (h * 16777619) % 4294967296 end local s = string.format("%08x", h) local w = io.open(p, "w") if w then w:write(s); w:close() end return s end) if ok and type(v) == "string" and #v > 0 then return v end return "unknown" end -- ---------- util: HTTP GET, multi-backend ---------- local function fetch(url) local g = _G if rawget(g, "gg") and gg.makeRequest then -- GameGuardian local r = gg.makeRequest(url) if r and r.code == 200 and type(r.content) == "string" then return r.content end return nil, "http " .. tostring(r and r.code) end if type(request) == "function" or type(http_request) == "function" or (rawget(g, "syn") and syn.request) then -- executor request{} local req = request or http_request or syn.request local ok, r = pcall(req, { Url = url, Method = "GET" }) if ok and r and (r.StatusCode == 200 or r.StatusCode == nil) and r.Body then return r.Body end if ok and r and r.Body then return nil, "http " .. tostring(r.StatusCode) end return nil, "request gagal" end if type(game) == "userdata" and type(game.HttpGet) == "function" then -- Roblox executor local ok, body = pcall(function() return game:HttpGet(url, true) end) if ok then return body end local ok2, body2 = pcall(function() return game:HttpGetAsync(url) end) if ok2 then return body2 end return nil, "HttpGet gagal" end if rawget(g, "io") and io.popen then -- desktop / Termux local f = io.popen('curl -fsS -m 15 "' .. url .. '" 2>/dev/null') local body = f and f:read("*a") or "" if f then f:close() end if body and #body > 0 then return body end return nil, "curl gagal" end return nil, "tidak ada backend HTTP" end -- ---------- util: ambil field JSON sederhana ---------- local function jget(body, field) local v = body:match('"' .. field .. '"%s*:%s*"(.-)"') return v end -- ---------- 1. bangun URL ---------- local url = CFG.endpoint .. (CFG.endpoint:find("?", 1, true) and "&" or "?") .. "p=" .. CFG.product .. "&v=" .. CFG.version .. "&b=" .. CFG.buildId .. "&h=" .. getHwid() .. "&k=" .. CFG.key -- ---------- 2. minta otorisasi + payload ---------- local body, ferr = fetch(url) if not body then error("[[GATE]] gagal menghubungi server (" .. tostring(ferr) .. ")", 0) end local status = jget(body, "status") local reason = jget(body, "reason") local hex = jget(body, "payload") local tier = jget(body, "tier") if status == "DENY" then error("[[GATE]] akses ditolak: " .. tostring(reason or "no-reason"), 0) end if status == "UPDATE" then error("[[GATE]] versi kedaluwarsa, silakan update", 0) end if status ~= "OK" or not hex then error("[[GATE]] respons server tidak valid", 0) end -- ---------- 3. decode + jalankan ---------- -- set tier buat payload (free/pro). getgenv bila ada (Roblox executor). do local ge = (type(getgenv) == "function") and getgenv() or _G ge.TIER = tier or "free" end local src = unhex(hex) local chunk, err = (loadstring or load)(src) if not chunk then error("[[GATE]] payload gagal dimuat: " .. tostring(err), 0) end local fn = chunk() -- payload mengembalikan fungsi if type(fn) == "function" then return fn() -- eksekusi logika bisnis end return fn