This repository has been archived by the owner on Apr 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbypass.lua
41 lines (37 loc) · 1.46 KB
/
bypass.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
function init()
local file = io.open(gg.EXT_FILES_DIR .. '/Il2CppExplorer.lua', 'r')
if file == nil then
response = gg.makeRequest('https://github.com/HTCheater/Il2CppExplorer/releases/latest/download/Il2CppExplorer.lua')
if response.code ~= 200 then
print('Check internet connection')
os.exit()
end
file = io.open(gg.EXT_FILES_DIR .. '/Il2CppExplorer.lua', 'w')
file:write(response.content)
else
checksumResponse = gg.makeRequest('https://github.com/HTCheater/Il2CppExplorer/releases/latest/download/Il2CppExplorer.checksum')
if checksumResponse.code ~= 200 then
print('Check internet connection')
os.exit()
end
file:close()
file = io.open(gg.EXT_FILES_DIR .. '/Il2CppExplorer.lua', 'rb')
local size = file:seek('end')
local checksum = 0
file:seek('set', 0)
while file:seek() < size do
checksum = checksum + file:read(1):byte()
end
if (checksumResponse.content ~= tostring(checksum)) then
os.remove(gg.EXT_FILES_DIR .. '/Il2CppExplorer.lua')
init()
end
end
file:close()
framework = loadfile(gg.EXT_FILES_DIR .. '/Il2CppExplorer.lua')
framework()
end
init()
-- Did you expect to see some overcomplicated stuff?
-- Just don't initialize Ano, lol
explorer.editFunction(nil, 'LoginUser', {'RET'}, {'BX LR'})