#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 ;
}
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