memFrom, memTo, lib, num, lim, results, src, ok = 0, -1, nil, 0, 32, {}, nil, false function name(n) local srd = gg;if lib ~= n then lib = n ranges = srd.getRangesList(lib) if #ranges == 0 then gg.toast("ᴄᴏɴᴇᴄᴛᴇsᴇ ᴀ ғʀᴇᴇ ғɪʀᴇ ᴘᴀʀᴀ ᴘᴏᴅᴇʀ ᴇᴊᴇᴄᴜᴛᴀʀ ᴇʟ sᴄʀɪᴘᴛ") gg.setVisible(true) os.remove(gg.EXT_STORAGE .. "/Android/data/com.dts.freefireth/files/reportnew.db", gg.LOAD_APPEND) os.remove(gg.EXT_STORAGE .. "/Android/data/com.dts.freefireth/files/ymrtc_log.txt", gg.LOAD_APPEND) print("\n🚫Error 🛇==ᴅᴇ ᴇᴊᴇᴄᴜᴄɪᴏɴ ɴᴜʟʟ🛠\n⚠ᴘᴀʀᴀ ᴀᴄᴛɪᴠᴀʀ ᴇɴᴛʀᴀʀ ᴀʟ ᴊᴜᴇɢᴏ ᴘʀɪᴍᴇʀᴏ⚠") os.exit() else memFrom = ranges[1].start memTo = ranges[#ranges]['end'] end end end function hex2tbl(hex) ret = {} hex:gsub('%S%S', function (ch) ret[#ret + 1] = ch return '' end) return ret end function original(orig) tbl = hex2tbl(orig) len = #tbl if len == 0 then return end used = len if len > lim then used = lim end s = '' for i = 1, used do if i ~= 1 then s = s..';' end v = tbl[i] if v == '??' or v == '**' then v = '0~~0' end s = s..v..'r' end s = s..'::'..used gg.searchNumber(s, 1, false, gg.SIGN_EQUAL, memFrom, memTo) if len > used then for i = used + 1, len do v = tbl[i] if v == '??' or v == '**' then v = 256 else v = ('0x'..v) + 0 if v > 127 then v = v - 256 end end tbl[i] = v end end found = gg.getResultCount(); results = {} count = 0 checked = 0 while true do if checked >= found then break end all = gg.getResults(8) total = #all start = checked if checked + used > total then break end for i, v in ipairs(all) do v.address = v.address + myoffset end gg.loadResults(all) while start < total do good = true offset = all[1 + start].address - 1 if used < len then get = {} for i = lim + 1, len do get[i - lim] = {address = offset + i, flags = 1, value = 0} end get = gg.getValues(get) for i = lim + 1, len do ch = tbl[i] if ch ~= 256 and get[i - lim].value ~= ch then good = false break end end end if good then count = count + 1 results[count] = offset checked = checked + used else del = {} for i = 1, used do del[i] = all[i + start] end gg.removeResults(del) end start = start + used end end end function replaced(repl) num = num + 1 tbl = hex2tbl(repl) if src ~= nil then source = hex2tbl(src) for i, v in ipairs(tbl) do if v ~= '??' and v ~= '**' and v == source[i] then tbl[i] = '**' end end src = nil end cnt = #tbl set = {} s = 0 for _, addr in ipairs(results) do for i, v in ipairs(tbl) do if v ~= '??' and v ~= '**' then s = s + 1 set[s] = { ['address'] = addr + i, ['value'] = v..'r', ['flags'] = 1,} end end end if s ~= 0 then gg.setValues(set) end ok = true end
-----------------------------SECURITY CODE END-------------------------------
------
function YOUZEX(Offset, Replaced) --il2cpp
Replaced = Replaced:gsub("..",function(c)
c = c.." "
return c
end)
gg.clearResults()
gg.setRanges(gg.REGION_CODE_APP | gg.REGION_C_DATA)
name("libil2cpp.so")
myoffset = Offset
original("7F 45 4C 46 01 01 01 00")
replaced(Replaced)
for i=1,math.random(50,100) do
gg.clearResults()
end
end
------------
-------------lobby------------"
gg.alert("Created by DJPX ANTIBAN \n Welcome 👋\n TIKTOK: DJPX ANTIBAN😘","NEXT")
function START()
vip = gg.choice({
"🥂DJPX REGDIT",
"🌀MOUVEMENT",
"♾️DPI 99999",
"🤑MP40",
"🔱SHORTGAN",
"😏1 VS 4 MODE",
"❌OFF",
"✈️Detecting places(ban)",
"🔓AIMLOCK",
"🛡️ANTIBAN",
"🦵SPEED",
"⚔️ANTIBALACKLIST",
"👻AIMBOT",
"♻️RAPIDE MEDKIT",
"🗿DEGLE",
"🖱️AWM",
"⌨️AMMO",
"🧲AUTO HEADSHOT",
"⛔EXIT"
}, ".") or nil
if vip == nil then else end
if vip == 1 then MAS1() end
if vip == 2 then MAS2() end
if vip == 3 then MAS3() end
if vip == 4 then MAS4() end
if vip == 5 then MAS5() end
if vip == 6 then MAS6() end
if vip == 7 then MAS7() end
if vip == 8 then MAS8() end
if vip == 9 then MAS9() end
if vip == 10 then MAS10() end
if vip == 11 then MAS11() end
if vip == 12 then MAS12() end
if vip == 13 then MAS13() end
if vip == 14 then MAS14() end
if vip == 15 then MAS15() end
if vip == 16 then MAS16() end
if vip == 17 then MAS17() end
if vip == 18 then MAS18() end
if vip == 19 then Exit() end
menuk = -1
end
function MAS1()
gg.toast('Complete✅')
end
function MAS2()
gg.setRanges(16384)
gg.searchNumber("\000300", 16, false, 536870912, 0, -5)
gg.getResults(3)
gg.editAll("70", 16)
gg.clearResults()
gg.toast("DJPX")
end
function MAS3()
gg.setRanges(16384)
gg.searchNumber("\000300", 16, false, 536870912, 0, -5)
gg.getResults(4)
gg.editAll("110", 16)
gg.clearResults()
gg.toast("OK 🐺")
end
function MAS4()
gg.setRanges(gg.REGION_CODE_APP)
name('libil2cpp.so')
myoffset = 0xF39D80
original('7F 45 4C 46 01 01 01 00')
replaced('35 00 A0 E3 1E FF 2F E1')
gg.clearResults()
gg.toast('ACTIVATED !! 😨 ')
end
function MAS5()
gg.setRanges(gg.REGION_CODE_APP)
name('libil2cpp.so')
myoffset = 0xF39D80
original('7F 45 4C 46 01 01 01 00')
replaced('50 00 A0 E3 1E FF 2F E1')
gg.clearResults()
gg.toast('ACTIVATED !!!😨 ')
end
function MAS6()
gg.setRanges(gg.REGION_CODE_APP)
name('libil2cpp.so')
myoffset = 0xF39D80
original('7F 45 4C 46 01 01 01 00')
replaced('17 00 A0 E3 1E FF 2F E1')
gg.clearResults()
gg.toast('ACTIVATED !! 😨 ')
end
function MAS7()
gg.setRanges(gg.REGION_CODE_APP)
name('libil2cpp.so')
myoffset = 0xF39D80
original('7F 45 4C 46 01 01 01 00')
replaced('00 00 A0 E3 1E FF 2F E1')
gg.clearResults()
end
function MAS8()
gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber("\"00h;00h;80h;3Fh;13h;13h;17h;3Eh::8\"", gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1)
gg.refineNumber("\"00h;00h;80h;3Fh::4\"", gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(10000)
gg.editAll("\"00h;00h;48h;43h\"", gg.TYPE_BYTE)
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("\"00h;00h;80h;3Fh;85h;7Bh;F6h;3Eh::8\"", gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1)
gg.refineNumber("\"00h;00h;80h;3Fh::4\"", gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(10000)
gg.editAll("\"00h;00h;48h;43h\"", gg.TYPE_BYTE)
gg.clearResults() gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("\"00h;00h;80h;3Fh;13h;13h;17h;3Eh::8\"", gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1)
gg.refineNumber("\"00h;00h;80h;3Fh::4\"", gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(10000)
gg.editAll("\"00h;00h;48h;43h\"", gg.TYPE_BYTE)
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("\"00h;00h;80h;3Fh;85h;7Bh;F6h;3Eh::8\"", gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1)
gg.refineNumber("\"00h;00h;80h;3Fh::4\"", gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(10000)
gg.editAll("\"00h;00h;48h;43h\"", gg.TYPE_BYTE)
gg.clearResults()
gg.toast("ON")
end
function MAS9()
gg.setRanges(32)
gg.searchNumber("5.5;1.0;0.75::9", 16)
gg.refineNumber("1", 16)
gg.getResults(1)
gg.editAll("-999", 16)
gg.clearResults()
gg.setRanges(32)
gg.searchNumber("5.5;0.75::9", 16)
gg.refineNumber("0.75", 16)
gg.getResults(1)
gg.editAll("-999", 16)
gg.clearResults()
gg.toast(" ON 🥂")
end
function MAS10()
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber('127B;69B;76B;70B;1B;1B;1B;0B::8',32)
gg.refineNumber('72',32)
valor = gg.getResults('4')
gg.editAll('70',32)
gg.addListItems(valor)
end
function MAS11()
gg.setRanges(16384)
gg.getRangesList("libil2cpp.so")
gg.searchNumber("7Fr;45r;4Cr;46r;01r;01r;01r;00r::8", 1, false, 536870912, 3220242432, 3280343040)
gg.getResultsCount()
gg.getResults(8)
gg.clearResults()
gg.alert("ON✅")
end
function MAS12()
gg.setRanges(16384)
gg.getRangesList("libil2cpp.so")
gg.searchNumber("7Fr;45r;4Cr;46r;01r;01r;01r;00r::8", 1, false, 536870912, 3220242432, 3280343040)
gg.getResultsCount()
gg.getResults(8)
gg.clearResults()
gg.toast("Activated ")
end
function MAS13()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("1016018816", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber("1016018816", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(gg.getResultsCount())
gg.editAll("0016018816", gg.TYPE_DWORD)
gg.clearResults()
gg.toast("ACTIVATED 💓")
end
function MAS14()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("75D;5F;4F::30", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.refineNumber("4", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(1)
gg.editAll("3", gg.TYPE_FLOAT)
gg.clearResults()
gg.toast("ACTIVATED 🥵")
end
function MAS15()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("0000B040rA;0000803FrA;0000403FrA:9", 16)
gg.getResults(3)
gg.editAll("1,085,276,160;0;0", 4)
gg.clearResults()
end
function MAS16()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("00r;00r;B8r;40r;00r;00r;A0r;3Fr;00r;00r;80r;3Fr::12", 1)
gg.getResults(12)
gg.editAll("00r;00r;B0r;40r;00r;00r;80r;3Fr;00r;00r;40r;3Fr", 1)
gg.clearResults()
gg.searchNumber("96r;00r;00r;00r;00r;00r;B0r;40r;00r;00r;80r;3Fr;00r;00r;40r;3Fr::16", 1)
gg.getResults(16)
gg.editAll("96r;00r;00r;00r;00r;00r;B8r;40r;00r;00r;00r;00r;00r;00r;00r;00r", 1)
gg.clearResults()
gg.toast("Activated")
end
function MAS17()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('30D;.11;.15;220~225;38;80::65', 16)
gg.getResults(100)
gg.editAll('50', 4)
gg.clearResults()
gg.toast('⚙️ Whiting...')
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('50D;.09;.09;.09;220.0F;12.0F;28.0F', 16)
gg.getResults(100)
gg.editAll('50', gg.TYPE_DWORD)
gg.clearResults()
gg.toast('⚙️ Whiting...')
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('20D;.07;.07;220~225;11;25::65', 16)
gg.getResults(100)
gg.editAll('50', 4)
gg.clearResults()
gg.toast('⚙️ Whiting...')
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('30D;.08;.08;.087;220.0F;20.0F;39.0F;1.4012985e-44F', 16)
gg.getResults(100)
gg.editAll('50', gg.TYPE_DWORD)
gg.clearResults()
gg.toast('😅 Whiting...')
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('30D;.09;.09;.09;.25F;220.0F;15.0F;32.0F', 16)
gg.getResults(100)
gg.editAll('50', gg.TYPE_DWORD)
gg.clearResults()
gg.toast('😅Whiting...')
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('42D;.08::5', 16)
gg.getResults(100)
gg.editAll('50', gg.TYPE_DWORD)
gg.clearResults()
gg.toast('💖 Whiting...')
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('15D;.25F;.25F;.25F;220.0F;50.0F;90.0F', 16)
gg.getResults(100)
gg.editAll('50', gg.TYPE_DWORD)
gg.clearResults()
gg.toast('💖 Whiting...')
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('20D;.10;.10;.10;220.0F;25.0F;75.0F', 16)
gg.getResults(100)
gg.editAll('50', gg.TYPE_DWORD)
gg.clearResults()
gg.toast('⚙️ Whaiting...')
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('2D;.34::5', 16)
gg.getResults(100)
gg.editAll('50', gg.TYPE_DWORD)
gg.clearResults()
gg.toast('⚙️ Whaiting...')
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('5D;.33;.33;25;4;20::65', 16)
gg.getResults(100)
gg.editAll('50', 4)
gg.clearResults()
gg.toast('💜Whaiting...')
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('6D;.40;.40;5;10::65', 16)
gg.getResults(100)
gg.editAll('50', 4)
gg.clearResults()
gg.toast('💜 Whaiting...')
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('5D;1.41;1.41;1.41;220.0F;70.0F;90.0F::', 16)
gg.getResults(100)
gg.editAll('50', gg.TYPE_DWORD)
gg.clearResults()
gg.toast('😭 Whaiting...')
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('10D;.47;.47;.47;.30;220.0F;50.0F;96.0F', 16)
gg.getResults(100)
gg.editAll('50', gg.TYPE_DWORD)
gg.clearResults()
gg.toast('😭 Whiting...')
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('10D;.47;.47;.47;.10;220.0F;50.0F;96.0F', 16)
gg.getResults(100)
gg.editAll('50', gg.TYPE_DWORD)
gg.clearResults()
gg.toast('WAIT😍')
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('5D;1.14;1.14;1.149;220.0F;60.0F;85.0F::', 16)
gg.getResults(100)
gg.editAll('50', gg.TYPE_DWORD)
gg.clearResults()
gg.toast('WAIT😍')
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('7D;.55::5', 16)
gg.getResults(100)
gg.editAll('50', gg.TYPE_DWORD)
gg.clearResults()
gg.toast('WAIT😍')
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('15D;.12::5', 16)
gg.getResults(100)
gg.editAll('50', gg.TYPE_DWORD)
gg.clearResults()
gg.toast('WAIT😀')
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('5D;.31;.31;.31;220.0F;60.0F;80.0F::5', 16)
gg.getResults(100)
gg.editAll('50', gg.TYPE_DWORD)
gg.clearResults()
gg.toast('WAIT😀')
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('12D;.30::5', 16)
gg.getResults(100)
gg.editAll('50', gg.TYPE_DWORD)
gg.clearResults()
gg.toast('finaly😜')
end
function MAS18()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("1016018816", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber("1016018816", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(gg.getResultsCount())
gg.editAll("0016018816", gg.TYPE_DWORD)
gg.clearResults()
gg.toast("ACTIVATED 🎯")
end
function Exit()
print("bye bro 👋😘 <3")
os.exit()
end
while true do
if gg.isVisible(true) then
menuk = 1
gg.setVisible(false)
end
if menuk == 1 then
START()
end
if menu == 2 then
START()
end
menuk = -1
end Write, Run & Share Lua code online using OneCompiler's Lua online compiler for free. It's one of the robust, feature-rich online compilers for Lua language, running the latest Lua version 5.4. Getting started with the OneCompiler's Lua editor is easy and fast. The editor shows sample boilerplate code when you choose language as Lua and start coding.
OneCompiler's Lua online editor supports stdin and users can give inputs to programs using the STDIN textbox under the I/O tab. Following is a sample Lua program which takes name as input and prints hello message with your name.
name = io.read("*a")
print ("Hello ", name)
Lua is a light weight embeddable scripting language which is built on top of C. It is used in almost all kind of applications like games, web applications, mobile applications, image processing etc. It's a very powerful, fast, easy to learn, open-source scripting language.
-- global variables
a = 10
-- local variables
local x = 30
| Value Type | Description |
|---|---|
| number | Represents numbers |
| string | Represents text |
| nil | Differentiates values whether it has data or not |
| boolean | Value can be either true or false |
| function | Represents a sub-routine |
| userdata | Represents arbitary C data |
| thread | Represents independent threads of execution. |
| table | Can hold any value except nil |
While is also used to iterate a set of statements based on a condition. Usually while is preferred when number of iterations are not known in advance.
while(condition)
do
--code
end
Repeat-Until is also used to iterate a set of statements based on a condition. It is very similar to Do-While, it is mostly used when you need to execute the statements atleast once.
repeat
--code
until( condition )
For loop is used to iterate a set of statements based on a condition.
for init,max/min value, increment
do
--code
end
Function is a sub-routine which contains set of statements. Usually functions are written when multiple calls are required to same set of statements which increase re-usuability and modularity.
optional_function_scope function function_name( argument1, argument2, argument3........, argumentn)
--code
return params with comma seperated
end