rizin/test/db/cmd/cmd_basefind
Giovanni 7f55442dc2
Fix endianness issues on s390x (#5940)
* Refactor of bflt to guess arch & fix m68k code
* Fix endianness issues
* Always cleanup at the end on travis ci
2026-02-19 23:13:18 +08:00

29 lines
585 B
Text

NAME=basefind via rizin
FILE=bins/firmware/stm32f103-dapboot-v1.20-bluepill.bin
CMDS=<<EOF
e asm.arch=x86
e basefind.max.threads=1
e basefind.search.start=0x06000000
e basefind.search.end=0x10000000
e log.level=2
Bj
Bq
B
EOF
EXPECT=<<EOF
[{"score":4,"candidate":134217728}]
4 0x8000000
score candidate
-----------------
4 0x08000000
EOF
EXPECT_ERR=<<EOF
INFO: basefind: located 6 strings
INFO: basefind: located 1459 pointers
INFO: basefind: located 6 strings
INFO: basefind: located 1459 pointers
INFO: basefind: located 6 strings
INFO: basefind: located 1459 pointers
EOF
RUN