We’re rewarding the question askers & reputations are being recalculated! Read more.

New answers tagged

0

Yes, if the input is not 0-terminated. If that's the case, strlen will happily continue counting bytes until it finds one, moving out of the input's bounds. It then depends on how clean the memory is where the input is allocated.


0

I think your current hierarchy model is incomplete and func_3 is one more constructor. I would suggest checking methods in each vtable to see changed or added methods so it's more clear what is being changed. You should also look for the destructors and see how they restore vtables, it should add more info to the picture. (look at the first few methods in ...


0

If you're going to use assembly stubs, you can just patch it directly to the binary. You don't really need to use c++ to do that for you. To do that for both 32 and 64 bit, you can use CreateFile, CreateFileMapping, and MapViewOfFile. This will allow you to dump the .text section, basically all sections, of the PE and you can do whatever you want to it. Then ...


1

This question is a bit confusing. Both __fastcall and __thiscall share that they use ecx as the first storage point. So either you implicitly say the class pointer will be in ecx (__thiscall) or you say the function is not a member function but has one argument - which also gets passed in ecx when using __fastcall so the class pointer still ends up in the ...


1

Duh. Stupid. Importantly, the binary I am looking at is not a PIE (Position Independent Executable). I had Ghidra's image base set to 0x0, rather than 0x400000 (which is the p_vaddr of the loadable segment containing all of the code, and notably, the canonical value used here for x86_64 binaries). This is the only reason the function pointers listed in ....


0

So basically you just want a hook? There are a huge number of ways to achieve this but the simplest is probably a JMP hook. I'm happy to explain the details of how it works if you want, but I suggest just using an existing library like MinHook either way. Note that if this game is online then it's very likely you'll be kicked or banned, CRC hashes on code ...


Top 50 recent answers are included