首页
社区
课程
招聘
[求助]IDA怎么应用数据结构?
发表于: 2015-1-20 12:57 4545

[求助]IDA怎么应用数据结构?

2015-1-20 12:57
4545
#include "stdafx.h"
typedef struct _aaa
{
	int a;
	int b;
	int pc0000;
	int pc0001;
	int pc0002;
	int pc0003;
	int pc0004;
	int pc0005;
	int pc0006;
	int pc0007;
	int pc0008;
	int pc0009;
	int pc0010;

	int pc0388;
} aaa, *paaa;


aaa kk={0};
int _tmain(int argc, _TCHAR* argv[])
{
	int r=7;
kk.a=8;
kk.pc0006=9;//这种数据可以应用结构
	r=kk.a+kk.pc0006;

	aaa tt={0};

	tt.b=5;//这种EBP上的数据怎么应用结构?
	tt.pc0010=0x66;// mov     dword ptr [ebp-18h], 66h

	return ;
}



请前辈高人指点一下。
谢谢。

[招生]科锐逆向工程师培训(2025年3月11日实地,远程教学同时开班, 第52期)!

收藏
免费 0
支持
分享
最新回复 (4)
雪    币: 598
活跃值: (282)
能力值: ( LV13,RANK:330 )
在线值:
发帖
回帖
粉丝
2
打开structures窗口,可以定义结构体

代码窗口中右键,选structure offset
2015-1-20 14:22
0
雪    币: 138
活跃值: (461)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
找不到呀,哥
2015-1-20 19:15
0
雪    币: 16
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
shift+f9 打开structures 窗口

c08K9s2c8@1M7s2y4Q4x3@1q4Q4x3V1k6Q4x3V1k6%4N6%4N6Q4x3X3g2Z5k6i4S2Q4x3X3c8J5j5i4W2K6i4K6u0W2j5$3!0E0i4K6u0r3M7s2u0G2k6s2g2U0N6s2y4Q4x3V1k6A6k6r3q4Q4x3V1k6K6N6i4m8H3L8%4u0@1i4K6u0r3N6s2g2@1L8%4u0A6j5h3I4K6i4K6u0r3M7%4c8J5N6h3y4@1M7#2)9J5k6i4y4Z5N6r3#2D9

Defining structures

In order to use meaningful names instead of numbers, we open the structure window and press insert to define a new strcture type. Structure members are added with the D key for data and the A key for ASCII strings. As we add new structure members, IDA automatically names them. You can change any member's name by pressing N.

client_t        struc
code                db ?
id                dd ?
name                db 32 dup(?)
next                dw ?
client_t        ends
2015-1-23 09:00
0
雪    币: 200
活跃值: (38)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
5
打开stack variable (ctrl+k),然后去应用struct
2015-1-23 09:15
0
游客
登录 | 注册 方可回帖
返回