SCRIPTNMODZ

CrimeRevolt

Jan 19th, 2022 (edited)
518
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --https://youtube.com/channel/UCOgEgKdCpgoN_GkAsV82rcA link do canal
  2. local memFrom, memTo, lib, num, lim, results, src, ok = 0, -1, nil, 0, 32, {}, nil, false function name(n) if lib ~= n then lib = n local ranges = gg.getRangesList(lib) if #ranges == 0 then else memFrom = ranges[1].start memTo = ranges[#ranges]["end"] end end end function hex2tbl(hex) local ret = {} hex:gsub("%S%S", function(ch) ret[#ret + 1] = ch return "" end) return ret end function original(orig) local tbl = hex2tbl(orig) local len = #tbl if len == 0 then return end local used = len if len > lim then used = lim end local s = "" for i = 1, used do if i ~= 1 then s = s .. ";" end local v = tbl[i] if v == "??" or v == "**" then v = "0~~0" end s = s .. v .. "r" end s = s .. "::" .. used gg.searchNumber(s, gg.TYPE_BYTE, false, gg.SIGN_EQUAL, memFrom, memTo) if len > used then for i = used + 1, len do local 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 local found = gg.getResultCount() results = {} local count = 0 local checked = 0 while not (found <= checked) do local all = gg.getResults(8) local total = #all local start = checked if total < checked + used then break end for i, v in ipairs(all) do v.address = v.address + myoffset end gg.loadResults(all) while total > start do local good = true local offset = all[1 + start].address - 1 if len > used then local get = {} for i = lim + 1, len do get[i - lim] = { address = offset + i, flags = gg.TYPE_BYTE, value = 0 } end get = gg.getValues(get) for i = lim + 1, len do local 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 local 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 local tbl = hex2tbl(repl) if src ~= nil then local 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 local cnt = #tbl local set = {} local 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 = gg.TYPE_BYTE } end end end if s ~= 0 then gg.setValues(set) end ok = true end --[[-. .- -.. .- / ..-. .- --.. / ... . -. - .. -.. ---]]
  3. local isInisialize = false
  4. local welcome  = gg.alert("• Bem Vindo •", "Entra", "Sair")
  5.  
  6. if welcome == 1 then
  7.     isInisialize = true
  8. else if welcome == 2 then
  9.         isInisialize = false
  10.     end
  11. end
  12.  
  13. gg.setVisible(true)
  14.  
  15. function main()
  16.     local menu = gg.multiChoice({
  17.         "Subida Rápida 🛫",
  18.         "Descida Rapida 🛬️",
  19.         "Voar 🧞‍♂️",
  20.         "WhallHack Visual 🔍",
  21.         "Bala Mágica 🔮",
  22.         "Visão Puchada 👀",
  23.         "Tiro Vermelho 🔪",
  24.         "Todos Agachado 🏅",
  25.         "⚔️ Sair ⚔️"
  26.     }, nil, "* Script by: HN MODS")
  27.     if menu == nil then
  28.     else
  29.         if menu[1] then
  30.             sbr()
  31.         end
  32.         if menu[2] then
  33.             dcr()
  34.         end
  35.         if menu[3] then
  36.             fy()
  37.         end
  38.         if menu[4] then
  39.             whv()
  40.         end
  41.         if menu[5] then
  42.             bm()
  43.         end
  44.         if menu[6] then
  45.             vp()
  46.         end
  47.         if menu[7] then
  48.             tv()
  49.         end
  50.         if menu[8] then
  51.             ta()
  52.         end
  53.         if menu[9] then
  54.             os.exit()
  55.         end
  56.     end
  57. end
  58.  
  59. function sbr()
  60.     gg.clearResults()
  61.     gg.setRanges(gg.REGION_C_ALLOC)
  62.     gg.searchNumber("0.70710676908F;0.70710676908F;0.44999998808F;0.80000001192F:29", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  63.     gg.refineNumber("0.80000001192", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  64.     gg.getResults(1000)
  65.     gg.editAll("100", gg.TYPE_FLOAT)
  66.     gg.clearResults()
  67. end
  68. function dcr()
  69.     gg.clearResults()
  70.     gg.setRanges(gg.REGION_C_ALLOC)
  71.     gg.searchNumber("0.44999998808F;0.80000001192F;1.29999995232F:25", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  72.     gg.refineNumber("0.80000001192", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  73.     gg.getResults(1000)
  74.     gg.editAll("100", gg.TYPE_FLOAT)
  75.     gg.clearResults()
  76. end
  77. function fy()
  78.     local data = gg.prompt({
  79.         "Digite o valor da altura"
  80.     }, {"0.44999998808"})
  81.     gg.clearResults()
  82.     gg.setRanges(gg.REGION_C_ALLOC)
  83.     gg.searchNumber("0.70710676908F;0.70710676908F;0.44999998808F;0.80000001192F:29", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  84.     gg.refineNumber("0.44999998808", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  85.     gg.sleep(500)
  86.     gg.refineNumber("0.44999998808", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  87.     gg.sleep(500)
  88.     gg.refineNumber("0.44999998808", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  89.     gg.sleep(500)
  90.     gg.refineNumber("0.44999998808", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  91.     gg.sleep(500)
  92.     gg.refineNumber("0.44999998808", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  93.     gg.sleep(500)
  94.     gg.refineNumber("0.44999998808", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  95.     gg.sleep(500)
  96.     gg.refineNumber("0.44999998808", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  97.     gg.sleep(500)
  98.     gg.refineNumber("0.44999998808", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  99.     gg.sleep(500)
  100.     gg.refineNumber("0.44999998808", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  101.     gg.sleep(500)
  102.     gg.refineNumber("0.44999998808", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  103.     gg.getResults(1000)
  104.     gg.editAll(data[1], gg.TYPE_FLOAT)
  105.     gg.clearResults()
  106. end
  107. function whv()
  108.     local data = gg.prompt({
  109.         "Digite o valor da distância"
  110.     }, {"0.10000000149"})
  111.     gg.clearResults()
  112.     gg.setRanges(gg.REGION_C_ALLOC)
  113.     gg.searchNumber("1.4012985e-45F;0.10000000149F;500.0F:81", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  114.     gg.refineNumber("0.10000000149", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  115.     gg.getResults(1000)
  116.     gg.editAll(data[1], gg.TYPE_FLOAT)
  117.     gg.clearResults()
  118. end
  119. function bm()
  120.     gg.clearResults()
  121.     gg.setRanges(gg.REGION_C_ALLOC)
  122.     gg.searchNumber("0.60", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  123.     gg.refineNumber("0.60", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  124.     gg.sleep(500)
  125.     gg.refineNumber("0.60", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  126.     gg.sleep(500)
  127.     gg.refineNumber("0.60", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  128.     gg.sleep(500)
  129.     gg.refineNumber("0.60", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  130.     gg.sleep(500)
  131.     gg.refineNumber("0.60", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  132.     gg.sleep(500)
  133.     gg.refineNumber("0.60", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  134.     gg.sleep(500)
  135.     gg.refineNumber("0.60", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  136.     gg.sleep(500)
  137.     gg.refineNumber("0.60", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  138.     gg.getResults(1000)
  139.     gg.editAll("90", gg.TYPE_FLOAT)
  140.     gg.clearResults()
  141. end
  142. function vp()
  143.     local data = gg.prompt({
  144.         "Digite o valor da Visão"
  145.     }, {"60"})
  146.     gg.clearResults()
  147.     gg.setRanges(gg.REGION_ANONYMOUS)
  148.     gg.searchNumber("60", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  149.     gg.refineNumber("60", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  150.     gg.getResults(1000)
  151.     gg.editAll(data[1], gg.TYPE_FLOAT)
  152.     gg.clearResults()
  153. end
  154.  
  155. function tv()
  156.     gg.clearResults()
  157.     gg.setRanges(gg.REGION_CODE_APP | gg.REGION_C_DATA | gg.REGION_C_ALLOC)
  158.     name("libil2cpp.so")
  159.     myoffset = 0x893D4C
  160.     original("7F 45 4C 46 01 01 01 00")
  161.     replaced("01 00 A0 E3 1E FF 2F E1")
  162.     gg.clearResults()
  163. end
  164.  
  165. function ta()
  166.     gg.clearResults()
  167.     gg.setRanges(gg.REGION_CODE_APP | gg.REGION_C_DATA | gg.REGION_C_ALLOC)
  168.     name("libil2cpp.so")
  169.     myoffset = 0x17682C4
  170.     original("7F 45 4C 46 01 01 01 00")
  171.     replaced("01 00 A0 E3 1E FF 2F E1")
  172.     gg.clearResults()
  173. end
  174.  
  175. print("Até logo")
  176.  
  177. while isInisialize do
  178.     if gg.isVisible(false) then
  179.         gg.setVisible(false)
  180.         main()
  181.     end
  182. end
  183.  
  184. --[[
  185. :)
  186. ]]
RAW Paste Data Copied