Skip to content

Commit

Permalink
[REFACT] Hidden debug strings in postprocessors
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade committed Jun 8, 2024
1 parent a2585f0 commit 985e41a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions postprocessors/pe_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 985e41a

Please sign in to comment.