![]() |
|
[C] Reflection in C++ - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C] Reflection in C++ (/showthread.php?tid=5534778) |
Reflection in C++ - poke1103 - Jan 26, 2017 Hey! So I know it is possible in Java to take a bunch of classes and load them into a ClassLoader object and use reflection to call methods, or get variables. I know you could also use this to inject mouse events into a program and I'm wondering if it is possible to do something like this for games or programs made in C++? How can I read the variables of a program during runtime? Thanks * - Infamia - Jan 26, 2017 There is a C++ section, use it please. * - 0xDEAD10CC - Jan 28, 2017 ReadProcessMemory (Windows). Reflection is not a thing with real C++. * - clrlslwi - Jan 28, 2017 Pretty much all meta data is destroyed when compiling. There might be some due to RTTI, but not enough to do what you're asking. * - Hoody - Jan 28, 2017 Using vc++ you can reflect .net payloads... Code array<byte>^ managedPayload = gcnew array<byte>(Settings->payloadSize); |