nspron Posted May 26, 2021 Posted May 26, 2021 @Enyby E.g ["libgame.so" + 0x10010] -> + 0x50 -> +0xCC = 100 You can be compiled into an executable script it? Change 100 to 200.
CmP Posted May 29, 2021 Posted May 29, 2021 local ranges = gg.getRangesList("libgame.so") local libStart = ranges[1].start local value = {{address = libStart + 0x10010, flags = gg.TYPE_DWORD}} value = gg.getValues(value) value[1].address = value[1].value + 0x50 value = gg.getValues(value) value[1].address = value[1].value + 0xCC value = gg.getValues(value) print("Target value resides at address " .. string.format("%08X", value[1].address):sub(-8) .. " and it's current value is " .. value[1].value)
Lover1500 Posted May 29, 2021 Posted May 29, 2021 1 hour ago, CmP said: local ranges = gg.getRangesList("libgame.so") local libStart = ranges[1].start local value = {{address = libStart + 0x10010, flags = gg.TYPE_DWORD}} value = gg.getValues(value) value[1].address = value[1].value + 0x50 value = gg.getValues(value) value[1].address = value[1].value + 0xCC value = gg.getValues(value) print("Target value resides at address " .. string.format("%08X", value[1].addresssub(-8) .. " and it's current value is " .. value[1].value) Idk if i should ask to you. but i need Read value of existing address using c++ (#augzflhr) can you help me sir
CmP Posted May 29, 2021 Posted May 29, 2021 4 minutes ago, Lover1500 said: Read value of existing address using c++ (#augzflhr) can you help me sir Although I haven't had any experience with reading values in process memory using C++, the question doesn't seem to be too advanced, so I can try to help you find an answer to it. Write me a direct message describing what you currently use for working with process memory.
Lover1500 Posted July 25, 2021 Posted July 25, 2021 On 5/30/2021 at 4:54 AM, CmP said: Write me a direct message describing what you currently use for working with process memory. Yeah i solved that. Thanks for your time. Let me write here for others who faced such thing like me. For hacking game and entering game memory,we have to open mem with read or write. We can use pread() to read value from a file with offsets(yeah reading value of an address). Also can use pread64() for 64 bit pointer values. and thanks again for your effort.
MC874 Posted July 26, 2021 Posted July 26, 2021 On 5/26/2021 at 5:51 PM, nspron said: [added 1 minute later] I don't quite understand, can you generate a code for me, thank you function setvalue(address,flags,value) local tt={} tt[1]={} tt[1].address=address tt[1].flags=flags tt[1].value=value gg.setValues(tt) end lib=gg.getRangesList('targetlib.so')[1].start addr=0x1 setvalue(lib+addr,4,0)
Lover1500 Posted May 26, 2021 Posted May 26, 2021 First,use getRangesList for lib and add offset for desired base pointer (libgame.so+0x10010) Get value of that base address by gg.getValues(). 1 hour ago, nspron said: ["libgame.so" + 0x10010] -> + 0x50 -> +0xCC = 100 as yours, that base address will point to an address.With this ways, You will get address of value 100 finally. Test manually and write script.
nspron Posted May 26, 2021 Author Posted May 26, 2021 [added 1 minute later] 34 minutes ago, Lover1500 said: First,use getRangesList for lib and add offset for desired base pointer (libgame.so+0x10010) Get value of that base address by gg.getValues(). as yours, that base address will point to an address.With this ways, You will get address of value 100 finally. Test manually and write script. I don't quite understand, can you generate a code for me, thank you
Question
nspron
@Enyby
E.g
You can be compiled into an executable script it?
Change 100 to 200.
7 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.