rizin/test/db/cmd/cmd_ph
Giovanni 54fd6a66bc
Refactoring rz-hash, crypto and hashes interfaces (#1072)
* Refactoring rz-hash main, crypto interfaces and hashes
* ops. removed method that was removed later on
* fixed punycode oob read
* use RZ_ARRAY_SIZE instead of looking for null pointer
* Added broken flag on rz-hash -L test
2021-04-26 11:07:52 +02:00

18 lines
626 B
Text

NAME=ph file with offsets
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=<<EOF
e io.va=0
ph sha1 $s-32 @ 32
!rz-hash -a sha1 -f 32 -t 4899 bins/elf/analysis/x86-helloworld-gcc
ph sha1 $s @0
!rz-hash -a sha1 bins/elf/analysis/x86-helloworld-gcc
ph sha1 @s:fofofofo
EOF
EXPECT=<<EOF
1fa8a7fd5c661af321d09f5951b35684f209f815
bins/elf/analysis/x86-helloworld-gcc: 0x00000020-0x00001323 sha1: 1fa8a7fd5c661af321d09f5951b35684f209f815
e218202875386cf4a0cd3ce22490fcd48db91491
bins/elf/analysis/x86-helloworld-gcc: 0x00000000-0x00001323 sha1: e218202875386cf4a0cd3ce22490fcd48db91491
b9a2dc76a3571526786cf651570df206a93f63fa
EOF
RUN