* Changed behavior of `f` to only add flag if there is none * Changed behavior of `f+` to add flag in any case * Moved listing subcommands from `f` to `fl` * Moved listing subcommands from `f.` to `f.l` * Added subcommand `f.l*` to list all local flags in all functions * Listing flags at the current offset became `fl.` * Moved `f=` to `fl=` * Old `fl` (flag length) now became `fL` * Removed original `fe` commands * Old `f?` (check if flag exists) now became `fe` * Removed `fV` commands * Removed `fn` commands in favor of `fl` and `asm.flags.real=true` * Removed `fS` commands (`fSo` and `fSn`) * `fo` became `fortune` and moved from "flags" to "shell" category * Removed oldshell handlers of the `z` commands
37 lines
676 B
Text
37 lines
676 B
Text
NAME=search count
|
|
FILE=bins/elf/analysis/x86-helloworld-gcc
|
|
CMDS=<<EOF
|
|
ph crc32 @ $$+10
|
|
/h crc32 83618b8a
|
|
EOF
|
|
EXPECT=<<EOF
|
|
83618b8a
|
|
f hash.crc32.83618b8a @ 0x804830a
|
|
EOF
|
|
RUN
|
|
|
|
NAME=cmd.hit for /h
|
|
FILE=malloc://1024
|
|
BROKEN=1
|
|
CMDS=<<EOF
|
|
e cmd.hit = p8 1
|
|
e search.in =raw
|
|
/h md5 348a9791dc41b89796ec3808b5b5262f
|
|
EOF
|
|
EXPECT=<<EOF
|
|
f hash.md5.348a9791dc41b89796ec3808b5b5262f @ 0x0
|
|
00
|
|
EOF
|
|
RUN
|
|
|
|
NAME=cmd.hit for /h sha256
|
|
FILE=bins/firmware/main.bin
|
|
CMDS=<<EOF
|
|
e cmd.hit="p8 1"
|
|
e search.in=raw
|
|
/h sha256 83264abaf298b9238ca63cb2fd9ff0f41a7a1520ee2a17c56df459fc806de1d6 512
|
|
EOF
|
|
EXPECT=<<EOF
|
|
f hash.sha256.83264abaf298b9238ca63cb2fd9ff0f41a7a1520ee2a17c56df459fc806de1d6 @ 0x64
|
|
EOF
|
|
RUN
|