From 985e41a872f87c60208e8dedb034c2d337449ed8 Mon Sep 17 00:00:00 2001 From: hasherezade Date: Sat, 8 Jun 2024 11:43:14 -0700 Subject: [PATCH] [REFACT] Hidden debug strings in postprocessors --- postprocessors/pe_buffer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/postprocessors/pe_buffer.cpp b/postprocessors/pe_buffer.cpp index 3eaa5250d..eeaf0018f 100644 --- a/postprocessors/pe_buffer.cpp +++ b/postprocessors/pe_buffer.cpp @@ -35,7 +35,9 @@ bool pesieve::PeBuffer::readRemote(ULONGLONG module_base, size_t pe_vsize) } // try with the calculated size pe_vsize = calcRemoteImgSize(module_base); +#ifdef _DEBUG std::cout << "[!] Image size at: " << std::hex << module_base << " undetermined, using calculated size: " << pe_vsize << std::endl; +#endif return _readRemote(module_base, pe_vsize); } @@ -71,7 +73,9 @@ bool pesieve::PeBuffer::_readRemote(const ULONGLONG module_base, size_t pe_vsiz const bool can_force_access = this->isRefl ? true : false; size_t read_size = peconv::read_remote_area(processHndl, (BYTE*)this->moduleBase, vBuf, pe_vsize, can_force_access); if (read_size != pe_vsize) { +#ifdef _DEBUG std::cout << "[!] Failed reading Image at: " << std::hex << this->moduleBase << " img size: " << pe_vsize << std::endl; +#endif freeBuffer(); return false; }