Skip to content

Commit

Permalink
[BUGFIX] Updated pe-sieve with a bugfix. Changed reporting partial scan
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade committed Jul 12, 2020
1 parent 70b013a commit ef17bcc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions hh_scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ HHScanReport* HHScanner::scan()
std::cout << " : " << image_buf;
}
if (is_process_wow64) {
std::cout << " : 32" ;
std::cout << " : 32b" ;
}
std::cout << std::endl;
}
Expand All @@ -247,7 +247,7 @@ HHScanReport* HHScanner::scan()
std::cout << "[!] Could not access: " << std::dec << pid;
#ifndef _WIN64
if (isScannerWow64 != is_process_wow64) {
std::cout << ", use 64-bit scanner";
std::cout << " : 64b";
}
#endif
}
Expand All @@ -256,10 +256,9 @@ HHScanReport* HHScanner::scan()
continue;
}
#ifndef _WIN64
// this situation should be prevented by PE-sieve
if (report.is_64bit) {
WORD old_color = set_color(MAKE_COLOR(SILVER, DARK_RED));
std::cout << "[!] Partial scan: " << std::dec << pid << ", the target is " << (report.is_64bit ? 64 : 32) << "-bit";
WORD old_color = set_color(MAKE_COLOR(SILVER, DARK_MAGENTA));
std::cout << "[!] Partial scan: " << std::dec << pid << " : " << (report.is_64bit ? 64 : 32) << "b";
set_color(old_color);
std::cout << std::endl;
}
Expand Down
2 changes: 1 addition & 1 deletion pe-sieve

0 comments on commit ef17bcc

Please sign in to comment.