![]() |
|
|
|
#1
|
|||
|
|||
|
total suppositions, its not a hole, the sections will be aligned by section alignment in memory
so 400000->401000 is DEFINATELY available hole in memory in the exe maybe, but not when mapped into memory.. try it.. suppositions help noone reading the thread... all the memory is available in the exe, typically from the image base->image base + size of image, the sections are all linear, and padded until section alignment, unless the sections have attributes like PAGE_GUARD etc, which can be set from virtualprotect.. however on a normal exe, you can do the straight dump no problems 4k limit is bullshit too.. 4k is just the size of 1 memory page (alignment) - 4096 bytes readprocessmemory/writeprocessmemory are definately capable of writing more than 4k in 1 go... |
|
#2
|
|||
|
|||
|
Quote:
Maybe if the header was 500 long, and the .text started at 402000, there would still be a whole - not from 400500 to 401FFF as I thought, but from 401000 to 401FFF, since the header takes up an entire page and not just 500. I took a look at a couple of windows executables and all of them have the sections contiguous to each other, so the memory from the start of the first section to the end of the last one should all be available - excluding any page in/out issues. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|