ida创建结构体
ida快照
ctrl + shift + w : 唤起创建ida快照窗口
ctrl + shift + t : 唤起ida历史快照窗口
0x01 在结构体(structures)窗口中定义(shift + F9)
View -> Open Subview -> Structures(shift+ F9) 进入结构体窗口
按insert新建结构体(delete键删除)
在结构体的ends行,按d
键可以新建成员
在成员行,按d
键可以切换数据类型(db
(1字节)、dw
(2字节)、dd
(4字节))
(还可右键更多选择
在names(函数、变量)等窗口(shift + F4)查找:ctrl + F
segment窗口(shift + F7)
切换导航栏窗口
ctrl (+ shift) + tab
回到上一个窗口
shift + F6
撤销上一步操作:ctrl + Z
ctrl + _
反撤销:ctrl + Y
ctrl + shift + Z
0x02 将结构体应用到变量
右键变量 convert to struct*
可将变量(相同位宽)定义为指向该结构体的指针
ida创建结构体
http://example.com/2025/03/27/ida创建结构体/