Initializes the `DllInfo` struct with `ntdll.dll`'s base and end addresses by accessing the PEB and locating the module using its DJB2 hash (0x1edab0ed).
(obj: &mut DllInfo)
| 40 | /// Initializes the `DllInfo` struct with `ntdll.dll`'s base and end addresses by accessing the PEB and |
| 41 | /// locating the module using its DJB2 hash (0x1edab0ed). |
| 42 | pub fn initialize_dll_info(obj: &mut DllInfo) { |
| 43 | let (base_addr, size_of_image) = unsafe { ldr_module_info(0x1edab0ed) }; |
| 44 | |
| 45 | obj.base_address = base_addr as u64; |
| 46 | obj.end_address = unsafe { base_addr.add(size_of_image) } as u64; |
| 47 | } |
| 48 | |
| 49 | /// Adds hardware breakpoints at the syscall entry and return addresses. |
| 50 | /// |
no test coverage detected