chirayudesai / SigScan

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SigScan

SigScan is a really basic signature scanner that takes file path and IDA style code pattern and outputs offsets for each match.

Usage

$ ./SigScan -h
  -h [ --help ]         print usage message
  -f [ --file ] arg     path to file
  -p [ --pattern ] arg  IDA style code pattern
  -P [ --patch ] arg    patch matches in place with given bytes
  -m [ --max ] arg      maximum number of matches

Examples

$ ./SigScan -f client_client.so -p "81 27 ?? ?? ?? FF 55 31 C0"
0x1270640
$ ./SigScan -f client_client.so -p "F6 05 ?? ?? ?? ?? ?? 74" -m 3
0xA65DD9
0xA6A3CC
0xA7385B
$ printf '\x12\x21\x37\x13\x37' > file
$ ./SigScan -f file -p "21 ?? 13" -P "00 00 00"
0x1
$ hexdump -C file
00000000  12 00 00 00 37                                    |....7|
00000005

About

License:Apache License 2.0


Languages

Language:C++ 96.7%Language:CMake 3.3%