Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gg.setVisible(true)
- gg.setRanges(gg.REGION_ANONYMOUS)
- gg.clearResults()
- gg.searchNumber("h06000000000000000000000000000000000000000000803F", gg.TYPE_BYTE, false, gg.SIGN_EQUAL, 0, -1)
- local count = gg.getResultCount()
- if count == 0 then
- gg.alert("Nenhuma correspondência encontrada para o hex string na região ANONYMOUS.")
- else
- local results = gg.getResults(count)
- local targetIndices = {7, 8, 23, 24}
- local output = {}
- for _, index in ipairs(targetIndices) do
- if index <= count then
- local targetAddr = results[index].address
- local floatAddr = targetAddr + 0x14
- local value = gg.getValues({{address = floatAddr, flags = gg.TYPE_FLOAT}})[1].value
- table.insert(output, string.format("Resultado %d:\nEstrutura em: 0x%X\nPonteiro para float: 0x%X\nValor: %f", index, targetAddr, floatAddr, value))
- end
- end
- gg.alert(table.concat(output, "\n\n"))
- end
- gg.clearResults()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement