}
uintptr_t retval = 0;
- int lines_processed = 0;
- int matches_found = 0;
while (fgets(line + linelen, linesz - linelen, maps_file) != NULL) {
linelen = strlen(line);
line[linelen - 1] = '\0';
// and prepare to read the next line into the start of the buffer.
linelen = 0;
- lines_processed++;
unsigned long start = 0;
unsigned long path_pos = 0;
}
if (strstr(filename, substr)) {
- matches_found++;
retval = search_elf_file_for_section(handle, secname, start, path);
if (retval) {
break;
MODULEENTRY32W moduleEntry;
moduleEntry.dwSize = sizeof(moduleEntry);
void* runtime_addr = NULL;
- int modules_examined = 0;
- int matches_found = 0;
for (BOOL hasModule = Module32FirstW(hProcSnap, &moduleEntry); hasModule; hasModule = Module32NextW(hProcSnap, &moduleEntry)) {
- modules_examined++;
-
// Look for either python executable or DLL
if (wcsstr(moduleEntry.szModule, substr)) {
- matches_found++;
runtime_addr = analyze_pe(moduleEntry.szExePath, moduleEntry.modBaseAddr, secname);
if (runtime_addr != NULL) {
break;