当前位置:网站首页>Introduction to reverse debugging PE structure input table output table 05/07
Introduction to reverse debugging PE structure input table output table 05/07
2022-07-01 12:52:00 【51CTO】
Input table
Input function , Indicates that it is called by a program, but its code is not in the program code , And in the dll The function in . For these functions , The executable file on the disk just keeps the relevant function information , Such as function name ,dll File name, etc. . Before the program runs , The program does not save the address of these functions in memory . When the program runs ,windows The loader will put the relevant dll Load memory , And connect the instruction of the input function with the address of the function in memory . Input table ( The import table ) It is used to save the information of these functions .
Structure
typedef struct _IMAGE_IMPORT_DESCRIPTOR {
_ANONYMOUS_UNION union { //00h
DWORD Characteristics;
DWORD OriginalFirstThunk;
} DUMMYUNIONNAME;
DWORD TimeDateStamp; //04h
DWORD ForwarderChain; //08h
DWORD Name; //0Ch
DWORD FirstThunk; //10h
} IMAGE_IMPORT_DESCRIPTOR,*PIMAGE_IMPORT_DESCRIPTOR;
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.

The functions of the two structures are the same , All for the convenience of finding DLL Function of .

IMT Is the location of the file on the disk
IAT Is the location pointed to by the file after it is loaded into memory
We use Stud_PE To view the

Program hello Its function is to pop up a dialog box
Therefore, we judge that MessagesBox

Use this tool to open a copy of the program

In the head of the file , You can view the information of the input table

We turn on “ stay 16 View file header tree in hexadecimal editor ”

Let's check the directory of data

You can see the location of the input table in the file
There are two arrays , Two functions , the reason being that 8 Bytes

stay 282acH in
Let's use OD Conduct case analysis

We are going to have a hello file

The function of this program is to pop up a dialog box .

We use OD Software debugging program

stay call Problem found in function

Found out MessageBoxA
F7 Get into

Found at the highland site messageBoxtimeoutA

Then we can know , The previous paragraph is all about this function .
Export table

The structure of the exported table is relatively simple .
边栏推荐
- How to play with the reading and writing operations of blocking sockets?
- 哪个券商公司开户佣金低又安全又可靠
- QT 播放器之列表[通俗易懂]
- Zabbix 6.0 源码安装以及 HA 配置
- [today in history] July 1: the father of time sharing system was born; Alipay launched barcode payment; The first TV advertisement in the world
- Nc100 converts strings to integers (ATOI)
- 有没有大佬 遇到过flink监控postgresql数据库, 检查点无法使用的问题
- Operations related to sequence table
- Project deployment is not difficult at all!
- be based on. NETCORE development blog project starblog - (13) add friendship link function
猜你喜欢

用.Net Core接入微信公众号开发

我花上万学带货:3天赚3元,成交靠刷单

晓看天色暮看云,美图欣赏
![leetcode:241. Design priority for operation expression [DFS + Eval]](/img/d0/8dedeba7ecedccd25e0e3e96ff3362.png)
leetcode:241. Design priority for operation expression [DFS + Eval]

Feign & Eureka & Zuul & Hystrix 流程

VM virtual machine configuration dynamic IP and static IP access

【历史上的今天】7 月 1 日:分时系统之父诞生;支付宝推出条码支付;世界上第一支电视广告

VS Code 设置代码自动保存

Fiori 应用通过 Adaptation Project 的增强方式分享

mysql统计账单信息(下):数据导入及查询
随机推荐
华为HMS Core携手超图为三维GIS注入新动能
晓看天色暮看云,美图欣赏
使用nvm管理nodejs(把高版本降级为低版本)
快速整明白Redis中的压缩列表到底是个啥
Blocking sockets的读写操作该怎么玩?
Function test process in software testing
数字信号处理——线性相位型(Ⅱ、Ⅳ型)FIR滤波器设计(2)
GID: open vision proposes a comprehensive detection model knowledge distillation | CVPR 2021
R language builds a binary classification model based on H2O package: using H2O GBM build gradient hoist model GBM, use H2O AUC value of AUC calculation model
Simple Fibonacci (recursive)
When Sqlalchemy deletes records with foreign key constraints, the foreign key constraints do not work. What is the solution?
leetcode:241. Design priority for operation expression [DFS + Eval]
How to play with the reading and writing operations of blocking sockets?
There are risks in trading
Localtime can't re-enter. It's a pit
The future of game guild in decentralized games
买卖其实也有风险
Function test process in software testing
基因检测,如何帮助患者对抗疾病?
Report on the "14th five year plan" and investment strategy recommendations for China's industrial robot industry 2022 ~ 2028