当前位置:网站首页>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:它位于用户地址空间。
边栏推荐
- 内网学习笔记(6)
- I've been doing software testing for two years. I'd like to give some advice to girls who are still hesitating
- MCN机构遍地开花:博主和作者要谨慎签约、行业水很深
- Specific list of regular and safe domestic stock trading account opening
- 折叠屏将成国产手机分食苹果市场的重要武器
- Intranet learning notes (5)
- Chinese address and English address
- File system - basic knowledge of disk and detailed introduction to FAT32 file system
- Cake review fatigue in the secondary market of innovative drugs: phase III clinical success and product approval
- Build and train your own dataset for pig face recognition
猜你喜欢
随机推荐
Left hand dreams right hand responsibilities GAC Honda not only pays attention to sales but also children's safety
内网学习笔记(5)
折叠屏将成国产手机分食苹果市场的重要武器
I've been doing software testing for two years. I'd like to give some advice to girls who are still hesitating
EasyCVR国标协议接入的通道,在线通道部分播放异常是什么原因?
如何选择正规安全的外汇交易平台?
It's 2022, and you still don't know what performance testing is?
Intranet learning notes (5)
产业互联网的概念里有「互联网」字眼,但却是一个和互联网并不关联的存在
内网学习笔记(6)
Kaggle 专利匹配比赛赛后总结
疫情防控,居家办公,网上授课之心得 | 社区征文
How to get the picture outside the chain - Netease photo album [easy to understand]
Dataease template market officially released
中信证券手机开户是靠谱的吗?安全吗
beescms网站渗透测试和修复意见「建议收藏」
Viewing MySQL password on Linux_ MySQL forgets password "suggestions collection" under Linux
Fatigue liée à l'examen du marché secondaire des médicaments innovants: succès clinique de la phase III et approbation du produit
When an interface has an exception, how do you analyze the exception?
jwt