Skip to content
/ ida2sig Public
generated from 8dcc/c-template

Convert IDA signature to code signature and vice versa

License

Notifications You must be signed in to change notification settings

8dcc/ida2sig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ida2sig

Convert IDA signature to code signature and vice versa.

Description

Simple C program for converting an IDA pattern (89 04 24 FF 92 ? ? ? ? 89 34 24) into a code pattern (\x89\x04\x24\xFF\x92????\x89\x34\x24) or vice versa.

The code patterns are meant to be used with a signature scanning library such as 8dcc/libsigscan. See also my Signature scanning in C blog entry.

Building and installing

$ git clone https://github.com/8dcc/ida2sig
$ cd ida2sig
$ make
...

$ sudo make install
...

Usage

$ ./ida2sig "89 04 24 FF 92 ? ? ? ? 89 34 24"
"\x89\x04\x24\xFF\x92????\x89\x34\x24"

$ ./ida2sig -m "89 04 24 FF 92 ? ? ? ? 89 34 24"  # Use mask
code = "\x89\x04\x24\xFF\x92\x00\x00\x00\x00\x89\x34\x24"
mask = "xxxxx????xxx"

$ ./sig2ida "\x89\x04\x24\xFF\x92????\x89\x34\x24"
"89 04 24 FF 92 ? ? ? ? 89 34 24"

About

Convert IDA signature to code signature and vice versa

Topics

Resources

License

Stars

Watchers

Forks