当前位置:网站首页>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:它位于用户地址空间。
边栏推荐
- How to open a stock account? Is it safe to open a mobile account?
- DDD concept is complex and difficult to understand. How to design code implementation model in practice?
- Test / development programmers, 30, do you feel confused? And where to go
- 如何通过EasyCVR接口监测日志观察平台拉流情况?
- Cusdis - 轻量级、隐私优先的开源评论系统 | 倾城之链
- Beescms website penetration test and repair comments "suggestions collection"
- 非凸联合创始人李佐凡:将量化作为自己的终身事业
- I've been doing software testing for two years. I'd like to give some advice to girls who are still hesitating
- What are the SQL aggregate functions
- 【STL源码剖析】配置器(待补充)
猜你喜欢

EasyCVR平台EHOME协议接入,视频播放出现断流是什么原因?

The role of software security testing, how to find a software security testing company to issue a report?

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

Left hand dreams right hand responsibilities GAC Honda not only pays attention to sales but also children's safety

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

左手梦想 右手责任 广汽本田不光关注销量 还有儿童安全

What is the reason for the disconnection of video playback due to the EHOME protocol access of easycvr platform?

MeterSphere开源持续测试平台与阿里云云效DevOps的集成

Redis

疫情防控,居家办公,网上授课之心得 | 社区征文
随机推荐
How to open a stock account? Is it safe to open a mobile account?
Smartctl opens the device and encounters permission denied problem troubleshooting process record
LogMiner 数据库日志挖掘
DDD concept is complex and difficult to understand. How to design code implementation model in practice?
字符串数组转换为list集合
都2022年了,你还不了解什么是性能测试?
泰山OFFICE技术讲座:竖排时中文标点的简单研究
华为、阿里等大厂程序员真的好找对象吗?
Of the seven levels of software testers, it is said that only 1% can achieve level 7
[mobile terminal] design size of mobile phone interface
一线城市软件测试工资——你拖后腿了吗
Intégration de la plate - forme de test continu open source de metersphere avec Alibaba Cloud Effect devops
How to quickly familiarize yourself with the code when you join a new company?
Investigation on key threats of cloud computing applications in 2022
Integration of metersphere open source continuous testing platform and Alibaba cloud cloud cloud efficient Devops
ida中交叉引用的解析
【STL源码剖析】配置器(待补充)
指南针靠谱吗?开证券账户安全吗?
vim的Dirvish中文文档
Please run IDA with elevated permissons for local debugging.