User Tools

Site Tools


exploiting:theory:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
exploiting:theory:start [2020/01/02 11:04] titannetexploiting:theory:start [2020/01/02 11:44] (current) titannet
Line 97: Line 97:
  
 </spoiler> </spoiler>
 +
 +<code>
 +Magic -> 32 or 64
 +AddressOfEntryPoints -> RVA of Entry Point (EP) ~ location of first instruction
 +BaseOfCode, BaseOfData -> Code and Data Sections
 +ImageBase -> Preferred VA for PE file in memory (default: 0x00400000 for .exe, 0x10000000 for DLLs)
 +SectionAlignment, FileAlignment -> Alignment in memory
 +SizeOfImage -> MemorySize of PE file at runtime, must be multiple of SectionAlignment
 +</code>
 +
 +DataDirectory Array:
 +<code c>
 +typedef struct _IMAGE_DATA_DIRECTORY {
 +  DWORD VirtualAddress;
 +  DWORD Size;
 +} IMAGE_DATA_DIRECTORY, *PIMAGE_DATA_DIRECTORY;
 +
 +* 16 Data Directory Structures per default htat point to RVA and size of specific data inside PE image on runtime.
 +* Example: ExportTableAddress (exported functions), ImportTableAddress (imported functions), ResourceTable (embedded resources), ImportAddressTable (IAT, runtime addresses of imported functions) 
 +
 +
 +
 +</code>
  
exploiting/theory/start.1577959450.txt.gz · Last modified: 2020/01/02 11:04 by titannet

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki