41 lines
918 B
Text
41 lines
918 B
Text
NAME=Print SigDB contents
|
|
FILE==
|
|
CMDS=<<EOF
|
|
e flirt.sigdb.path=bins/sigdb/fake-db
|
|
aaFl
|
|
EOF
|
|
EXPECT=<<EOF
|
|
bin arch bits name modules details
|
|
---------------------------------------------------------------
|
|
elf x86 64 match.sig 1 Built with rizin 0.4.0-git
|
|
elf x86 64 not-match.pat 1
|
|
EOF
|
|
RUN
|
|
|
|
NAME=Do analysis and apply SigDB automatically
|
|
FILE=bins/sigdb/elf-x86-64-static-libc
|
|
CMDS=<<EOF
|
|
e flirt.sigdb.path=bins/sigdb/fake-db
|
|
aaa
|
|
afl~printf
|
|
EOF
|
|
EXPECT=<<EOF
|
|
0x00409c70 18 516 -> 514 flirt.printf
|
|
0x0046fc50 7 516 -> 342 flirt.printf_1
|
|
EOF
|
|
RUN
|
|
|
|
NAME=Do analysis and apply SigDB manually
|
|
FILE=bins/sigdb/elf-x86-64-static-libc
|
|
CMDS=<<EOF
|
|
aaa
|
|
e flirt.sigdb.path=bins/sigdb/fake-db
|
|
aaF match.sig
|
|
afl~printf
|
|
EOF
|
|
EXPECT=<<EOF
|
|
Applying elf/x86/64/match.sig signature file
|
|
0x00409c70 18 516 -> 514 flirt.printf
|
|
0x0046fc50 7 516 -> 342 flirt.printf_1
|
|
EOF
|
|
RUN
|