当前位置:网站首页>PE文件基础结构梳理
PE文件基础结构梳理
2022-06-24 22:46:00 【华为云】
PE(Portable Execute)文件,它是Windows下可执行文件的总称,也是windows系统下标准的文件格式。
在window系统上常见的后缀为DLL,EXE,OCX,SYS等文件都是属于PE文件。但事实上,一个文件是否是PE文件与其扩展名无关,PE文件可以是任何扩展名。
PE文件结构概括起来就是:它主要由 “头”(DOS头,NT头,可选头)和“节”(text节,data节)组成。
在代码中去实现,判断一个可执行文件,是否是PE文件结构。主要有两个判断:
1.DOS头的魔法值字段是否是 “MZ” ,也就是 0x5A4D 值。
2.NT头的签名字段信息是否是 “PE00” ,也就是 0x00004550 值。
下图是一个标准PE文件结构图

PEB结构概述
PEB结构(Process Envirorment Block Structure):进程环境信息块。
PEB:它主要是用于存放进程信息,每个进程都有属于自己的PEB信息。
PEB:它位于用户地址空间。
边栏推荐
- 你知道你的ABC吗(春季每日一题 1)
- LINQ 查询(3)
- What is the reason for the disconnection of video playback due to the EHOME protocol access of easycvr platform?
- 【FPGA】串口以命令控制温度采集
- 02-Epicor二次开发常用代码
- 1-6搭建Win7虚拟机环境
- write a number of lines to a new file in vim
- Specific list of regular and safe domestic stock trading account opening
- How to choose a regular and safe foreign exchange trading platform?
- Smartctl opens the device and encounters permission denied problem troubleshooting process record
猜你喜欢

Exploring the mystery of C language program -- C language program compilation and preprocessing

It's 2022, and you still don't know what performance testing is?

会自动化—10K,能做自动化—20K,你搞懂自动化测试没有?

Talking about the advantages of flying book in development work | community essay solicitation

元宇宙的生态圈

Pit entry machine learning: I. Introduction

Software testing salary in first tier cities - are you dragging your feet

一线城市软件测试工资——你拖后腿了吗

Intranet learning notes (5)

内网学习笔记(5)
随机推荐
vim的Dirvish中文文档
Intégration de la plate - forme de test continu open source de metersphere avec Alibaba Cloud Effect devops
Explanation of FTP protocol
June 24, 2022: golang multiple choice question, what does the following golang code output? A:1; B:3; C:4; D: Compilation failed. package main import ( “f
泰山OFFICE技术讲座:竖排时中文标点的简单研究
你知道你的ABC吗(春季每日一题 1)
Post competition summary of kaggle patent matching competition
转行软件测试2年了,给还在犹豫的女生一点建议
会自动化—10K,能做自动化—20K,你搞懂自动化测试没有?
探索C语言程序奥秘——C语言程序编译与预处理
MOS tube related knowledge
Taishan Office Technology Lecture: a simple study of Chinese punctuation in vertical arrangement
Cusdis - lightweight, privacy first open source comment system | chain of the city
Rod and Schwartz cooperated with ZhongGuanCun pan Lianyuan Institute to carry out 6G technology research and early verification
多模态情感识别_多模态融合的情感识别研究「建议收藏」
write a number of lines to a new file in vim
华为、阿里等大厂程序员真的好找对象吗?
Chrysanthemum chain (winter vacation daily question 39)
Four characteristics of actual attack and defense drill
JS array object to object