Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repair dump memory read alignment and filter out the PAGE_NOACCESS image section #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Scylla/PeParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ bool PeParser::readSectionFromFile(const DWORD readOffset, PeFileSection & peFil

bool PeParser::readSectionFrom(const DWORD_PTR readOffset, PeFileSection & peFileSection, const bool isProcess)
{
const DWORD maxReadSize = 100;
const DWORD maxReadSize = 0x100;
DWORD currentReadSize;
BYTE data[maxReadSize];
bool retValue = true;
Expand Down
4 changes: 2 additions & 2 deletions Scylla/ProcessAccessHelp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ bool ProcessAccessHelp::readMemoryPartlyFromProcess(DWORD_PTR address, SIZE_T si
{
bytesToRead = size - readBytes;
}

if (memBasic.State == MEM_COMMIT)
if (memBasic.State == MEM_COMMIT && memBasic.Protect != PAGE_NOACCESS)
{
if (!readMemoryFromProcess(addressPart, bytesToRead, (LPVOID)((DWORD_PTR)dataBuffer + readBytes)))
{
Expand Down