netpumber
May 25th, 2010, 10:34
Hallo everybody.. I have a little question..
Here is the definition of Section_header
An here is a simple image example with one section table (.text)
http://img594.imageshack.us/img594/5157/hexk.jpg
the hex code in green is the PointerToRawData .. Am i right ?
Im trying to understand why is this the PointerToRawData..
The Name of the struct is always 8 bytes (if i remember) so.. we add and these
DWORD PhysicalAddress;
DWORD VirtualSize;
DWORD VirtualAddress;
DWORD SizeOfRawData;
4 bytes each one.. And we have
8 + (4*4) = 32 But the PointerOfRawData starts at 21st byte..
Any explanation ?
Thanks in advance
Here is the definition of Section_header
Code:
typedef struct _IMAGE_SECTION_HEADER {
BYTE Name[IMAGE_SIZEOF_SHORT_NAME];
union {
DWORD PhysicalAddress;
DWORD VirtualSize;
} Misc;
DWORD VirtualAddress;
DWORD SizeOfRawData;
DWORD PointerToRawData;
DWORD PointerToRelocations;
DWORD PointerToLinenumbers;
WORD NumberOfRelocations;
WORD NumberOfLinenumbers;
DWORD Characteristics;
}
An here is a simple image example with one section table (.text)
http://img594.imageshack.us/img594/5157/hexk.jpg
the hex code in green is the PointerToRawData .. Am i right ?
Im trying to understand why is this the PointerToRawData..
The Name of the struct is always 8 bytes (if i remember) so.. we add and these
DWORD PhysicalAddress;
DWORD VirtualSize;
DWORD VirtualAddress;
DWORD SizeOfRawData;
4 bytes each one.. And we have
8 + (4*4) = 32 But the PointerOfRawData starts at 21st byte..
Any explanation ?
Thanks in advance
