Skip to content

Commit

Permalink
[FEATURE] Hidden debug message in quiet mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade committed Sep 1, 2024
1 parent b921e3b commit 64a3b8b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scanners/scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,9 @@ size_t pesieve::ProcessScanner::scanModulesIATs(ProcessScanReport &pReport) //th
size_t pesieve::ProcessScanner::scanThreads(ProcessScanReport& pReport) //throws exceptions
{
if (!this->symbols.IsInitialized()) {
std::cerr << "Failed to initialize symbols!\n";
if (!args.quiet) {
std::cerr << "[-] Failed to initialize symbols!\n";
}
return 0;
}

Expand All @@ -493,7 +495,7 @@ size_t pesieve::ProcessScanner::scanThreads(ProcessScanReport& pReport) //throws
if (!pesieve::util::fetch_threads_by_snapshot(pid, threads_info)) { // works on old Windows, but gives less data..

if (!args.quiet) {
std::cout << "[-] Failed enumerating threads." << std::endl;
std::cerr << "[-] Failed enumerating threads." << std::endl;
}
return 0;
}
Expand Down

0 comments on commit 64a3b8b

Please sign in to comment.