Advertisement
GODz_op

Untitled

Jul 14th, 2022
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.32 KB | None | 0 0
  1. function MIGUEL(A0_8, A1_9)
  2.     localpack = gg.getTargetInfo().nativeLibraryDir
  3.     for i, i in pairs((gg.getRangesList(localpack .. "/libil2cpp.so"))) do
  4.       if gg.getValues({
  5.         {
  6.           address = i.start,
  7.           flags = gg.TYPE_DWORD
  8.         },
  9.         {
  10.           address = i.start + 18,
  11.           flags = gg.TYPE_WORD
  12.         }
  13.       })[1].value == 1179403647 then
  14.         A0_8 = i.start + A0_8
  15.       end
  16.       assert(A0_8 ~= nil, "[rwmem]: error, provided address is nil.")
  17.       _rw = {}
  18.       if type(A1_9) == "number" then
  19.         i = ""
  20.         for i = 1, A1_9 do
  21.           _rw[i] = {
  22.             address = A0_8 - 1 + i,
  23.             flags = gg.TYPE_BYTE
  24.           }
  25.         end
  26.         for i, i in ipairs(gg.getValues(_rw)) do
  27.           i = i .. string.format("%02X", i.value & 255)
  28.         end
  29.         return i
  30.       end
  31.       Byte = {}
  32.       A1_9:gsub("..", function(A0_10)
  33.         local L1_11, L2_12, L3_13
  34.         L1_11 = Byte
  35.         L2_12 = Byte
  36.         L2_12 = #L2_12
  37.         L2_12 = L2_12 + 1
  38.         L1_11[L2_12] = A0_10
  39.         L1_11 = _rw
  40.         L2_12 = Byte
  41.         L2_12 = #L2_12
  42.         L3_13 = {}
  43.         L3_13.address = A0_8 - 1 + #Byte
  44.         L3_13.flags = gg.TYPE_BYTE
  45.         L3_13.value = A0_10 .. "h"
  46.         L1_11[L2_12] = L3_13
  47.       end
  48.       )
  49.       gg.setValues(_rw)
  50.     end
  51.   end
  52.  
  53. memFrom, memTo, lib, num, lim, results, src, ok = 0, -1, nil, 0, 32, {}, nil, false
  54.   function name(A0_0)
  55.     if lib ~= A0_0 then
  56.       lib = A0_0
  57.       ranges = gg.getRangesList(lib)
  58.       if #ranges == 0 then
  59.         gg.toast("🛠  Selecione o Processo Do Free Fire Para No GG Para Executar Essssa Função 🛠")
  60.         gg.setVisible(true)
  61.         os.remove(gg.EXT_STORAGE .. "/Android/data/com.dts.freefireth/files/reportnew.db", gg.LOAD_APPEND)
  62.         os.remove(gg.EXT_STORAGE .. "/Android/data/com.dts.freefireth/files/ymrtc_log.txt", gg.LOAD_APPEND)
  63.         print("\n🛠 Cᴏɴᴇᴄᴛᴀᴛᴇ ᴀ Fʀᴇᴇ Fɪʀᴇ ᴏ Sᴇʟᴇᴄᴄɪᴏɴᴇ Bɪᴇɴ Oᴛʀᴀ Vᴇᴢ Eʟ Pʀᴏᴄᴇsᴏ Dᴇʟ Jᴜᴇɢᴏ Dᴇsᴅᴇ Eʟ GG Mod Kɪʀɪᴛᴏ Gᴀᴍᴇʀツ Pᴀʀᴀ Pᴏᴅᴇʀ Aᴄᴛɪᴠᴀʀ Esᴛᴀ Oᴘᴄɪᴏ́ɴ 🛠")
  64.         os.exit()
  65.       else
  66.         memFrom = ranges[1].start
  67.         memTo = ranges[#ranges]["end"]
  68.       end
  69.     end
  70.   end
  71.  
  72.   function hex2tbl(A0_1)
  73.     ret = {}
  74.     A0_1:gsub("%S%S", function(A0_2)
  75.       local L2_3, L3_4, L4_5
  76.       L2_3 = ret
  77.       L3_4 = ret
  78.       L3_4 = #L3_4
  79.       L3_4 = L3_4 + 1
  80.       L2_3[L3_4] = A0_2
  81.       L2_3 = ""
  82.       return L2_3, L3_4, L4_5, nil
  83.     end
  84.     )
  85.     return ret
  86.   end
  87.  
  88.   function original(A0_6)
  89.     tbl = hex2tbl(A0_6)
  90.     len = #tbl
  91.     if len == 0 then
  92.       return
  93.     end
  94.     used = len
  95.     if len > lim then
  96.       used = lim
  97.     end
  98.     s = ""
  99.     for a4 = 1, used do
  100.       if a4 ~= 1 then
  101.         s = s .. ";"
  102.       end
  103.       v = tbl[a4]
  104.       if v == "??" or v == "**" then
  105.         v = "0~~0"
  106.       end
  107.       s = s .. v .. "r"
  108.     end
  109.     s = s .. "::" .. used
  110.     gg.searchNumber(s, 1, false, gg.SIGN_EQUAL, memFrom, memTo)
  111.     if len > used then
  112.       for a4 = used + 1, len do
  113.         v = tbl[a4]
  114.         if v == "??" or v == "**" then
  115.           v = 256
  116.         else
  117.           v = ("0x" .. v) + 0
  118.           if v > 127 then
  119.             v = v - 256
  120.           end
  121.         end
  122.         tbl[a4] = v
  123.       end
  124.     end
  125.     found = gg.getResultCount()
  126.     results = {}
  127.     count = 0
  128.     checked = 0
  129.     while not (checked >= found) do
  130.       all = gg.getResults(8)
  131.       total = #all
  132.       start = checked
  133.       if checked + used > total then
  134.         break
  135.       end
  136.       for a4, a5 in ipairs(all) do
  137.         a5.address = a5.address + myoffset
  138.       end
  139.       gg.loadResults(all)
  140.       while start < total do
  141.         good = true
  142.         offset = all[1 + start].address - 1
  143.         if used < len then
  144.           get = {}
  145.           for a4 = lim + 1, len do
  146.             get[a4 - lim] = {
  147.               address = offset + a4,
  148.               flags = 1,
  149.               value = 0
  150.             }
  151.           end
  152.           get = gg.getValues(get)
  153.           for a4 = lim + 1, len do
  154.             ch = tbl[a4]
  155.             if ch ~= 256 and get[a4 - lim].value ~= ch then
  156.               good = false
  157.               break
  158.             end
  159.           end
  160.         end
  161.         if good then
  162.           count = count + 1
  163.           results[count] = offset
  164.           checked = checked + used
  165.         else
  166.           del = {}
  167.           for a4 = 1, used do
  168.             del[a4] = all[a4 + start]
  169.           end
  170.           gg.removeResults(del)
  171.         end
  172.         start = start + used
  173.       end
  174.     end
  175.   end
  176.  
  177.   function replaced(A0_7)
  178.     num = num + 1
  179.     tbl = hex2tbl(A0_7)
  180.     if src ~= nil then
  181.       source = hex2tbl(src)
  182.       for a4, a5 in ipairs(tbl) do
  183.         if a5 ~= "??" and a5 ~= "**" and a5 == source[a4] then
  184.           tbl[a4] = "**"
  185.         end
  186.       end
  187.       src = nil
  188.     end
  189.     cnt = #tbl
  190.     set = {}
  191.     s = 0
  192.     for a4, a5 in ipairs(results) do
  193.       for a9, a10 in ipairs(tbl) do
  194.         if a10 ~= "??" and a10 ~= "**" then
  195.           s = s + 1
  196.           set[s] = {
  197.             address = a5 + a9,
  198.             value = a10 .. "r",
  199.             flags = 1
  200.           }
  201.         end
  202.       end
  203.     end
  204.     if s ~= 0 then
  205.       gg.setValues(set)
  206.     end
  207.     ok = true
  208.   end
  209.  
  210.   b = [[
  211. 15742
  212. Var #96AECC44|96aecc44|10|e92d4830|0|0|0|0|rwxp|/data/app/com.dts.freefireth-1/lib/arm/libil2cpp.so|222bc44
  213. ]]
  214.   fileData = gg.EXT_STORAGE .. "/[###].dat"
  215.   io.output(fileData):write(b):close()
  216.   gg.loadList(fileData, gg.LOAD_APPEND)
  217.   gg.sleep(50)
  218.   r = gg.getListItems()
  219.   getReset = gg.getValues(r)
  220.   gg.clearList()
  221.   os.remove(fileData)
  222.   gg.setVisible(true)
  223.  
  224.  
  225.  
  226.  
  227.  
  228. if gg.alert("    ⚔️BEM VINDO A SCRIPT ⚔️"..[=====[
  229.  
  230.  
  231.   NOVO SCRIPT 1.90.9  ANTIBAN 🥇
  232.            ⭐  [BOTA SEU NOME]  ⭐
  233. 🚨 SE USA SCRIPT QUE VALE A PENA🚨    
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241. ]=====], "[ ENTRA ]      ", " [ SAIR ]      ") ~= 1 then os.exit() end
  242.  
  243.   function Main()
  244.     menu = gg.choice({
  245.           roo.. '👻GHOST HACK👻',
  246.  Atravesar_Piedras ..   ' 🗿PEDRA 🗿',
  247.     ' 🗼ANTENA CABEÇA🗼' ,
  248.     by .. '🔐 BYPASS ANTI LOGS🔐',
  249.     bypps1 .. " 🛡️BYPASS CLONADO🛡️",
  250.     xpos .." 🛡️ BYPASS ANTI FECHAMENTO🛡️",
  251.   '❌SAIR❌',
  252.     }, nil,'[BOTA SEU NOME] SCRIPT ANTIBAN  1.90.x BÁSICO PARA SER MESTRE👻')
  253.    if menu == 1 then A1() end
  254.    if menu == 2 then A2() end
  255.    if menu == 3 then A3() end
  256. if menu == 4 then bypa() end
  257. if menu == 5 then bypp2() end
  258. if menu == 6 then xposed() end
  259.    if menu ==  7 then Exit() end
  260.    XGCK=-1
  261.    end
  262.  
  263.  
  264. xpos =  '❎'
  265. function xposed()
  266. if xpos ==  '❎' then
  267. gg.setRanges(gg.REGION_CODE_APP)
  268. name("libil2cpp.so")
  269. myoffset = 0x22AF164
  270. original("7F 45 4C 46 01 01 01 00")
  271. replaced("00 00 A0 E3 1E FF 2F E1")
  272. gg.clearResults()
  273. gg.toast('ATIVADO☑️')
  274. xpos = '《ON》'
  275. elseif xpos == '《ON》' then
  276. gg.setRanges(gg.REGION_CODE_APP)
  277. name("libil2cpp.so")
  278. myoffset = 0x22AF164
  279. original("7F 45 4C 46 01 01 01 00")
  280. replaced("00 00 A0 E3 1E FF 2F E1")
  281. gg.clearResults()
  282. gg.toast('DESATIVADO ❎')
  283. xpos =  '❎'
  284. end
  285. end
  286.  
  287. bypps1 = '❎'
  288. function bypp2()
  289. if bypps1 == '❎' then
  290. MIGUEL("0x30C67F0", "0000A0E31EFF2FE1")
  291. gg.clearResults()
  292. gg.toast('ATIVADO☑️')
  293. bypps1 = '《ON》'
  294. elseif bypps1 == '《ON》' then
  295. MIGUEL("0x30C67F0", "0000A0E31EFF2FE1")
  296. gg.clearResults()
  297. gg.toast('DESATIVADO ❎')
  298. bypps1 = '❎'
  299. end
  300. end
  301.  
  302. by = '❎'
  303.   function bypa()
  304.     if by == '❎' then
  305.       MIGUEL("0xf791e", "69")
  306.       gg.clearResults()
  307.       gg.clearResults()
  308.       gg.toast('ATIVADO☑️')
  309.       by =  '《ON》'
  310.     elseif by ==  '《ON》' then
  311.       MIGUEL("0xf791e", "69")
  312.       gg.clearResults()
  313.       gg.clearResults()
  314.       gg.toast('DESATIVADO ❎')
  315.       by = '❎'
  316.     end
  317.   end
  318.  
  319.  
  320.  roo = '❎'
  321.   function A1()
  322.     if roo == '❎'then
  323.   MIGUEL("0x160CB18", "0000A0E31EFF2FE1")
  324.       gg.toast('ATIVADO☑️')
  325.       roo = '《ON》'
  326.     elseif roo == '《ON》' then
  327.       MIGUEL("0x160CB18", "F04F2DE91CB08DE2")
  328.       gg.toast('DESATIVADO ❎')
  329.       roo = '❎'
  330.     end
  331.   end
  332.  
  333.  
  334.  Atravesar_Piedras = "❎"  
  335. function A2()
  336. if Atravesar_Piedras == "❎"   then
  337. gg.clearResults()
  338. io.output(fileData):write([[
  339. 8403
  340. Var #7E819158|7e819158|10|4479c000|0|0|0|0|r-xp|/data/data/com.chaozhuo.gameassistant/virtual/data/app/com.dts.freefireth/lib/libunity.so|b47158
  341. Var #7E819168|7e819168|10|4479c000|0|0|0|0|r-xp|/data/data/com.chaozhuo.gameassistant/virtual/data/app/com.dts.freefireth/lib/libunity.so|b47168
  342. Var #7E819198|7e819198|10|4479c000|0|0|0|0|r-xp|/data/data/com.chaozhuo.gameassistant/virtual/data/app/com.dts.freefireth/lib/libunity.so|b47198
  343. ]]):close()
  344.     gg.loadList(fileData, gg.LOAD_APPEND | gg.LOAD_VALUES)
  345.     os.remove(fileData)
  346.     gg.sleep(50)
  347.     gg.clearList()
  348.      gg.clearResults()
  349. gg.toast("ATIVADO☑️")
  350. Atravesar_Piedras = "《ON》"  
  351. elseif Atravesar_Piedras == "《ON》"   then  
  352. gg.clearResults()
  353. io.output(fileData):write([[
  354. 8403
  355. Var #7E819158|7e819158|10|cafffe57|0|0|0|0|r-xp|/data/data/com.chaozhuo.gameassistant/virtual/data/app/com.dts.freefireth/lib/libunity.so|b47158
  356. Var #7E819168|7e819168|10|cafffe53|0|0|0|0|r-xp|/data/data/com.chaozhuo.gameassistant/virtual/data/app/com.dts.freefireth/lib/libunity.so|b47168
  357. Var #7E819198|7e819198|10|cafffe47|0|0|0|0|r-xp|/data/data/com.chaozhuo.gameassistant/virtual/data/app/com.dts.freefireth/lib/libunity.so|b47198
  358. ]]):close()
  359.     gg.loadList(fileData, gg.LOAD_APPEND | gg.LOAD_VALUES)
  360.     os.remove(fileData)
  361.     gg.sleep(50)
  362.     gg.clearList()
  363.      gg.clearResults()
  364. gg.toast("DESATIVADO ❎")
  365. Atravesar_Piedras = "❎"  
  366. end
  367. end
  368.  
  369.  
  370.    
  371. function A3()
  372. gg.setRanges(gg.REGION_ANONYMOUS)
  373. gg.searchNumber("5.9762459e-7;1::5", 16)
  374. gg.getResults(1000)
  375. gg.editAll("5.9762459e-7;250.1", 16)
  376. gg.clearResults()
  377. gg.searchNumber("7.5538861e-7;1::5", 16)
  378. gg.getResults(1000)
  379. gg.editAll("7.5538861e-7;250.1", 16)
  380. gg.clearResults()
  381. gg.toast("ATIVADO☑️")
  382. end
  383.      
  384.  
  385. function Exit()
  386. print ("n\n OBRIGADO POR USAR MINHA SCRIPT")
  387. os.exit()
  388. end
  389.  
  390.  
  391. function HOME()
  392. lw=1
  393. Main()
  394. end
  395.  
  396.  
  397.  
  398. cs = '▥▥▥▥'
  399. while(true)do
  400. if gg.isVisible(true) then
  401. XGCK=1
  402. gg.setVisible(false)
  403. end
  404. gg.clearResults()
  405. if XGCK==1 then
  406. Main()
  407. end
  408. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement