Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- * The sun origin - V2.1.5
- * Crido por HN Mods
- * Tempo de criaรงรฃo: 4 dias
- * Se por repostar por favor deixe os creditor
- ]]
- 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
- gg.setVisible(true)
- function main()
- local menu = gg.multiChoice({
- "๐ Almentar estoque",
- "๐บ Almentar pulo",
- "๐โโ๏ธ Almentar velocidade",
- "๐ฃ Almentar pente",
- "๐ฅ Diminuir despejo",
- "๐ธ Dinheiro infinito",
- "๐ Remover barreira",
- "๐ Vida infinita",
- "๐ณ Sair๐ณ",
- }, nil, "\t\t\t\t๐ฅ By HN Mods ๐ฅ\n\t\t\tThe sun: Origin - 2.1.5")
- if menu == nil then
- else
- if menu[1] then
- a()
- end
- if menu[2] then
- b()
- end
- if menu[3] then
- c()
- end
- if menu[4] then
- d()
- end
- if menu[5] then
- e()
- end
- if menu[6] then
- f()
- end
- if menu[7] then
- g()
- end
- if menu[8] then
- h()
- end
- if menu[9] then
- os.exit()
- end
- end
- end
- function a()
- gg.setRanges(gg.REGION_ANONYMOUS)
- gg.searchNumber("3.2691901e-39F;0.10000000149F;2.8025969e-45F:9", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
- gg.refineNumber("0.10000000149", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
- gg.getResults(1000)
- gg.editAll("-9999999999", gg.TYPE_FLOAT)
- gg.clearResults()
- end
- function b()
- gg.setRanges(gg.REGION_ANONYMOUS)
- gg.searchNumber("0.20000000298F;0.20000000298F;0.07999999821F;0.00300000003F:357", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
- gg.refineNumber("0.20000000298", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
- gg.getResults(1000);
- gg.editAll("1", gg.TYPE_FLOAT)
- gg.clearResults()
- end
- function c()
- gg.setRanges(gg.REGION_CODE_APP | gg.REGION_C_DATA)
- name("libil2cpp.so")
- myoffset = 0x16D615C
- original("7F 45 4C 46 01 01 01 00")
- replaced("00 00 00 3F 3D AD 9A 02")
- gg.clearResults()
- end
- function d()
- gg.setRanges(gg.REGION_CODE_APP | gg.REGION_C_DATA)
- name("libil2cpp.so")
- myoffset = 0xF401C4
- original("7F 45 4C 46 01 01 01 00")
- replaced("90 7F 2D E3 1E FF 2F E1")
- gg.clearResults()
- end
- function e()
- gg.setRanges(gg.REGION_CODE_APP | gg.REGION_C_DATA)
- name("libil2cpp.so")
- myoffset = 0x16E86C4
- original("7F 45 4C 46 01 01 01 00")
- replaced("00 00 00 E3 1E FF 2F E1")
- gg.clearResults()
- end
- function f()
- gg.setRanges(gg.REGION_CODE_APP | gg.REGION_C_DATA)
- name("libil2cpp.so")
- myoffset = 0xFC2750
- original("7F 45 4C 46 01 01 01 00")
- replaced("7F 4B 2D E3 1E FF 2F E1")
- gg.clearResults()
- end
- function g()
- gg.setRanges(gg.REGION_CODE_APP | gg.REGION_C_DATA)
- name("libil2cpp.so")
- myoffset = 0xF5BBA8
- original("7F 45 4C 46 01 01 01 00")
- replaced("00 00 A0 E3 1E FF 2F E1")
- gg.clearResults()
- end
- function h()
- gg.setRanges(gg.REGION_CODE_APP | gg.REGION_C_DATA)
- name("libil2cpp.so")
- myoffset = 0xF584C0
- original("7F 45 4C 46 01 01 01 00")
- replaced("4C 20 9F E3 1E FF 2F E1")
- end
- while true do
- if gg.isVisible(true) then
- gg.setVisible(false)
- gg.clearResults()
- main()
- end
- end
- print("Script: Obrigado por usar estรก script nรณs veremos em breve")--TmFkYSBmYXogc2VudGlkbyBhcyB2ZXplcyBhY2hvIHF1ZSBlc3RvdSBlbSB1bSBsb29wIDIvMTAw
Advertisement
Add Comment
Please, Sign In to add comment