当前位置:网站首页>PE file infrastructure sorting

PE file infrastructure sorting

2022-06-25 02:30:00 Hua Weiyun

PE(Portable Execute) file , It is Windows The general name of executable file , It's also windows Standard file format under the system .

stay window The common suffix on the system is DLL,EXE,OCX,SYS And other documents belong to PE file . But in fact , Whether a file is PE Files have nothing to do with their extensions ,PE The file can be any extension .

PE The file structure can be summarized as : It is mainly composed of “ head ”(DOS head ,NT head , Optional head ) and “ section ”(text section ,data section ) form .

To implement in code , Determine an executable file , Whether it is PE File structure . There are two main judgments :

1.DOS Whether the magic value field of the header is “MZ” , That is to say 0x5A4D value .

2.NT Whether the signature field information of the header is “PE00” , That is to say 0x00004550 value .

The following figure is a standard PE File structure chart

image.png

PEB Summary of structure
PEB structure (Process Envirorment Block Structure): Process environment information block .

PEB: It is mainly used to store process information , Every process has its own PEB Information .

PEB: It is located in the user address space .

原网站

版权声明
本文为[Hua Weiyun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206242246134621.html