rizin/test/db/cmd/cmd_basefind
Giovanni 3033f62865
Refactor logging. (#4446)
* Remove globals and refactor to complete implementation of logging.
* Renamed log.traplevel to log.abortlevel and hide it on release builds.
2024-04-19 13:02:58 +08:00

28 lines
570 B
Text

NAME=basefind via rizin
FILE=bins/firmware/stm32f103-dapboot-v1.20-bluepill.bin
CMDS=<<EOF
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