Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How do I customize data structures using IDA?

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Open IDA and take a look at the sample code (attack. Anti-World _ RE_ Advanced Zone _ sercet-galaxy-300):

It is obvious that A1 is a structure, so let's customize a structure and apply it to A1. First select the Structures tab

Here, the first four lines are the instructions for using the Structures tab, and the last three lines are the structures that come with IDA. The first four lines are translated as follows:

Insert/Delete key to create and delete structures

Add different types of structure members to the Dqqa _ A _ key

It should be noted here that the function of D key varies with the position of the cursor.

N key to rename a structure or a structure member

U key deletes structure member

We first press the Insert key to create a new structure called Stars

The first two check boxes are used to determine where the new structure is displayed in the structure window, or whether the new structure is displayed in the window. The third check box specifies to create a complex. Here, we click OK directly after we change the name, and an empty structure appears in the interface.

Then move the cursor over "ends" and press D to create a new structure member at the end of the line.

Then move the cursor to the member, press D key to change the data type of the member, the data types that can be changed are db (byte), dw (word), dd (dword), dq (qword), press A key can be set to a string, press * key can be set to an array, press N key to rename members, press U key to delete members, you can change member data types according to the needs of the topic.

Here we will configure a structure with one QWORD, two DWORD and three QWORD according to the requirements of the topic:

This is the end of defining the structure. The next step is to specify the variable as the structure. Let's go back to the inside of the function.

Right-click A1:

Select Convert to struct*

Then select the structure Stars that we just defined, and it's done.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report