From 64a3b8b2d5b208ff2d8157be3b5c6775ca0c11cd Mon Sep 17 00:00:00 2001 From: hasherezade Date: Sun, 1 Sep 2024 11:22:43 -0700 Subject: [PATCH] [FEATURE] Hidden debug message in quiet mode --- scanners/scanner.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scanners/scanner.cpp b/scanners/scanner.cpp index 730bcda2..6c8b5606 100644 --- a/scanners/scanner.cpp +++ b/scanners/scanner.cpp @@ -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; } @@ -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; }