SIG applications in IDA

Source: Internet
Author: User

SIG is equivalent to a symbolic file in Ida. If it is a self-written pe program, there will be an OBJ file after compilation. You can use the tool to convert it into a Sig for viewing in Ida. To apply the Sig, copy the SIG file to the SIG folder under the IDA directory, and then right-click SHIFT + F5 in IDA to add the corresponding project, the function name in the disassembly will be changed to the original function name, which facilitates viewing. If it is a third-party Lib, you can also convert a Sig. The tools required for conversion include pcf.exe link.exe sigmake.exe, which can be obtained from the book-related files in C ++ disassembly and reverse analysis. three files can be copied to system32 for ease of use.

1. Convert OBJ to sig

PCF test. objsigmake test. Pat test. Sig get the Pat file Step 1 generate the SIG File

2. Convert lib to sig

Because there are a lot of OBJ in Lib, we use batch text to write it here. The following code is obtained from "C ++ disassembly and Reverse Analysis ":

md %1_objscd %1_objsfor /F %%i in ('link -lib /list %1.lib') do link -lib /extract:%%i %1.libfor %%i in (*.obj) do pcf %%isigmake -n"%1.lib" *.pat %1.sigif exist %1.exc for %%i in (%1.exc) do find /v ";" %%i > abc.exc if exist %1.exc for %%i in (%1.exc) do > abc.exc more +2 "%%i"copy abc.exc %1.excdel abc.excsigmake -n"%1.lib" *.pat %1.sigcopy %1.sig ..\%1.sigcd ..del %1_objs /s /qrd %1_objs

Save it as a. BAT file and run it.

Summary:

To create a signature, follow these steps:

1. Obtain a static library for which you want to create a signature file.

2. Use a flair parser to create a mode file for the database.

3.run sigmake.exe to process the generated mode file and generate a signature file.

4. Copy the new signature file to the <idadir>/sig directory and install the file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.