Changes between Initial Version and Version 2 of Ticket #62
- Timestamp:
- 09/21/2009 12:33:09 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #62 – Description
initial v2 5 5 6 6 The bases for DLL injection are already here: 7 * libzzuf's [/browser/zzuf/trunk/src/libzzuf.c libzzuf.c] contains a `DllMain` entry that calls `_zz_init` upon load.8 7 * libzzuf's [/browser/zzuf/trunk/src/sys.c sys.c] contains the following: 9 8 * A `LoadLibraryA_orig` pointer that should be filled with the address of the real `LoadLibraryA` function … … 11 10 * An `insert_func` function that replaces a given function address in the current process' address space 12 11 * Code in `_zz_sys_init` that calls `insert_func` for each function we want to overwrite (currently only LoadLibraryA is affected; in the future, this will iterate over a global array) 12 * libzzuf's [/browser/zzuf/trunk/src/libzzuf.c libzzuf.c] contains a `DllMain` entry that calls `_zz_init` upon load, which in turn causes `_zz_sys_init` to be called. 13 13 * zzuf's [/browser/zzuf/trunk/src/zzuf.c zzuf.c] contains the following: 14 14 * A `dll_inject` function that writes bytecode into the subprocess' address space which basically does `LoadLibraryA("libzzuf.dll")`