SCRIPTNMODZ

The sun origin 2.1.5

Feb 24th, 2022
2,161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.71 KB | None | 0 0
  1. --[[
  2. * The sun origin - V2.1.5
  3. * Crido por HN Mods
  4. * Tempo de criaรงรฃo: 4 dias
  5. * Se por repostar por favor deixe os creditor
  6. ]]
  7.  
  8. 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
  9.  
  10. gg.setVisible(true)
  11.  
  12. function main()
  13.     local menu = gg.multiChoice({
  14.         "๐Ÿ—ƒ Almentar estoque",
  15.         "๐Ÿ•บ Almentar pulo",
  16.         "๐Ÿƒโ€โ™‚๏ธ Almentar velocidade",
  17.         "๐Ÿ’ฃ Almentar pente",
  18.         "๐Ÿ’ฅ Diminuir despejo",
  19.         "๐Ÿ’ธ Dinheiro infinito",
  20.         "๐Ÿ’Š Remover barreira",
  21.         "๐Ÿ’‰ Vida infinita",
  22.         "๐Ÿณ Sair๐Ÿณ",
  23.     }, nil, "\t\t\t\t๐Ÿฅ‡ By HN Mods ๐Ÿฅ‡\n\t\t\tThe sun: Origin - 2.1.5")
  24.     if menu == nil then
  25.        
  26.     else
  27.         if menu[1] then
  28.             a()
  29.         end
  30.         if menu[2] then
  31.             b()
  32.         end
  33.         if menu[3] then
  34.             c()
  35.         end
  36.         if menu[4] then
  37.             d()
  38.         end
  39.         if menu[5] then
  40.             e()
  41.         end
  42.         if menu[6] then
  43.             f()
  44.         end
  45.         if menu[7] then
  46.             g()
  47.         end
  48.         if menu[8] then
  49.             h()
  50.         end
  51.         if menu[9] then
  52.             os.exit()
  53.         end
  54.     end
  55. end
  56.  
  57. function a()
  58.     gg.setRanges(gg.REGION_ANONYMOUS)
  59.     gg.searchNumber("3.2691901e-39F;0.10000000149F;2.8025969e-45F:9", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  60.     gg.refineNumber("0.10000000149", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  61.     gg.getResults(1000)
  62.     gg.editAll("-9999999999", gg.TYPE_FLOAT)
  63.     gg.clearResults()
  64. end
  65. function b()
  66.     gg.setRanges(gg.REGION_ANONYMOUS)
  67.     gg.searchNumber("0.20000000298F;0.20000000298F;0.07999999821F;0.00300000003F:357", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  68.     gg.refineNumber("0.20000000298", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  69.     gg.getResults(1000);
  70.     gg.editAll("1", gg.TYPE_FLOAT)
  71.     gg.clearResults()
  72. end
  73. function c()
  74.     gg.setRanges(gg.REGION_CODE_APP | gg.REGION_C_DATA)
  75.     name("libil2cpp.so")
  76.     myoffset = 0x16D615C
  77.     original("7F 45 4C 46 01 01 01 00")
  78.     replaced("00 00 00 3F 3D AD 9A 02")
  79.     gg.clearResults()
  80. end
  81. function d()
  82.     gg.setRanges(gg.REGION_CODE_APP | gg.REGION_C_DATA)
  83.     name("libil2cpp.so")
  84.     myoffset = 0xF401C4
  85.     original("7F 45 4C 46 01 01 01 00")
  86.     replaced("90 7F 2D E3 1E FF 2F E1")
  87.     gg.clearResults()
  88. end
  89. function e()
  90.     gg.setRanges(gg.REGION_CODE_APP | gg.REGION_C_DATA)
  91.     name("libil2cpp.so")
  92.     myoffset = 0x16E86C4
  93.     original("7F 45 4C 46 01 01 01 00")
  94.     replaced("00 00 00 E3 1E FF 2F E1")
  95.     gg.clearResults()
  96. end
  97. function f()
  98.     gg.setRanges(gg.REGION_CODE_APP | gg.REGION_C_DATA)
  99.     name("libil2cpp.so")
  100.     myoffset = 0xFC2750
  101.     original("7F 45 4C 46 01 01 01 00")
  102.     replaced("7F 4B 2D E3 1E FF 2F E1")
  103.     gg.clearResults()
  104. end
  105. function g()
  106.     gg.setRanges(gg.REGION_CODE_APP | gg.REGION_C_DATA)
  107.     name("libil2cpp.so")
  108.     myoffset = 0xF5BBA8
  109.     original("7F 45 4C 46 01 01 01 00")
  110.     replaced("00 00 A0 E3 1E FF 2F E1")
  111.     gg.clearResults()
  112. end
  113.  
  114. function h()
  115.     gg.setRanges(gg.REGION_CODE_APP | gg.REGION_C_DATA)
  116.     name("libil2cpp.so")
  117.     myoffset = 0xF584C0
  118.     original("7F 45 4C 46 01 01 01 00")
  119.     replaced("4C 20 9F E3 1E FF 2F E1")
  120. end
  121.  
  122. while true do
  123.     if gg.isVisible(true) then
  124.         gg.setVisible(false)
  125.         gg.clearResults()
  126.         main()
  127.     end
  128. end
  129.  
  130. print("Script: Obrigado por usar estรก script nรณs veremos em breve")--TmFkYSBmYXogc2VudGlkbyBhcyB2ZXplcyBhY2hvIHF1ZSBlc3RvdSBlbSB1bSBsb29wIDIvMTAw
Advertisement
Add Comment
Please, Sign In to add comment