local debugger = false
local ffi = require("ffi") or error("Failed to require FFI, please make sure Allow unsafe scripts is enabled!", 2)
-- DONT TOUCH THIS YOU CAN CHANGE THE ERROR CODE--
ffi.cdef[[
typedef long(__thiscall* GetRegistryString)(void* this, const char* pFileName, const char* pPathID);
typedef bool(__thiscall* Wrapper)(void* this, const char* pFileName, const char* pPathID);
]]
local type2 = ffi.typeof("void***")
local interface = client.create_interface("filesystem_stdio.dll", "VBaseFileSystem011") or error(debugger and "Error... contact me on discord! ID: 76462272424066060244" or "error", 2)
local system10 = ffi.cast(type2, interface) or error(debugger and "Error... contact me on discord! ID: 57421437426460963574" or "error", 2)
local systemxwrapper = ffi.cast("Wrapper", system10[0][10]) or error(debugger and "Error... contact me on discord! ID: 76143089620434347004" or "error", 2)
local gethwid = ffi.cast("GetRegistryString", system10[0][13]) or error(debugger and "Error... contact me on discord! ID: 59542338057818634362" or "error", 2)
-- DONT TOUCH THIS YOU CAN CHANGE THE ERROR CODE--
-- LOOKING FOR FILE ON PC DONT TOUCH
local function filechecker()
for i = 65, 90 do
local filecheck = string.char(i)..":\\Windows\\Setup\\State\\State.ini" -- FILE CHECKING FOR HWID
if systemxwrapper(system10, filecheck, "olympia") then
return filecheck
end
end
return nil
end
-- LOOKING FOR FILE ON PC DONT TOUCH
local filecheck = filechecker() or error(debugger and "Error... contact me on discord! ID: 12628676518493195720" or "error", 2)
local normalhwid = gethwid(system10, filecheck, "olympia") or error(debugger and "Error... contact me on discord! ID: 24024521228234004081" or "error", 2)
local obfuscatedhwid = normalhwid * 421 -- CHANGE THIS TO A RANDOM NUMBER (SECURITY)
if debugger then -- IF DEBUGGER = TRUE
print(string.format("Normal HWID: %i", normalhwid)) -- HWID ON FILE
--print(string.format("Checking HWID: %i", obfuscatedhwid)) -- HWID THAT WE CHECK IF USER HAS ACCESS
end
local found = false -- HWID = FALSE
--WEB CHECKING FOR HWIDS--
local list = panorama.loadstring([[
$.AsyncWebRequest('https://list.txt', {type2: 'GET', complete: function(c) {
body = c.responseText;
}});
return body;
]])()
if list == nil then
return print('Loading HWIDs...')
else
if string.match(list, "|" ..obfuscatedhwid.. "|") then -- CHECKING WEB LIST
user = k
found = true -- HWID = TRUE
end
end
--WEB CHECKING FOR HWIDS--
if found then -- LOGIN FUNCTION
--IF LOGGED IN
print("welcome")
else
--IF HWID ISNT WHITELISTED
print("You don't have access to this lua ")
end