mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 13:49:50 +00:00
38 lines
683 B
Plaintext
38 lines
683 B
Plaintext
NAME=search count
|
|
FILE=../bins/elf/analysis/x86-helloworld-gcc
|
|
EXPECT=<<EOF
|
|
83618b8a
|
|
f hash.crc32.83618b8a = 0x804830a
|
|
EOF
|
|
CMDS=<<EOF
|
|
ph crc32 @ $$+10
|
|
/h crc32 83618b8a
|
|
EOF
|
|
RUN
|
|
|
|
NAME=cmd.hit for /h
|
|
FILE=malloc://1024
|
|
BROKEN=1
|
|
EXPECT=<<EOF
|
|
f hash.md5.348a9791dc41b89796ec3808b5b5262f = 0x0
|
|
00
|
|
EOF
|
|
CMDS=<<EOF
|
|
e cmd.hit = p8 1
|
|
e search.in =raw
|
|
/h md5 348a9791dc41b89796ec3808b5b5262f
|
|
EOF
|
|
RUN
|
|
|
|
NAME=cmd.hit for /h sha256
|
|
FILE=../bins/firmware/main.bin
|
|
EXPECT=<<EOF
|
|
f hash.sha256.83264abaf298b9238ca63cb2fd9ff0f41a7a1520ee2a17c56df459fc806de1d6 = 0x64
|
|
EOF
|
|
CMDS=<<EOF
|
|
e cmd.hit = p8 1
|
|
e search.in =raw
|
|
/h sha256 83264abaf298b9238ca63cb2fd9ff0f41a7a1520ee2a17c56df459fc806de1d6 512
|
|
EOF
|
|
RUN
|