Fix tests

This commit is contained in:
Anton Kochkov 2021-01-05 18:41:00 +08:00 committed by Anton Kochkov
parent 15c8ce093f
commit ad6a580a1c
64 changed files with 446 additions and 446 deletions

View file

@ -75,7 +75,7 @@ You are probably using an old version of rizin, go checkout the git!
Run your own rizin scripts in awk using the rizinawk program.
Use '-e bin.strings=false' to disable automatic string search when loading the binary.
The unix-like reverse engineering framework.
This code was intentionally left blank, try 'e asm.arch = ws'
This code was intentionally left blank, try 'e asm.arch=ws'
Thanks for using rizin!
give | and > a try piping and redirection
Run .dmm* to load the flags of the symbols of all modules loaded in the debugger

View file

@ -676,7 +676,7 @@ RZ_IPI RzCmdStatus rz_eval_getset_handler(RzCore *core, int argc, const char **a
int i;
for (i = 1; i < argc; i++) {
RzList *l = rz_str_split_duplist_n (argv[i], "=", 2, false);
RzList *l = rz_str_split_duplist_n (argv[i], "=", 1, false);
if (!l) {
return RZ_CMD_STATUS_ERROR;
}

View file

@ -73,7 +73,7 @@ RUN
NAME=thumb ldr+add pc-rel analysis
FILE=malloc://32
CMDS=<<EOF
e asm.bytes = true
e asm.bytes=true
e asm.arch=arm
e asm.bits=16
e asm.emu=1
@ -93,7 +93,7 @@ RUN
NAME=thumb adr pc-rel analysis
FILE=malloc://32
CMDS=<<EOF
e asm.bytes = true
e asm.bytes=true
e asm.arch=arm
e asm.bits=16
wx 10b5 01a0 00bf 00bf 52616461726532207465737420737472696e6700
@ -109,7 +109,7 @@ NAME=pd bits override for arm
FILE=malloc://32
CMDS=<<EOF
e asm.arch=arm
e asm.bytes = true
e asm.bytes=true
e asm.bits=32
wa mov r0, r0
pi 1
@ -140,7 +140,7 @@ RUN
NAME=thumb adr pc-rel analysis with newline
FILE=malloc://32
CMDS=<<EOF
e asm.bytes = true
e asm.bytes=true
e asm.arch=arm
e asm.bits=16
wx 10b5 01a0 00bf 00bf 5261646172653220746573740d0a00
@ -269,7 +269,7 @@ RUN
NAME=arm32 bxeq lr
FILE=malloc://512
CMDS=<<EOF
e asm.bytes = true
e asm.bytes=true
e asm.calls=false
e asm.arch=arm
e asm.bits=32
@ -323,7 +323,7 @@ NAME=ELF ARM: thumb/arm switch
FILE=bins/elf/analysis/libstagefright_soft_g711dec.so
CMDS=<<EOF
af
e asm.bytes = true
e asm.bytes=true
afi~size
afi~size
EOF
@ -943,7 +943,7 @@ NAME=arm aae with bit switch
FILE=bins/arm/elf/hello_world
CMDS=<<EOF
aei
e asm.bytes = true
e asm.bytes=true
e asm.bits=32
aae 20 @ main
pd 9 @ main

View file

@ -475,7 +475,7 @@ NAME=disasm code after search command IN
FILE=bins/firmware/arduino_avr.bin
ARGS=-a avr
CMDS=<<EOF
e asm.bytes = true
e asm.bytes=true
s 0
/ad in ~ 0x18
pd 5
@ -566,7 +566,7 @@ NAME=detect false xrefs
FILE=bins/firmware/arduino_avr.bin
CMDS=<<EOF
e asm.arch=avr
e asm.bytes = true
e asm.bytes=true
e asm.lines=false
aar
pd 4 @ 4

View file

@ -153,7 +153,7 @@ FILE=malloc://32
ARGS=-a mips -m 0x80100000
CMDS=<<EOF
e io.va=true
e asm.bytes = true
e asm.bytes=true
wx 0000beaf
pd 1
e asm.pseudo=true
@ -298,7 +298,7 @@ FILE=malloc://20
CMDS=<<EOF
e asm.calls=false
e asm.bits=32
e asm.bytes = true
e asm.bytes=true
e asm.arch=mips
e asm.nbytes=4
e asm.lines.fcn=false
@ -320,7 +320,7 @@ CMDS=<<EOF
e io.va=true
e asm.calls=false
e asm.bits=32
e asm.bytes = true
e asm.bytes=true
e asm.arch=mips
e analysis.jmp.eob=false
e asm.comments=false
@ -351,7 +351,7 @@ ARGS=-m 0x80100000
CMDS=<<EOF
e io.va=true
e asm.calls=false
e asm.bytes = true
e asm.bytes=true
e asm.bits=32
e asm.arch=mips
e asm.comments=false
@ -387,7 +387,7 @@ e asm.calls=false
e asm.arch=mips
e asm.bits=32
e asm.comments=false
e asm.bytes = true
e asm.bytes=true
e analysis.jmp.eob=false
e analysis.nopskip=false
e asm.nbytes=4
@ -415,7 +415,7 @@ FILE=malloc://56
ARGS=-m 0x80100000
CMDS=<<EOF
e io.va=true
e asm.bytes = true
e asm.bytes=true
e asm.calls=false
e asm.arch=mips
e asm.bits=32
@ -587,7 +587,7 @@ CMDS=<<EOF
e io.va=true
e asm.calls=false
e asm.bits=32
e asm.bytes = true
e asm.bytes=true
e asm.arch=mips
e analysis.noncode=1
e asm.comments=0
@ -657,7 +657,7 @@ ARGS=-m 0x8060b4f8
CMDS=<<EOF
e io.va=true
e asm.calls=false
e asm.bytes = true
e asm.bytes=true
e asm.bits=32
e asm.arch=mips
e analysis.noncode=1
@ -726,7 +726,7 @@ NAME=mips big endian strings, calls, etc. analysis
FILE=bins/elf/analysis/mipsbe-ip
CMDS=<<EOF
s 0x00402088
e asm.bytes = true
e asm.bytes=true
pd 10
EOF
EXPECT=<<EOF

View file

@ -414,7 +414,7 @@ NAME=ppc-elf
FILE=bins/elf/analysis/elf-ppc-execstack
CMDS=<<EOF
e asm.flags=false
e asm.bytes = true
e asm.bytes=true
pid 4
EOF
EXPECT=<<EOF
@ -430,7 +430,7 @@ FILE=bins/elf/analysis/elf-ppc-execstack
CMDS=<<EOF
?e
e asm.flags=true
e asm.bytes = true
e asm.bytes=true
pid 1
af
afi~name[1]

View file

@ -50,7 +50,7 @@ FILE=bins/elf/analysis/guess-number-riscv64
CMDS=<<EOF
e asm.bytes=true
s 0x00010178
e asm.pseudo = 1
e asm.pseudo=1
pd 5
EOF
EXPECT=<<EOF

View file

@ -67,7 +67,7 @@ RUN
NAME=afb sparc
FILE=bins/elf/elf-Linux-SparcV8-bash
CMDS=<<EOF
e asm.bytes = true
e asm.bytes=true
s sym.zwrite
af
afb

View file

@ -2,7 +2,7 @@ NAME=thumb tbb jmptbl
FILE=malloc://512
CMDS=<<EOF
e asm.arch=arm
e asm.bytes = true
e asm.bytes=true
e asm.bits=16
e asm.flags.inbytes=true
wx 10b50078114c06281ed2dfe800f01d1d030e1d150e480078002815d00d48a1690222bde81040fcf74dba0020e2f7aefb03220948a169f4e70020e2f7a7fbbde810400020fff7c2bf10bd0000bc0b0010a1010020c9e00508cdf8050870b5002500b10578e6f766f9691c884200d2002500211148eef72cf8e6f75cf90f4c98b165700120f7f718f961780170a0611820f7f712f9206105466178e2f7edfe2846bde87040eaf742bd002020700d206070bde87040f1f76cb9841c0708bc0b001008b506208df80000012269460148fcf7f9f908bd412a0608feb50446e6f72af910b1e6f727f9401e254a0623c0b251788df804102578062d0bd2dfe805f00a03

View file

@ -119,7 +119,7 @@ NAME= Instruction descriptions for TriCore
FILE=bins/tricore/return_0.elf
CMDS=<<EOF
e asm.bytes=true
e asm.describe = 1
e asm.describe=1
s 0x80000004
pd 30
EOF

View file

@ -178,7 +178,7 @@ ARGS=-a x86 -b 64
CMDS=<<EOF
e asm.flags=false
e asm.bytes=true
e analysis.vars.stackname = true
e analysis.vars.stackname=true
e analysis.cc=ms
wx 488bc448895808488970104889781841574881ecb00000008364242000488d48884c8d9c24b0000000498b5b10498b7318498b7b20498be3415fc3
af
@ -237,7 +237,7 @@ CMDS=<<EOF
e asm.bytes=true
e asm.flags=false
e asm.comments=false
e analysis.vars.stackname = true
e analysis.vars.stackname=true
wx 80b483b000af78600b467b8013467b707b78002b03d07a887b689a6103e07b881a047b689a6100bf0c37bd465df8047b7047
af
aaef

View file

@ -1,8 +1,8 @@
NAME=arj x86 16 bits
FILE=malloc://0x100
CMDS=<<EOF
e asm.arch = x86
e analysis.arch = x86
e asm.arch=x86
e analysis.arch=x86
e asm.bits=16
arj
EOF

View file

@ -90,7 +90,7 @@ RUN
NAME=aaa with maxbbsz
FILE=bins/pe/flare_notepad.ex
CMDS=<<EOF
e analysis.bb.maxsize = 2048
e analysis.bb.maxsize=2048
aaa
pdf~ret?
EOF
@ -2793,8 +2793,8 @@ RUN
NAME=arj x86 32 bits
FILE=malloc://0x100
CMDS=<<EOF
e asm.arch = x86
e analysis.arch = x86
e asm.arch=x86
e analysis.arch=x86
e asm.bits=32
arj
EOF
@ -3250,8 +3250,8 @@ FILE=malloc://1024
CMDS=<<EOF
e asm.bytes=true
e asm.bits=32
e asm.arch = x86
e analysis.arch = x86
e asm.arch=x86
e analysis.arch=x86
e analysis.vars.stackname=true
e asm.calls=false
wx 83ec108b44241899f77c241c8b44241401d08944240c8b44242099f77c24288b44240c01d0894424088b5424148b44240c8d0c028b44242c99f7f98b44240801d0894424048b54240c8b44240801c28b44240401d083c410c38d4c240483e4f0ff71fc5589e55183ec046a076a066a056a046a036a026a01e883ffffff83c41c83ec08506844850408e847feffff83c410b8000000008b4dfcc98d61fcc36690669066909055575653e887feffff81c3371b000083ec0c8b6c24208db30cffffffe8d3fdffff8d8308ffffff29c6c1fe0285f6742531ff8db60000000083ec04ff74242cff74242c55ff94bb08ffffff83c70183c41039f775e383c40c5b5e5f

View file

@ -973,8 +973,8 @@ NAME=ahe
FILE=malloc://512
CMDS=<<EOF
e asm.bits=64
e asm.arch = x86
e analysis.arch = x86
e asm.arch=x86
e analysis.arch=x86
ao~?
ahe test
ao~esil
@ -1306,9 +1306,9 @@ NAME=auto string memory reference (iopa)
FILE=malloc://8096
CMDS=<<EOF
e asm.sub.rel=false
e asm.arch = x86
e asm.arch=x86
e asm.bits=64
e scr.color = false
e scr.color=false
e io.va=0
e asm.lines.bb=0
e asm.bytes=0
@ -1328,9 +1328,9 @@ NAME=auto string memory reference (io.va)
FILE=malloc://8096
CMDS=<<EOF
e asm.sub.rel=false
e asm.arch = x86
e asm.arch=x86
e asm.bits=64
e scr.color = false
e scr.color=false
e io.va=1
e asm.lines.bb=0
e asm.bytes=0
@ -1756,8 +1756,8 @@ FILE=-
CMDS=<<EOF
e asm.bytes=true
e asm.bits=64
e asm.arch = x86
e analysis.arch = x86
e asm.arch=x86
e analysis.arch=x86
e asm.calls=false
wx 554889e5534881ec3810000048830c24004881c42010000064488b042528000000488945e831c04885ff4889fb909090909090c3 @ 10
aa
@ -1984,10 +1984,10 @@ RUN
NAME=axt capstone x86
FILE=bins/elf/analysis/main
CMDS=<<EOF
e asm.arch = x86
e analysis.arch = x86
e asm.arch=x86
e analysis.arch=x86
e scr.color=false
e scr.wheel = false
e scr.wheel=false
aa
axt @ str.Hello_World
EOF
@ -1999,10 +1999,10 @@ RUN
NAME=axt capstone x86: IOLI0
FILE=bins/elf/ioli/crackme0x00
CMDS=<<EOF
e asm.arch = x86
e analysis.arch = x86
e asm.arch=x86
e analysis.arch=x86
e scr.color=false
e scr.wheel = false
e scr.wheel=false
aa
axt @ str.Password:
EOF
@ -2106,10 +2106,10 @@ RUN
NAME=axf string ref capstone x86
FILE=bins/elf/ioli/crackme0x03
CMDS=<<EOF
e asm.arch = x86
e analysis.arch = x86
e scr.color = false
e scr.wheel = false
e asm.arch=x86
e analysis.arch=x86
e scr.color=false
e scr.wheel=false
aa
axt str.Sdvvzrug_RN
s str.Sdvvzrug_RN
@ -2408,7 +2408,7 @@ FILE=malloc://10000
CMDS=<<EOF
e asm.arch=8051
e asm.lines.bb=false
e asm.bytes = true
e asm.bytes=true
e asm.lines.fcn=false
wx 307401000022
aa
@ -3339,7 +3339,7 @@ CMDS=<<EOF
e asm.bytes=true
s main
af
e asm.lines = false
e asm.lines=false
pdf~case
EOF
EXPECT=<<EOF
@ -3555,7 +3555,7 @@ RUN
NAME=x86_64 retpoline disabled jmptbl
FILE=bins/elf/retpoline
CMDS=<<EOF
e analysis.jmp.retpoline = false
e analysis.jmp.retpoline=false
s 0x780
af
pdr~- case[2]

View file

@ -1,7 +1,7 @@
NAME=z80: Basic search for functions
FILE=malloc://1024
CMDS=<<EOF
e asm.arch = z80
e asm.arch=z80
wx 01210000010000CFC30D0002033CCD1500C904050600C8ED400030FDC90708
af @ 1
afl

View file

@ -5,7 +5,7 @@ CMDS=<<EOF
db 0x004011fa
dc
dmht~?0xffffffffffff
e dbg.glibc.demangle = true
e dbg.glibc.demangle=true
dmht~?0xffffffffffff
dmht~?items : 7
dc

View file

@ -105,7 +105,7 @@ CMDS=<<EOF
wb E003D004E42230081045254C1062228CF0623008F4627008104322CE10C7460E10A03A1010A03A111022182A1022182B11822040118220C011822000118220801044302410443025100118BA100118BB102220DC102220DD102220DE102220DF10443420104434211044346010443461104434A0104434A1104434E0104434E11060289010602891104441B8104441B91043017210430173106401D8106401D9106401DA106401DB102029101020291110202850102028511023397E1023397F1023397C1023397D11201830112018311120183411201835102220EE102220EF10AB102810AB10291045525410455255104552561045525710032FECF3E10028
e asm.arch=ppc
e asm.bytes=true
e cfg.bigendian = true
e cfg.bigendian=true
e asm.cpu=ps
pdi 64
EOF

View file

@ -21,8 +21,8 @@ NAME=t/basic
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=<<EOF
b 0x100
e search.from = 0x08048301
e search.to = 0x8048390
e search.from=0x08048301
e search.to=0x8048390
/x b4960408ffd0c9c3
EOF
EXPECT=<<EOF
@ -34,8 +34,8 @@ NAME=t/basic
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=<<EOF
b 100
e search.from = 0x08048301
e search.to = 0x8048390
e search.from=0x08048301
e search.to=0x8048390
/x b4960408ffd0c9c3
EOF
EXPECT=<<EOF

View file

@ -25,7 +25,7 @@ NAME=bug 3788 #3: cmd.hit
FILE=bins/vsf/c64-rambo2-norom.vsf
CMDS=<<EOF
s 0
e cmd.hit = px 16
e cmd.hit="px 16"
/x ac6c6c68
EOF
EXPECT=<<EOF

View file

@ -1,10 +1,10 @@
NAME=aek-
FILE=-
CMDS=<<EOF
e asm.arch = x86
e asm.bits = 64
e analysis.arch = x86
e esil.stats = true
e asm.arch=x86
e asm.bits=64
e analysis.arch=x86
e esil.stats=true
wx 41574156415541544989f4555389fd4881eca8030000488b3e64488b042528
aei
aeim

View file

@ -1,9 +1,9 @@
NAME=afcl: x86-64
FILE=--
CMDS=<<EOF
e asm.bits = 32
e asm.arch = x86
e asm.bits = 64
e asm.bits=32
e asm.arch=x86
e asm.bits=64
afcl
EOF
EXPECT=<<EOF
@ -30,9 +30,9 @@ NAME=afcl: x86-32
FILE=--
BROKEN=1
CMDS=<<EOF
e asm.bits = 64
e asm.arch = x86
e asm.bits = 32
e asm.bits=64
e asm.arch=x86
e asm.bits=32
afcl
EOF
EXPECT=<<EOF
@ -66,9 +66,9 @@ RUN
NAME=afcl: arm-64
FILE=--
CMDS=<<EOF
e asm.bits = 32
e asm.arch = arm
e asm.bits = 64
e asm.bits=32
e asm.arch=arm
e asm.bits=64
afcl
EOF
EXPECT=<<EOF
@ -92,9 +92,9 @@ NAME=afcl: arm-32
FILE=--
BROKEN=1
CMDS=<<EOF
e asm.bits = 64
e asm.arch = arm
e asm.bits = 32
e asm.bits=64
e asm.arch=arm
e asm.bits=32
afcl
EOF
EXPECT=<<EOF
@ -116,9 +116,9 @@ NAME=afcl: arm-16
FILE=--
BROKEN=1
CMDS=<<EOF
e asm.bits = 64
e asm.arch = arm
e asm.bits = 16
e asm.bits=64
e asm.arch=arm
e asm.bits=16
afcl
EOF
EXPECT=<<EOF
@ -139,9 +139,9 @@ RUN
NAME=afcl: mips-32
FILE=--
CMDS=<<EOF
e asm.bits = 64
e asm.arch = mips
e asm.bits = 32
e asm.bits=64
e asm.arch=mips
e asm.bits=32
afcl
EOF
EXPECT=<<EOF

View file

@ -1,7 +1,7 @@
NAME=afn normal function
FILE=-
CMDS=<<EOF
e asm.arch = avr
e asm.arch=avr
wa ret
af
afn foobar
@ -15,7 +15,7 @@ RUN
NAME=afn interrupt handler
FILE=-
CMDS=<<EOF
e asm.arch = avr
e asm.arch=avr
wa reti
af
afn foobar

View file

@ -43,7 +43,7 @@ NAME=axjstrencoding
FILE=bins/elf/analysis/hello-utf-16
CMDS=<<EOF
aa
e cfg.json.str = base64
e cfg.json.str=base64
s sym.imp.wprintf
axj~{[1].name}
EOF
@ -56,7 +56,7 @@ NAME=axjnumencoding
FILE=bins/elf/analysis/hello-utf-16
CMDS=<<EOF
aa
e cfg.json.num = hex
e cfg.json.num=hex
s sym.imp.wprintf
axj~{[0].addr}
EOF

View file

@ -1,7 +1,7 @@
NAME=pD@x:90
FILE=-
CMDS=<<EOF
e asm.arch = x86
e asm.arch=x86
e asm.bits= 32
e asm.bytes=true
pD@x:90
@ -14,7 +14,7 @@ RUN
NAME=pd@x:90
FILE=-
CMDS=<<EOF
e asm.arch = x86
e asm.arch=x86
e asm.bits= 32
e asm.bytes=true
pd@x:90
@ -27,9 +27,9 @@ RUN
NAME=pd@x:90909090
FILE=-
CMDS=<<EOF
e asm.bytes = true
e asm.arch = x86
e asm.bits = 32
e asm.bytes=true
e asm.arch=x86
e asm.bits=32
pd@x:90909090
EOF
EXPECT=<<EOF
@ -43,8 +43,8 @@ RUN
NAME=pd@x:909090
FILE=-
CMDS=<<EOF
e asm.bytes = true
e asm.arch = x86
e asm.bytes=true
e asm.arch=x86
e asm.bits= 32
pd@x:909090
EOF

View file

@ -95,7 +95,7 @@ RUN
NAME=multiple assignments with quotes
CMDS=<<EOF
e cmd.prompt = scr.highlight = "e cmd.prompt = "e scr.highlight = cmd.prompt ="e scr.rainbow = true """
e cmd.prompt='scr.highlight = "e cmd.prompt = "e scr.highlight = cmd.prompt ="e scr.rainbow = true """'
e cmd.prompt
e scr.highlight
EOF

View file

@ -1,7 +1,7 @@
NAME=AFL - crash #2
FILE=-
CMDS=<<EOF
e scr.null =true
e scr.null=true
ibbbbbbbk
EOF
EXPECT=<<EOF
@ -21,7 +21,7 @@ RUN
NAME=AFL - crash #4
FILE=-
CMDS=<<EOF
e scr.null =true
e scr.null=true
*455%R*:**************
EOF
EXPECT=<<EOF

View file

@ -246,7 +246,7 @@ NAME=graph title
FILE=-
CMDS=<<EOF
agn title1 body1
e graph.title=This is the graph title
e graph.title="This is the graph title"
agg
EOF
EXPECT=<<EOF

View file

@ -2795,7 +2795,7 @@ RUN
NAME=section comment
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=<<EOF
e asm.bytes = false
e asm.bytes=false
pd 1 @ 0x080495a8
EOF
EXPECT=<<EOF
@ -4578,7 +4578,7 @@ RUN
NAME=izjencoding
FILE=bins/elf/analysis/hello-utf-16
CMDS=<<EOF
e cfg.json.str = base64
e cfg.json.str=base64
izj~{[0].section}
EOF
EXPECT=<<EOF
@ -4589,7 +4589,7 @@ RUN
NAME=izjencodinghex
FILE=bins/elf/analysis/hello-utf-16
CMDS=<<EOF
e cfg.json.str = hex
e cfg.json.str=hex
izj~{[0].string}
EOF
EXPECT=<<EOF
@ -4600,7 +4600,7 @@ RUN
NAME=izjencodingarray
FILE=bins/elf/analysis/hello-utf-16
CMDS=<<EOF
e cfg.json.str = array
e cfg.json.str=array
izj~{[0].type}
EOF
EXPECT=<<EOF

View file

@ -176,7 +176,7 @@ RUN
NAME=oob consider baddr
FILE=bins/mach0/mac-ls
CMDS=<<EOF
e bin.baddr = 0xf00000
e bin.baddr=0xf00000
k old_v=`ieq`
oob
iI~baddr[1]
@ -196,8 +196,8 @@ NAME=oob consider laddr 32bit
FILE=bins/mach0/fatmach0-3true
ARGS=-a x86 -b 32
CMDS=<<EOF
e bin.laddr = 0x5000
e bin.baddr = -1
e bin.laddr=0x5000
e bin.baddr=-1
oob
iI~laddr[1]
iI~baddr[1]
@ -212,8 +212,8 @@ NAME=oob consider laddr 64bit
FILE=bins/mach0/fatmach0-3true
ARGS=-a x86 -b 64
CMDS=<<EOF
e bin.laddr = 0x5000
e bin.baddr = -1
e bin.laddr=0x5000
e bin.baddr=-1
oob
iI~laddr[1]
iI~baddr[1]

View file

@ -133,8 +133,8 @@ FILE=malloc://128
CMDS=<<EOF
e asm.bytes=true
e asm.bits=64
e asm.arch = x86
e analysis.arch = x86
e asm.arch=x86
e analysis.arch=x86
wx b8ffffffff
e asm.lines.bb=0
pd 1
@ -278,7 +278,7 @@ CMDS=<<EOF
e asm.bytes=true
e asm.arch=x86
e asm.bits=32
e scr.columns = 90
e scr.columns=90
wx ba3d000000
pd 1
EOF
@ -293,7 +293,7 @@ CMDS=<<EOF
e asm.bytes=true
e asm.arch=x86
e asm.bits=32
e scr.columns = 90
e scr.columns=90
wx c6852fffffff61
pd 1
EOF
@ -306,10 +306,10 @@ NAME=String capstone
FILE=bins/elf/analysis/main
CMDS=<<EOF
e asm.bytes=true
e asm.arch = x86
e asm.arch=x86
e asm.arch=x86
e asm.bits=32
e scr.columns = 90
e scr.columns=90
aa
pd 1 @ 0x0040050a
EOF
@ -545,15 +545,15 @@ e asm.bytes=true
e asm.arch=x86
e asm.bits=64
wx 488d85c0f9ffff488985b8f9ffff4585f6
e asm.lines.bb = false
e asm.lbytes = true
e asm.nbytes = 6
e asm.lines.bb=false
e asm.lbytes=true
e asm.nbytes=6
pd 3
e asm.nbytes = 10
e asm.nbytes=10
pd 3
e asm.lbytes = false
e asm.lbytes=false
pd 3
e asm.nbytes = 6
e asm.nbytes=6
pd 3
EOF
EXPECT=<<EOF
@ -1499,7 +1499,7 @@ RUN
NAME=pd0~{} - crash
FILE=-
CMDS=<<EOF
e scr.null =true
e scr.null=true
pd0~{}
EOF
EXPECT=<<EOF
@ -1509,7 +1509,7 @@ RUN
NAME=pI - crash
FILE=-
CMDS=<<EOF
e scr.null =true
e scr.null=true
pI 0x200
EOF
EXPECT=<<EOF
@ -1519,7 +1519,7 @@ RUN
NAME=pC - crash
FILE=-
CMDS=<<EOF
e scr.null =true
e scr.null=true
pC 0x200
EOF
EXPECT=<<EOF

View file

@ -101,7 +101,7 @@ FILE=bins/elf/analysis/ls-alxchk
CMDS=<<EOF
s 0x5e50
e asm.bits=64
e asm.bytes = true
e asm.bytes=true
af; afn rip
pd 1 @ 0x5f16~:0
e asm.lines.bb=0

View file

@ -1,8 +1,8 @@
NAME=pde x86
FILE=bins/pe/ioli/w32/crackme0x00.exe
CMDS=<<EOF
e asm.bytes = false
e asm.comments = false
e asm.bytes=false
e asm.comments=false
s main
aei
aeim
@ -44,7 +44,7 @@ RUN
NAME=pde arm
FILE=bins/elf/analysis/hello-arm32
CMDS=<<EOF
e asm.bytes = false
e asm.bytes=false
pdeq
EOF
EXPECT=<<EOF
@ -71,8 +71,8 @@ RUN
NAME=pde mips
FILE=bins/elf/mipsloop
CMDS=<<EOF
e asm.comments = false
e asm.bytes = false
e asm.comments=false
e asm.bytes=false
pde 12
EOF
EXPECT=<<EOF
@ -99,8 +99,8 @@ RUN
NAME=pde ppc
FILE=bins/elf/hello.ppc
CMDS=<<EOF
e asm.comments = false
e asm.bytes = false
e asm.comments=false
e asm.bytes=false
pde
EOF
EXPECT=<<EOF

View file

@ -3,9 +3,9 @@ FILE=-
CMDS=<<EOF
b 256
woe 0x11
e cfg.bigendian = false
e cfg.bigendian=false
pf Q
e cfg.bigendian = true
e cfg.bigendian=true
pf QeQ
pfq QeQ
EOF
@ -171,8 +171,8 @@ NAME=Register
FILE=malloc://1024
CMDS=<<EOF
e asm.bits=32
e asm.arch = x86
e analysis.arch = x86
e asm.arch=x86
e analysis.arch=x86
dr eax=4000
dr eip=42
pf.plop rr (eax)reg1 (eip)reg2

View file

@ -3,9 +3,9 @@ FILE=bins/elf/mentalminer
ARGS=-A -B 0x555555554000
BROKEN=1
CMDS=<<EOF
e asm.functions = false
e asm.flags = false
e asm.comments = false
e asm.functions=false
e asm.flags=false
e asm.comments=false
e asm.calls = false
aaa
s sym.parse__IO_FILE__
@ -20,10 +20,10 @@ NAME=pif invalid instruction
FILE=bins/elf/mentalminer
ARGS=-A -B 0x555555554000
CMDS=<<EOF
e asm.functions = false
e asm.flags = false
e asm.comments = false
e asm.calls = false
e asm.functions=false
e asm.flags=false
e asm.comments=false
e asm.calls=false
aaa
pif~?
EOF

View file

@ -45,7 +45,7 @@ RUN
NAME=p= - crash
FILE=-
CMDS=<<EOF
e zoom.in = block
e zoom.in=block
p=p" 1 " 1 EN
EOF
EXPECT=<<EOF
@ -82,7 +82,7 @@ NAME=p=e 5 0x100
FILE=bins/elf/arm1.bin
ARGS=-n
CMDS=<<EOF
e zoom.in = block
e zoom.in=block
p=e 5 0x100
EOF
EXPECT=<<EOF
@ -98,7 +98,7 @@ NAME=p=e 5 0x100 1
FILE=bins/elf/arm1.bin
ARGS=-n
CMDS=<<EOF
e zoom.in = block
e zoom.in=block
p=e 5 0x100 1
EOF
EXPECT=<<EOF
@ -127,7 +127,7 @@ NAME=p=p 5 0x100
FILE=bins/elf/arm1.bin
ARGS=-n
CMDS=<<EOF
e zoom.in = block
e zoom.in=block
p=p 5 0x100
EOF
EXPECT=<<EOF
@ -143,7 +143,7 @@ NAME=p=p 5 0x100 1
FILE=bins/elf/arm1.bin
ARGS=-n
CMDS=<<EOF
e zoom.in = block
e zoom.in=block
p=p 5 0x100 1
EOF
EXPECT=<<EOF

View file

@ -132,10 +132,10 @@ RUN
NAME=/ search from/to (seek 0)
FILE=bins/elf/ioli/crackme0x00
CMDS=<<EOF
e io.va = false
e io.va=false
s 0
e search.from = 0
e search.to = 0x00000050
e search.from=0
e search.to=0x00000050
/ ELF
EOF
EXPECT=<<EOF
@ -146,11 +146,11 @@ RUN
NAME=/ search from/to (seek beyond data)
FILE=bins/elf/ioli/crackme0x00
CMDS=<<EOF
e scr.color = false
e io.va = false
e scr.color=false
e io.va=false
s 0x1000
e search.from = 0
e search.to = 0x50
e search.from=0
e search.to=0x50
/ ELF
EOF
EXPECT=<<EOF
@ -233,10 +233,10 @@ RUN
NAME=/a search from/to (seek 0)
FILE=bins/elf/ioli/crackme0x00
CMDS=<<EOF
e io.va = false
e io.va=false
s 0
e search.from = 0
e search.to = 0x50
e search.from=0
e search.to=0x50
/a xor al, 0x80
EOF
EXPECT=<<EOF
@ -248,10 +248,10 @@ RUN
NAME=/a search from/to (seek 0)
FILE=bins/elf/ioli/crackme0x00
CMDS=<<EOF
e io.va = false
e io.va=false
s 0
e search.from = 0
e search.to = 0x50
e search.from=0
e search.to=0x50
/a xor al, 0x80
EOF
EXPECT=<<EOF
@ -320,10 +320,10 @@ RUN
NAME=/a search from/to (seek beyond data)
FILE=bins/elf/ioli/crackme0x00
CMDS=<<EOF
e io.va = false
e io.va=false
s 0x1000
e search.from = 0
e search.to = 0x00000050
e search.from=0
e search.to=0x00000050
/a xor al, 0x80
EOF
EXPECT=<<EOF
@ -335,10 +335,10 @@ RUN
NAME=/x search from/to (seek beyond data)
FILE=bins/elf/ioli/crackme0x00
CMDS=<<EOF
e io.va = false
e io.va=false
s 0x1000
e search.from = 0
e search.to = 0x00000050
e search.from=0
e search.to=0x00000050
/x 3480
EOF
EXPECT=<<EOF
@ -350,8 +350,8 @@ RUN
NAME=/A search
FILE=malloc://1024
CMDS=<<EOF
e asm.arch = x86
e analysis.arch = x86
e asm.arch=x86
e analysis.arch=x86
e asm.bits=32
"wa add esp,8;pop ebx; pop ebp; ret"
/at ret
@ -364,10 +364,10 @@ RUN
NAME=/A search from/to (seek 0)
FILE=bins/elf/ioli/crackme0x00
CMDS=<<EOF
e io.va = false
e io.va=false
s 0
e search.from = 0
e search.to = 0x00000050
e search.from=0
e search.to=0x00000050
/at xor
EOF
EXPECT=<<EOF
@ -379,10 +379,10 @@ RUN
NAME=/A search from/to (seek beyond data)
FILE=bins/elf/ioli/crackme0x00
CMDS=<<EOF
e io.va = false
e io.va=false
s 0x1000
e search.from = 0
e search.to = 0x00000050
e search.from=0
e search.to=0x00000050
/at xor
EOF
EXPECT=<<EOF
@ -464,8 +464,8 @@ RUN
NAME=/c/ search instructions extended regex
FILE=bins/pe/standard.exe
CMDS=<<EOF
e asm.arch = x86
e analysis.arch = x86
e asm.arch=x86
e analysis.arch=x86
e asm.bits=32
"/ad/ ror (bh|...), (cl|.)"
q
@ -480,10 +480,10 @@ RUN
NAME=/m search from/to (seek 0)
FILE=bins/pe/standard.exe
CMDS=<<EOF
e io.va = false
e io.va=false
s 0
e search.from = 0
e search.to = 0x10
e search.from=0
e search.to=0x10
/m
EOF
EXPECT=<<EOF
@ -494,10 +494,10 @@ RUN
NAME=/m search from/to (seek beyond data)
FILE=bins/pe/standard.exe
CMDS=<<EOF
e io.va = false
e io.va=false
s 0x1000
e search.from = 0
e search.to = 0x10
e search.from=0
e search.to=0x10
/m
EOF
EXPECT=<<EOF
@ -527,8 +527,8 @@ FILE=malloc://1024
CMDS=<<EOF
w ABCD @ 0x100
s 0
e search.from = 0
e search.to = 0x200
e search.from=0
e search.to=0x200
/x 41424344
EOF
EXPECT=<<EOF
@ -541,8 +541,8 @@ FILE=malloc://1024
CMDS=<<EOF
w ABCD @ 0x100
s 0x1000
e search.from = 0
e search.to = 0x200
e search.from=0
e search.to=0x200
/x 41424344
EOF
EXPECT=<<EOF
@ -553,7 +553,7 @@ RUN
NAME=/m search seek
FILE=bins/pe/standard.exe
CMDS=<<EOF
e io.va = false
e io.va=false
s 0x1000
/m~[0]
s
@ -590,9 +590,9 @@ FILE=bins/elf/analysis/x86-simple
CMDS=<<EOF
aeim
aeip
e search.in = raw
e search.from = 0x08048060
e search.to = 0x0804806b
e search.in=raw
e search.from=0x08048060
e search.to=0x0804806b
/s
EOF
EXPECT=<<EOF
@ -647,7 +647,7 @@ RUN
NAME=/x search seek
FILE=bins/pe/standard.exe
CMDS=<<EOF
e io.va = false
e io.va=false
s 0x1000
/x 9090cd80
s
@ -679,8 +679,8 @@ FILE=malloc://1024
CMDS=<<EOF
w ABCD @ 0x100
b 0x100
e search.from = 0x50
e search.to = 0x150
e search.from=0x50
e search.to=0x150
/x 41424344
EOF
EXPECT=<<EOF
@ -693,8 +693,8 @@ FILE=malloc://1024
CMDS=<<EOF
w ABCD @ 0x100
b 0x100
e search.from = 0x50
e search.to = 0x90
e search.from=0x50
e search.to=0x90
/x 41424344
EOF
EXPECT=<<EOF
@ -706,8 +706,8 @@ FILE=malloc://1024
CMDS=<<EOF
w ABCD @ 0x100
b 0x100
e search.from = 0x100
e search.to = 0x104
e search.from=0x100
e search.to=0x104
/x 41424344
EOF
EXPECT=<<EOF
@ -720,8 +720,8 @@ FILE=malloc://1024
CMDS=<<EOF
w ABCD @ 0x100
b 0x100
e search.from = 0x101
e search.to = 0x104
e search.from=0x101
e search.to=0x104
/x 41424344
EOF
EXPECT=<<EOF
@ -733,8 +733,8 @@ FILE=malloc://1024
CMDS=<<EOF
w ABCD @ 0x100
b 0x100
e search.from = 0x100
e search.to = 0x103
e search.from=0x100
e search.to=0x103
/x 41424344
EOF
EXPECT=<<EOF
@ -768,8 +768,8 @@ NAME=backward search hex
FILE=malloc://1024
CMDS=<<EOF
w ABCD @ 0x100
e search.from = 0x50
e search.to = 0x150
e search.from=0x50
e search.to=0x150
b 0x100
/bx 41424344
EOF
@ -782,8 +782,8 @@ NAME=backward search hex
FILE=malloc://1024
CMDS=<<EOF
w ABCD @ 0x100
e search.from = 0x110
e search.to = 0x150
e search.from=0x110
e search.to=0x150
b 0x100
/bx 41424344
EOF
@ -795,8 +795,8 @@ NAME=backward search hex
FILE=malloc://1024
CMDS=<<EOF
w ABCD @ 0x100
e search.from = 0x100
e search.to = 0x104
e search.from=0x100
e search.to=0x104
b 0x100
/bx 41424344
EOF
@ -809,8 +809,8 @@ NAME=backward search hex
FILE=malloc://1024
CMDS=<<EOF
w ABCD @ 0x100
e search.from = 0x100
e search.to = 0x103
e search.from=0x100
e search.to=0x103
b 0x100
/bx 41424344
EOF
@ -822,8 +822,8 @@ NAME=backward search hex
FILE=malloc://1024
CMDS=<<EOF
w ABCD @ 0x100
e search.from = 0x101
e search.to = 0x104
e search.from=0x101
e search.to=0x104
b 0x100
/bx 41424344
EOF
@ -921,9 +921,9 @@ NAME=search range /c in arm
FILE=bins/arm/elf/hello_world
CMDS=<<EOF
af @ sym.main
e search.in = raw
e search.from = 0x0000050c
e search.to = 0x00000510
e search.in=raw
e search.from=0x0000050c
e search.to=0x00000510
/ac add
EOF
EXPECT=<<EOF
@ -935,9 +935,9 @@ NAME=search range /ce in arm
FILE=bins/arm/elf/hello_world
CMDS=<<EOF
af @ sym.main
e search.in = raw
e search.from = 0x00000512
e search.to = 0x00000516
e search.in=raw
e search.from=0x00000512
e search.to=0x00000516
/ae r3,r0,=
EOF
EXPECT=<<EOF

View file

@ -2,7 +2,7 @@ NAME=cmd.hit sugar for /x
FILE=malloc://1024
CMDS=<<EOF
wx 90 @ 10
e cmd.hit=wx 91
e cmd.hit="wx 91"
/x 90
p8 1 @ 10
EOF
@ -92,7 +92,7 @@ RUN
NAME=cmd.hit for /!x
FILE=malloc://1024
CMDS=<<EOF
e cmd.hit = p8 1
e cmd.hit="p8 1"
wx 90 @ 10
/!x 00
EOF
@ -105,7 +105,7 @@ RUN
NAME=cmd.hit for /!
FILE=malloc://1024
CMDS=<<EOF
e cmd.hit = p8 1
e cmd.hit="p8 1"
w AAAAAAAAAAB
/! A
EOF
@ -118,7 +118,7 @@ RUN
NAME=cmd.hit for /+
FILE=malloc://1024
CMDS=<<EOF
e cmd.hit = p8 3
e cmd.hit="p8 3"
w ABCDEF
/+ ABC
EOF
@ -131,7 +131,7 @@ RUN
NAME=cmd.hit for //
FILE=malloc://1024
CMDS=<<EOF
e cmd.hit = p8 1
e cmd.hit="p8 1"
w AAAAAAAAAAB
/! A
//
@ -189,7 +189,7 @@ FILE=malloc://1024
CMDS=<<EOF
e asm.arch=x86
e asm.bits=32
e cmd.hit=pi 4
e cmd.hit="pi 4"
"wa add esp,8;pop ebx; pop ebp; ret"
/a add esp, 8
EOF
@ -205,9 +205,9 @@ RUN
NAME=cmd.hit for /A
FILE=malloc://1024
CMDS=<<EOF
e asm.arch = x86
e analysis.arch = x86
e cmd.hit = pi 1
e asm.arch=x86
e analysis.arch=x86
e cmd.hit="pi 1"
e asm.bits=32
"wa add esp,8;pop ebx; pop ebp; ret"
/at pop
@ -223,10 +223,10 @@ RUN
NAME=cmd.hit for /bx
FILE=malloc://1024
CMDS=<<EOF
e cmd.hit = p8 4
e cmd.hit="p8 4"
w ABCD @ 0x100
e search.from = 0x100
e search.to = 0x104
e search.from=0x100
e search.to=0x104
b 0x100
/bx 41424344
EOF
@ -240,9 +240,9 @@ NAME=cmd.hit for /B
FILE=malloc://1024
CMDS=<<EOF
wx cffa edfe
e cmd.hit = px 1
e search.from = 0
e search.to = 0x10
e cmd.hit="px 1"
e search.from=0
e search.to=0x10
/mb
EOF
EXPECT=<<EOF
@ -253,9 +253,9 @@ RUN
NAME=cmd.hit for /i
FILE=malloc://1024
CMDS=<<EOF
e cmd.hit = ps
e search.from = 0
e search.to = 0x10
e cmd.hit=ps
e search.from=0
e search.to=0x10
w AAAAAAAAAAB
/i aaaaaaaaaab
EOF
@ -268,9 +268,9 @@ RUN
NAME=cmd.hit for /r
FILE=bins/elf/analysis/ls-linux64
CMDS=<<EOF
e cmd.hit = pi 1
e search.from = 0x00005c20
e search.to = 0x00005c49
e cmd.hit="pi 1"
e search.from=0x00005c20
e search.to=0x00005c49
/r sym.imp.__libc_start_main
EOF
EXPECT=<<EOF
@ -282,9 +282,9 @@ RUN
NAME=from/to for /r
FILE=bins/elf/analysis/ls-linux64
CMDS=<<EOF
e cmd.hit = pi 1
e search.from = 0x00005c20
e search.to = 0x00005c44
e cmd.hit="pi 1"
e search.from=0x00005c20
e search.to=0x00005c44
/r sym.imp.__cxa_finalize
EOF
EXPECT=<<EOF
@ -296,7 +296,7 @@ FILE=bins/elf/analysis/x86-simple
CMDS=<<EOF
aeim
aeip
e cmd.hit = pi 1
e cmd.hit="pi 1"
/as
EOF
EXPECT=<<EOF
@ -311,10 +311,10 @@ CMDS=<<EOF
e asm.arch=x86
e asm.bits=64
wx 01
e cmd.hit = pi 1
e search.in =raw
e search.from = 0x00000000
e search.to = 0x00000004
e cmd.hit="pi 1"
e search.in=raw
e search.from=0x00000000
e search.to=0x00000004
/v1 1
EOF
EXPECT=<<EOF
@ -327,10 +327,10 @@ NAME=from/to /v not in range
FILE=-
CMDS=<<EOF
wx 01
e cmd.hit = pi 1
e search.in =raw
e search.from = 0x00000000
e search.to = 0x00000000
e cmd.hit="pi 1"
e search.in=raw
e search.from=0x00000000
e search.to=0x00000000
/v1 1
EOF
EXPECT=<<EOF
@ -344,8 +344,8 @@ CMDS=<<EOF
wx 05
e cmd.hit = pi 1
e search.in =raw
e search.from = 0x00000000
e search.to = 0x00000004
e search.from=0x00000000
e search.to=0x00000004
/V1 1 5
EOF
EXPECT=<<EOF
@ -358,10 +358,10 @@ NAME=from/to /V not in range
FILE=-
CMDS=<<EOF
wx 05
e cmd.hit = pi 1
e search.in =raw
e search.from = 0x00000000
e search.to = 0x00000000
e cmd.hit=pi 1
e search.in=raw
e search.from=0x00000000
e search.to=0x00000000
/V1 1 5
EOF
EXPECT=<<EOF

View file

@ -329,8 +329,8 @@ FILE=malloc://1024
CMDS=<<EOF
wx 00112233445566778899aabbccddeeff
za foo b 1122
e zign.minsz = 0
e zign.mincc = 0
e zign.minsz=0
e zign.mincc=0
fs *
e search.align=2
z/
@ -351,8 +351,8 @@ CMDS=<<EOF
wx 00112233445566778899aabbccddeeff
za a b 11223344
za b b bbccddee
e zign.minsz = 0
e zign.mincc = 0
e zign.minsz=0
e zign.mincc=0
fs *
f~?
e search.in=raw
@ -384,12 +384,12 @@ FILE=malloc://1024
CMDS=<<EOF
wx 00112233445566778899aabbccddeeff
za foo b 11223344
e zign.minsz = 0
e zign.minsz=0
fs *
z/
f~?
f-*
e zign.minsz = 5
e zign.minsz=5
z/
f~?
EOF
@ -417,7 +417,7 @@ NAME=zaf
FILE=bins/elf/analysis/zigs
CMDS=<<EOF
aaa
e zign.mincc = 0
e zign.mincc=0
zs zigs
zaf main
z
@ -440,7 +440,7 @@ NAME=zaf at offset
FILE=bins/elf/analysis/zigs
CMDS=<<EOF
aaa
e zign.mincc = 0
e zign.mincc=0
zs zigs
zaf @ main
z
@ -463,7 +463,7 @@ NAME=zaf (root zignspace)
FILE=bins/elf/analysis/zigs
CMDS=<<EOF
aaa
e zign.mincc = 0
e zign.mincc=0
zaf main
z
EOF
@ -484,7 +484,7 @@ NAME=zaf zigname
FILE=bins/elf/analysis/zigs
CMDS=<<EOF
aaa
e zign.mincc = 0
e zign.mincc=0
zs zigs
zaf main foobar
z
@ -507,7 +507,7 @@ NAME=zaf zigname (root zignspace)
FILE=bins/elf/analysis/zigs
CMDS=<<EOF
aaa
e zign.mincc = 0
e zign.mincc=0
zaf main foobar
z
EOF
@ -570,7 +570,7 @@ FILE=bins/elf/analysis/zigs_stripped
CMDS=<<EOF
aa
za sym.print g cc=1 nbbs=1 edges=0 ebbs=1
e zign.mincc = 0
e zign.mincc=0
z. @@f:fcn*
?v sign.graph.sym.print_0
EOF
@ -584,11 +584,11 @@ FILE=bins/elf/analysis/zigs_stripped
CMDS=<<EOF
aa
za sym.print g cc=1 nbbs=1 edges=0 ebbs=1
e zign.mincc = 0
e zign.mincc=0
z. @@f:fcn*
?v sign.graph.sym.print_0
f-*
e zign.mincc = 10
e zign.mincc=10
z. @@f:fcn*
?v sign.graph.sym.print_0
EOF
@ -603,7 +603,7 @@ FILE=bins/elf/analysis/zigs_stripped
CMDS=<<EOF
aa
za sym.print_metric g cc=1 nbbs=1 edges=0 ebbs=1
e zign.mincc = 0
e zign.mincc=0
z/
?v sign.graph.sym.print_metric_4
EOF
@ -618,8 +618,8 @@ CMDS=<<EOF
aa
za sym.print b 5548....48......48......48......48....bf........b8........e8........90c9c3
za sym.print g cc=1 nbbs=1 edges=0 ebbs=1
e zign.minsz = 0
e zign.mincc = 0
e zign.minsz=0
e zign.mincc=0
z/
?v sign.bytes.sym.print_0
?v sign.graph.sym.print_4
@ -636,17 +636,17 @@ CMDS=<<EOF
aa
za sym.print b 5548....48......48......48......48....bf........b8........e8........90c9c3
za sym.print g cc=1 nbbs=1 edges=0 ebbs=1
e zign.minsz = 0
e zign.mincc = 0
e zign.minsz=0
e zign.mincc=0
fs sign
e zign.match.bytes = true
e zign.match.graph = false
e zign.match.bytes=true
e zign.match.graph=false
z/
f~sign.bytes.sym.print?
f~sign.graph.sym.print?
f-*
e zign.match.bytes = false
e zign.match.graph = true
e zign.match.bytes=false
e zign.match.graph=true
z/
f~sign.bytes.sym.print?
f~sign.graph.sym.print?
@ -665,17 +665,17 @@ CMDS=<<EOF
aa
za sym.print b 5548....48......48......48......48....bf........b8........e8........90c9c3
za sym.print g cc=1 nbbs=1 edges=0 ebbs=1
e zign.minsz = 0
e zign.mincc = 0
e zign.minsz=0
e zign.mincc=0
fs sign
e zign.match.bytes = true
e zign.match.graph = false
e zign.match.bytes=true
e zign.match.graph=false
z. @ 0x400536
f~sign.bytes.sym.print?
f~sign.graph.sym.print?
f-*
e zign.match.bytes = false
e zign.match.graph = true
e zign.match.bytes=false
e zign.match.graph=true
z. @ 0x400536
f~sign.bytes.sym.print?
f~sign.graph.sym.print?
@ -1030,7 +1030,7 @@ NAME=zb bad count
FILE=bins/elf/static-glibc-2.27
CMDS=<<EOF
s 0x00410210
e zign.maxsz = 32
e zign.maxsz=32
af
za sym.exact g cc=17 nbbs=29 edges=44 ebbs=1 bbsum=407
za sym.exact b 415541544989fc55534883ec08e89e02ffff488b2d77952a004889c38b450048:ffffffffffffffffffffffffffff00000000ff000000000000ffffffffffffff
@ -1044,7 +1044,7 @@ NAME=zb negative count
FILE=bins/elf/static-glibc-2.27
CMDS=<<EOF
s 0x00410210
e zign.maxsz = 32
e zign.maxsz=32
af
za sym.exact g cc=17 nbbs=29 edges=44 ebbs=1 bbsum=407
za sym.exact b 415541544989fc55534883ec08e89e02ffff488b2d77952a004889c38b450048:ffffffffffffffffffffffffffff00000000ff000000000000ffffffffffffff
@ -1058,7 +1058,7 @@ NAME=zb single exact match
FILE=bins/elf/static-glibc-2.27
CMDS=<<EOF
s 0x00410210
e zign.maxsz = 32
e zign.maxsz=32
af
za sym.exact g cc=17 nbbs=29 edges=44 ebbs=1 bbsum=407
za sym.exact b 415541544989fc55534883ec08e89e02ffff488b2d77952a004889c38b450048:ffffffffffffffffffffffffffff00000000ff000000000000ffffffffffffff
@ -1073,7 +1073,7 @@ NAME=zb match 5 by default
FILE=bins/elf/static-glibc-2.27
CMDS=<<EOF
s 0x00410210
e zign.maxsz = 32
e zign.maxsz=32
af
za sym.exact g cc=17 nbbs=29 edges=44 ebbs=1 bbsum=407
za sym.exact b 415541544989fc55534883ec08e89e02ffff488b2d77952a004889c38b450048:ffffffffffffffffffffffffffff00000000ff000000000000ffffffffffffff
@ -1102,7 +1102,7 @@ NAME=zb match 6 of 6 with 100 count
FILE=bins/elf/static-glibc-2.27
CMDS=<<EOF
s 0x00410210
e zign.maxsz = 32
e zign.maxsz=32
af
za sym.exact g cc=17 nbbs=29 edges=44 ebbs=1 bbsum=407
za sym.exact b 415541544989fc55534883ec08e89e02ffff488b2d77952a004889c38b450048:ffffffffffffffffffffffffffff00000000ff000000000000ffffffffffffff
@ -1132,7 +1132,7 @@ NAME=zb ignore masked bytes
FILE=bins/elf/static-glibc-2.27
CMDS=<<EOF
s 0x00410210
e zign.maxsz = 32
e zign.maxsz=32
af
za sym.perf1 b 415541544989fc55534883ec08e800000000488b2d77952a004889c38b450048:ffffffffffffffffffffffffffff00000000ff000000000000ffffffffffffff
za sym.perf2 b 415541544989fc55534883ec08e8ffffffff488b2d77952a004889c38b450048:ffffffffffffffffffffffffffff00000000ff000000000000ffffffffffffff
@ -1148,7 +1148,7 @@ NAME=zb count 1
FILE=bins/elf/static-glibc-2.27
CMDS=<<EOF
s 0x00410210
e zign.maxsz = 32
e zign.maxsz=32
af
za sym.right g cc=16 nbbs=28 edges=44 ebbs=1 bbsum=407
za sym.right b 415541544989fc55534883ec08e89e02ffff488b2d77952a004889c38b450048:ffffffffffffffffffffffffffff00000000ff000000000000ffffffffffffff
@ -1247,7 +1247,7 @@ NAME=x86-64 r_sign_fcn_bytes bounds check
FILE=bins/elf/libc.so.6
CMDS=<<EOF
s 0x0593a0
e zign.maxsz = 41
e zign.maxsz=41
af
zaf
z* ~za sym._IO_printf b
@ -1297,7 +1297,7 @@ NAME=80386 r_sign_fcn_bytes bounds check
FILE=bins/elf/fcn_in_test.elf
CMDS=<<EOF
s 0x00001120
e zign.maxsz = 32
e zign.maxsz=32
af
zaf
z* ~za sym.__do_global_dtors_aux b
@ -1351,7 +1351,7 @@ FILE=bins/elf/libc.so.0
CMDS=<<EOF
s 0x00051490
af
e zign.maxsz = 41
e zign.maxsz=41
zaf
z* ~za sym.fpathconf b
EOF
@ -1403,7 +1403,7 @@ FILE=bins/elf/busybox-powerpc
CMDS=<<EOF
s 0x1000016c
af
e zign.maxsz = 30
e zign.maxsz=30
zaf
z* ~za fcn.1000016c b
EOF
@ -1450,7 +1450,7 @@ FILE=bins/elf/libverifyPass.so
CMDS=<<EOF
s 0x00001844
af
e zign.maxsz = 42
e zign.maxsz=42
zaf
z* ~za fcn.00001844 b
EOF
@ -1501,7 +1501,7 @@ NAME=ARM aarch64 r_sign_fcn_bytes bounds check
FILE=bins/elf/switch-hello-world.elf
CMDS=<<EOF
s 0x00016e9c
e zign.maxsz = 94
e zign.maxsz=94
af
zaf
z* ~za sym._vfprintf_r b
@ -1515,7 +1515,7 @@ NAME=zbr bad count
FILE=bins/elf/static-glibc-2.27
CMDS=<<EOF
aa
e zign.maxsz = 32
e zign.maxsz=32
za sym.exact g cc=17 nbbs=29 edges=44 ebbs=1 bbsum=407
za sym.exact b 415541544989fc55534883ec08e89e02ffff488b2d77952a004889c38b450048:ffffffffffffffffffffffffffff00000000ff000000000000ffffffffffffff
zbr sym.exact NOTNUMBER
@ -1528,7 +1528,7 @@ NAME=zbr negative count
FILE=bins/elf/static-glibc-2.27
CMDS=<<EOF
aa
e zign.maxsz = 32
e zign.maxsz=32
za sym.exact g cc=17 nbbs=29 edges=44 ebbs=1 bbsum=407
za sym.exact b 415541544989fc55534883ec08e89e02ffff488b2d77952a004889c38b450048:ffffffffffffffffffffffffffff00000000ff000000000000ffffffffffffff
zbr sym.exact -3
@ -1541,7 +1541,7 @@ NAME=zbr zero count
FILE=bins/elf/static-glibc-2.27
CMDS=<<EOF
aa
e zign.maxsz = 32
e zign.maxsz=32
za sym.exact g cc=17 nbbs=29 edges=44 ebbs=1 bbsum=407
za sym.exact b 415541544989fc55534883ec08e89e02ffff488b2d77952a004889c38b450048:ffffffffffffffffffffffffffff00000000ff000000000000ffffffffffffff
zbr sym.exact 0
@ -1554,7 +1554,7 @@ NAME=zbr single match
FILE=bins/elf/static-glibc-2.27
CMDS=<<EOF
aa
e zign.maxsz = 32
e zign.maxsz=32
za sym.exact g cc=17 nbbs=29 edges=44 ebbs=1 bbsum=407
za sym.exact b 415541544989fc55534883ec08e89e02ffff488b2d77952a004889c38b450048:ffffffffffffffffffffffffffff00000000ff000000000000ffffffffffffff
zbr sym.exact 1~[5]
@ -1568,7 +1568,7 @@ NAME=zbr exact match
FILE=bins/elf/static-glibc-2.27
CMDS=<<EOF
aa
e zign.maxsz = 32
e zign.maxsz=32
za sym.exact g cc=17 nbbs=29 edges=44 ebbs=1 bbsum=407
za sym.exact b 415541544989fc55534883ec08e89e02ffff488b2d77952a004889c38b450048:ffffffffffffffffffffffffffff00000000ff000000000000ffffffffffffff
zbr sym.exact 1
@ -1582,7 +1582,7 @@ NAME=zbr try match 5 but only 4
FILE=bins/elf/static-glibc-2.27
CMDS=<<EOF
aa
e zign.maxsz = 32
e zign.maxsz=32
za sym.exact g cc=17 nbbs=29 edges=44 ebbs=1 bbsum=407
za sym.exact b 415541544989fc55534883ec08e89e02ffff488b2d77952a004889c38b450048:ffffffffffffffffffffffffffff00000000ff000000000000ffffffffffffff
zbr sym.exact ~[5]
@ -1599,7 +1599,7 @@ NAME=zbr match 5 by default
FILE=bins/elf/ls
CMDS=<<EOF
aa
e zign.maxsz = 32
e zign.maxsz=32
za main b 41574156415541545589fd534889f34883ec58488b3e64488b04252800000048
za main g cc=429 nbbs=300 edges=437 ebbs=8 bbsum=6739
zbr main ~[5]
@ -1617,7 +1617,7 @@ NAME=zbr ignore masked bytes
FILE=bins/elf/static-glibc-2.27
CMDS=<<EOF
aa
e zign.maxsz = 32
e zign.maxsz=32
za sym.exact g cc=17 nbbs=29 edges=44 ebbs=1 bbsum=407
za sym.exact b 415541544989fc55534883ec08e8aaaaaaaa488baaaaaaaaaa4889c38b450048:ffffffffffffffffffffffffffff00000000ff000000000000ffffffffffffff
zbr sym.exact 1
@ -1631,7 +1631,7 @@ NAME=zb zign.threshold
FILE=bins/elf/static-glibc-2.27
CMDS=<<EOF
s 0x00410210
e zign.maxsz = 32
e zign.maxsz=32
af
za sym.1 g cc=17 nbbs=29 edges=44 ebbs=1 bbsum=407
za sym.1 b 415541544989fc55534883ec08e89e02ffff488b2d77952a004889c38b450048:ffffffffffffffffffffffffffff00000000ff000000000000ffffffffffffff
@ -1643,13 +1643,13 @@ za sym.4 g cc=12 nbbs=17 edges=30 ebbs=1 bbsum=307
za sym.4 b 4883ec08e89e02ffff488b2d77952a004889c38b450048:ffffffffff00000000ff000000000000ffffffffffffff
za sym.5 g cc=10 nbbs=14 edges=22 ebbs=1 bbsum=284
za sym.5 b 08e89e02ffff488b2d77952a004889c38b450048:ffff00000000ff000000000000ffffffffffffff
e zign.threshold = .99
e zign.threshold=.99
zb ~[5]
e zign.threshold = .9
e zign.threshold=.9
zb ~[5]
e zign.threshold = .8
e zign.threshold=.8
zb ~[5]
e zign.threshold = .7
e zign.threshold=.7
zb ~[5]
EOF
EXPECT=<<EOF
@ -1670,16 +1670,16 @@ NAME=zbr zign.threshold
FILE=bins/elf/ls
CMDS=<<EOF
aa
e zign.maxsz = 32
e zign.maxsz=32
za main b 41574156415541545589fd534889f34883ec58488b3e64488b04252800000048
za main g cc=429 nbbs=300 edges=437 ebbs=8 bbsum=6739
e zign.threshold = 1.0
e zign.threshold=1.0
zbr main~[5]
e zign.threshold = 0.5
e zign.threshold=0.5
zbr main~[5]
e zign.threshold = 0.3
e zign.threshold=0.3
zbr main~[5]
e zign.threshold = 0.12
e zign.threshold=0.12
zbr main 30~[5]
EOF
EXPECT=<<EOF
@ -1695,8 +1695,8 @@ NAME=zbr invalid threshold
FILE=bins/elf/ls
CMDS=<<EOF
aa
e zign.maxsz = 32
e zign.threshold = 99.0
e zign.maxsz=32
e zign.threshold=99.0
za main b 41574156415541545589fd534889f34883ec58488b3e64488b04252800000048
za main g cc=429 nbbs=300 edges=437 ebbs=8 bbsum=6739
zbr main ~[5]
@ -1714,8 +1714,8 @@ NAME=zb invalid threshold
FILE=bins/elf/static-glibc-2.27
CMDS=<<EOF
s 0x00410210
e zign.threshold = 99.0
e zign.maxsz = 32
e zign.threshold=99.0
e zign.maxsz=32
af
za sym.exact g cc=17 nbbs=29 edges=44 ebbs=1 bbsum=407
za sym.exact b 415541544989fc55534883ec08e89e02ffff488b2d77952a004889c38b450048:ffffffffffffffffffffffffffff00000000ff000000000000ffffffffffffff
@ -1774,7 +1774,7 @@ za main t func.sym.new_function_name.ret=int func.sym.new_function_name.args=2 f
za main n sym.new_function_name
s main
af
e zign.match.offset = true
e zign.match.offset=true
z.
afs
afn

View file

@ -134,7 +134,7 @@ NAME=cmtrefs
FILE=bins/elf/analysis/main
CMDS=<<EOF
aaa
e asm.cmt.refs = true
e asm.cmt.refs=true
e asm.bytes=true
f test.flag @ 0x004003e0
CC test comment @ 0x004003e0

View file

@ -6,7 +6,7 @@ e analysis.arch=x86
e asm.bytes=true
e asm.bits=32
"wa mov eax, [0x100]"
e asm.describe = true
e asm.describe=true
pd 1
EOF
EXPECT=<<EOF
@ -21,7 +21,7 @@ e asm.arch=x86
e asm.bytes=true
e asm.bits=64
wa nop
e asm.describe = true
e asm.describe=true
pd 1
EOF
EXPECT=<<EOF

View file

@ -11,7 +11,7 @@ RUN
NAME=@@c:/c fs:
FILE=bins/mach0/mac-ls
CMDS=<<EOF
e search.in = bin.sections
e search.in=bin.sections
?v $$ @@c:/ad fs:[ra
EOF
EXPECT=<<EOF
@ -22,7 +22,7 @@ RUN
NAME=@@c:/c/a fs:
FILE=bins/mach0/mac-ls
CMDS=<<EOF
e search.in = bin.sections
e search.in=bin.sections
?v $$ @@c:/ao fs:[ra
EOF
EXPECT=<<EOF

View file

@ -281,7 +281,7 @@ RUN
NAME=escaped grep
FILE=bins/elf/crackme
CMDS=<<EOF
e asm.bytes = true
e asm.bytes=true
pd 40~0x004005fe
EOF
EXPECT=<<EOF

View file

@ -149,8 +149,8 @@ NAME=$j (malloc)
FILE=malloc://1024
CMDS=<<EOF
e asm.bits=32
e asm.arch = x86
e analysis.arch = x86
e asm.arch=x86
e analysis.arch=x86
wa jmp 0x30
?v $j
wa jz 0x01
@ -171,8 +171,8 @@ NAME=$f (malloc)
FILE=malloc://1024
CMDS=<<EOF
e asm.bits=32
e asm.arch = x86
e analysis.arch = x86
e asm.arch=x86
e analysis.arch=x86
wx eb2e
?v $f
wx 0f84fbffffff
@ -209,8 +209,8 @@ NAME=$l (malloc)
FILE=malloc://1024
CMDS=<<EOF
e asm.bits=32
e asm.arch = x86
e analysis.arch = x86
e asm.arch=x86
e analysis.arch=x86
wa xor eax, eax
?v $l
wa mov esp, 0x1
@ -250,7 +250,7 @@ RUN
NAME=$e (malloc) 2
FILE=malloc://1024
CMDS=<<EOF
e asm.bits = 0x20
e asm.bits=0x20
?v ${asm.bits}
EOF
EXPECT=<<EOF
@ -332,8 +332,8 @@ NAME=$b (x86-simple)
FILE=bins/elf/analysis/x86-simple
CMDS=<<EOF
e asm.bits=32
e asm.arch = x86
e analysis.arch = x86
e asm.arch=x86
e analysis.arch=x86
b 123
?v $b
? $b

View file

@ -27,8 +27,8 @@ RUN
NAME=cmd.hit for /h sha256
FILE=bins/firmware/main.bin
CMDS=<<EOF
e cmd.hit = p8 1
e search.in =raw
e cmd.hit="p8 1"
e search.in=raw
/h sha256 83264abaf298b9238ca63cb2fd9ff0f41a7a1520ee2a17c56df459fc806de1d6 512
EOF
EXPECT=<<EOF

View file

@ -67,7 +67,7 @@ RUN
NAME=binmask seek search (mips)
FILE=malloc://1024
CMDS=<<EOF
e asm.arch = mips
e asm.arch=mips
e scr.color=false
"wx 2080998f00000000d4a22527"
e search.from=0
@ -85,7 +85,7 @@ RUN
NAME=binmask seek search (mips)
FILE=malloc://1024
CMDS=<<EOF
e asm.arch = mips
e asm.arch=mips
e scr.color=false
"wx 2080998f00000000d4a22527"
e search.from=0

View file

@ -110,8 +110,8 @@ NAME=pij asm.midflags=0
FILE=malloc://1024
CMDS=<<EOF
e asm.bits=64
e asm.arch = x86
e analysis.arch = x86
e asm.arch=x86
e analysis.arch=x86
wx 554889e54157415641554154534881ec
e asm.flags.middle=0
f dat.sym = 2
@ -191,8 +191,8 @@ NAME=pij asm.midflags=2
FILE=malloc://1024
CMDS=<<EOF
e asm.bits=64
e asm.arch = x86
e analysis.arch = x86
e asm.arch=x86
e analysis.arch=x86
wx 554889e54157415641554154534881ec
e asm.midflags=2
f dat.sym = 2

View file

@ -75,7 +75,7 @@ NAME=load with file using saved relative file path after project file and binary
FILE=--
CMDS=<<EOF
e cfg.newshell=1
e asm.bytes = true
e asm.bytes=true
mkdir -p .tmp_load_move_both2/.tmp_load_move_both2
cp bins/elf/crackme0x05 .tmp_load_move_both2/somebin
o .tmp_load_move_both2/somebin

View file

@ -111,7 +111,7 @@ FILE=bins/elf/libverifyPass.so
CMDS=<<EOF
e analysis.vars.stackname=true
e asm.bytes=true
e asm.lines.bb = false
e asm.lines.bb=false
aa
s sym.Java_com_app_ndh_NDHActivity_print
to bins/headers/jni.h
@ -608,8 +608,8 @@ NAME=aht and arm
FILE=-
CMDS=<<EOF
e asm.bytes=true
e asm.arch = arm
e asm.bits = 32
e asm.arch=arm
e asm.bits=32
wx 082090e5040081e5
"td struct foo {int a; int b; int c;};"
aht foo.c @ 0x00000000
@ -675,7 +675,7 @@ CMDS=<<EOF
e asm.arch=x86
e asm.bytes=true
e asm.bits=64
e asm.comments = false
e asm.comments=false
"td struct bar {int a ; int b; int c;}"
wx 48C7C058190000488B5004488B4808483B500448BBEFBEADDE00000000488958089090C3
af
@ -698,7 +698,7 @@ CMDS=<<EOF
e asm.bytes=true
e asm.arch=x86
e asm.bits=64
e asm.comments = false
e asm.comments=false
"td struct bar {int a ; int b; int c;}"
wx 48C7C058190000488B5004488B4808483B500448BBEFBEADDE00000000488958089090C3
tl bar = 0x1958
@ -722,8 +722,8 @@ CMDS=<<EOF
e asm.arch=x86
e asm.bytes=true
e asm.bits=64
e asm.comments = false
e asm.flags = false
e asm.comments=false
e asm.flags=false
"td struct bar {int x; int y; int z;};"
"td struct foo {int a; int b; int c;};"
wx 48C7C000010000488B5008488B480448C7C000020000488B5008488B48049090C3
@ -1103,9 +1103,9 @@ RUN
NAME=Caller to callee propgation (64 bits)
FILE=bins/elf/arg_down_prop
CMDS=<<EOF
e asm.lines = false
e asm.bytes = true
e asm.xrefs = false
e asm.lines=false
e asm.bytes=true
e asm.xrefs=false
aa
aaft
s sym.funcarg
@ -1124,9 +1124,9 @@ RUN
NAME=Caller to caller propgation (32 bits)
FILE=bins/elf/arg_down_32
CMDS=<<EOF
e asm.lines = false
e asm.lines=false
e asm.bytes=true
e asm.xrefs = false
e asm.xrefs=false
aa
aaft
s sym.funcarg
@ -1372,7 +1372,7 @@ RUN
NAME=constrained type
FILE=bins/elf/constr_type
CMDS=<<EOF
e analysis.types.constraint = true
e analysis.types.constraint=true
aaa
s sym.single_cond
pd 1~4h

View file

@ -5,7 +5,7 @@ s main
aei
aeim
e asm.emu=true
e asm.bytes = true
e asm.bytes=true
e asm.emustr=false
pd 4~!--
EOF

View file

@ -978,7 +978,7 @@ BROKEN=1
FILE=bins/elf/BLE_Beacon2.NRF51822_OTA.bin
ARGS=-aarm -b16 -easm.os=s110 -m 0x16000
CMDS=<<EOF
e bin.baddr = 0x16000;
e bin.baddr=0x16000;
aae $s @ 0x00016000
fs
EOF
@ -1050,7 +1050,7 @@ RUN
NAME=test-thumb-load
FILE=malloc://0x200
CMDS=<<EOF
e asm.bytes = true
e asm.bytes=true
e asm.arch=arm
e asm.bits=16
wb 054b

View file

@ -745,7 +745,7 @@ NAME=cbz/cbnz likeliness
FILE=malloc://0x200
CMDS=<<EOF
e asm.arch=arm
e asm.bytes = true
e asm.bytes=true
e asm.bits=64
e cfg.bigendian=false
e emu.str=true

View file

@ -2,9 +2,9 @@ NAME=hello world
FILE=bins/bf/hello-ok.bf
ARGS=-b32
CMDS=<<EOF
e asm.arch = bf
e asm.bytes = true
e analysis.arch = bf
e asm.arch=bf
e asm.bytes=true
e analysis.arch=bf
f input 128 0x3000
o malloc://128 0x3000~z
f screen 80*25 0x4000
@ -35,9 +35,9 @@ NAME=hello world - unbalanced loop
FILE=bins/bf/hello-unbalanced-loop.bf
ARGS=-b32
CMDS=<<EOF
e asm.arch = bf
e asm.bytes = true
e analysis.arch = bf
e asm.arch=bf
e asm.bytes=true
e analysis.arch=bf
f input 128 0x3000
o malloc://128 0x3000~z
f screen 80*25 0x4000
@ -65,8 +65,8 @@ NAME=loopy hello world
FILE=bins/bf/hello-loops.bf
ARGS=-b32
CMDS=<<EOF
e asm.arch = bf
e analysis.arch = bf
e asm.arch=bf
e analysis.arch=bf
f input 128 0x3000
o malloc://128 0x3000~z
f screen 80*25 0x4000

View file

@ -1,8 +1,8 @@
NAME=64bit Integer comparison [-1 == 1 (op1 < op2)]
FILE=-
CMDS=<<EOF
e asm.arch = x86
e asm.bits = 64
e asm.arch=x86
e asm.bits=64
"ae 1,-1,==,63,$o,of,:=,63,$s,sf,:=,64,$b,cf,:=,$z,zf,:="
"aer?cf"
"aer?sf"
@ -20,8 +20,8 @@ RUN
NAME=64bit Integer comparison [1 == -1 (op1 > op2)]
FILE=-
CMDS=<<EOF
e asm.arch = x86
e asm.bits = 64
e asm.arch=x86
e asm.bits=64
"ae -1,1,==,63,$o,of,:=,63,$s,sf,:=,64,$b,cf,:=,$z,zf,:="
"aer?cf"
"aer?sf"
@ -39,8 +39,8 @@ RUN
NAME=32bit Integer addition with overflow [0x80000000 + 0x80000000]
FILE=-
CMDS=<<EOF
e asm.arch = x86
e asm.bits = 64
e asm.arch=x86
e asm.bits=64
"ae 0x80000000,eax,:=,0x80000000,ebx,:=,eax,ebx,+=,31,$o,of,:=,31,$s,sf,:=,31,$c,cf,:=,$z,zf,:="
"aer?cf"
"aer?sf"
@ -58,8 +58,8 @@ RUN
NAME=32bit Integer Addition [0x90000000 + 0x70000000]
FILE=-
CMDS=<<EOF
e asm.arch = x86
e asm.bits = 64
e asm.arch=x86
e asm.bits=64
"ae 0x70000000,eax,:=,0x90000000,ebx,:=,eax,ebx,+=,31,$o,of,:=,31,$s,sf,:=,31,$c,cf,:=,$z,zf,:="
"aer?cf"
"aer?sf"
@ -77,8 +77,8 @@ RUN
NAME=32bit Integer Addition [0x70000000 + 0x90000000]
FILE=-
CMDS=<<EOF
e asm.arch = x86
e asm.bits = 64
e asm.arch=x86
e asm.bits=64
"ae 0x90000000,eax,:=,0x70000000,ebx,:=,eax,ebx,+=,31,$o,of,:=,31,$s,sf,:=,31,$c,cf,:=,$z,zf,:="
"aer?cf"
"aer?sf"
@ -96,8 +96,8 @@ RUN
NAME=signed compare check. a > b [2 > 1]
FILE=-
CMDS=<<EOF
e asm.arch = x86
e asm.bits = 64
e asm.arch=x86
e asm.bits=64
"ae 2,eax,=,1,ebx,=,ebx,eax,>,31,$o,of,:=,31,$s,sf,:=,31,$c,cf,:=,$z,zf,:=,sf,of,^,zf,|,!,==,$z,NUM"
EOF
EXPECT=<<EOF
@ -108,8 +108,8 @@ RUN
NAME=signed compare check. a < b [2 < 1]
FILE=-
CMDS=<<EOF
e asm.arch = x86
e asm.bits = 64
e asm.arch=x86
e asm.bits=64
"ae 2,eax,:=,1,ebx,:=,ebx,eax,==,ebx,eax,<,31,$o,of,:=,31,$s,sf,:=,31,$c,cf,:=,$z,zf,:=,sf,of,!=,==,$z,NUM"
EOF
EXPECT=<<EOF
@ -120,8 +120,8 @@ RUN
NAME=unsigned compare check. a < b [-1 < 1]
FILE=-
CMDS=<<EOF
e asm.arch = x86
e asm.bits = 64
e asm.arch=x86
e asm.bits=64
"ae -1,eax,:=,1,ebx,:=,ebx,eax,==,ebx,eax,<,31,$o,of,:=,31,$s,sf,:=,31,$c,cf,:=,$z,zf,:=,cf,zf,|,!,==,$z,NUM"
EOF
EXPECT=<<EOF
@ -132,8 +132,8 @@ RUN
NAME=unsigned compare check. a > b [-1 > 1]
FILE=-
CMDS=<<EOF
e asm.arch = x86
e asm.bits = 64
e asm.arch=x86
e asm.bits=64
"ae -1,eax,=,1,ebx,=,ebx,eax,>,31,$o,of,:=,31,$s,sf,:=,31,$c,cf,:=,$z,zf,:=,cf,==,$z,NUM"
EOF
EXPECT=<<EOF

View file

@ -1752,7 +1752,7 @@ CMDS=<<EOF
s 0x00400820
af
e asm.emu=true
e asm.bytes = true
e asm.bytes=true
e emu.write=true
e analysis.gpfixed=false
e asm.lines.bb=false

View file

@ -1205,7 +1205,7 @@ FILE=bins/other/tmctf_re100
ARGS=-a x86 -b 32
CMDS=<<EOF
e io.va=true
e io.cache = true
e io.cache=true
s 0x278
aei
aeim

View file

@ -50,9 +50,9 @@ aeim
wa mov rax, 11
e asm.emu=true
ar rax=33
e scr.null = true
e scr.null=true
pd 2000
e scr.null = false
e scr.null=false
ar rax
EOF
EXPECT=<<EOF
@ -70,9 +70,9 @@ aeim
wa mov rax, 11
e asm.emu=false
ar rax=33
e scr.null = true
e scr.null=true
pd 2000
e scr.null = false
e scr.null=false
ar rax
EOF
EXPECT=<<EOF
@ -90,9 +90,9 @@ aeim
wa mov rax, 11
e asm.emu=true
ar rax=33
e scr.null = true
e scr.null=true
pi 2000
e scr.null = false
e scr.null=false
ar rax
EOF
EXPECT=<<EOF
@ -104,8 +104,8 @@ NAME=esil x86-64 imul
FILE=-
CMDS=<<EOF
e asm.bits=64
e asm.arch = x86
e analysis.arch = x86
e asm.arch=x86
e analysis.arch=x86
wx 69c389000000
ao~opcode,esil
EOF
@ -120,8 +120,8 @@ NAME=esil x86-64 imul emu
FILE=-
CMDS=<<EOF
e asm.bits=64
e asm.arch = x86
e analysis.arch = x86
e asm.arch=x86
e analysis.arch=x86
wx 48c7c004000000
wx 48c7c305000000 @ 7
wx 69c303000000 @ 14
@ -411,10 +411,10 @@ NAME=cmd.esil.intr set
FILE=-
CMDS=<<EOF
e asm.bits=64
e asm.arch = x86
e analysis.arch = x86
e asm.arch=x86
e analysis.arch=x86
wx b8010000000f34b801000000cd80ebfe
e cmd.esil.intr=?e SYSCALL
e cmd.esil.intr="?e SYSCALL"
10aes
EOF
EXPECT=<<EOF
@ -437,8 +437,8 @@ NAME=neg
FILE=-
CMDS=<<EOF
wx f6dbf6df66f7dbf7db48f7db
e asm.arch = x86
e asm.bits = 64
e asm.arch=x86
e asm.bits=64
aei
aer rbx=0x300020100
aes 1; aer rbx; aer cf

View file

@ -1,7 +1,7 @@
NAME=String udis86
FILE=bins/elf/analysis/main
CMDS=<<EOF
e asm.arch = x86.udis
e asm.arch=x86.udis
e asm.arch=x86
e asm.bits=32
e scr.columns = 90
@ -81,10 +81,10 @@ RUN
NAME="axt udis86"
FILE=bins/elf/analysis/main
CMDS=<<EOF
e asm.arch = x86.udis
e analysis.arch = x86.udis
e scr.color = false
e scr.wheel = false
e asm.arch=x86.udis
e analysis.arch=x86.udis
e scr.color=false
e scr.wheel=false
aa
axt @ str.Hello_World
EOF
@ -96,10 +96,10 @@ RUN
NAME="axt udis86: IOLI0"
FILE=bins/elf/ioli/crackme0x00
CMDS=<<EOF
e asm.arch = x86.udis
e analysis.arch = x86.udis
e asm.arch=x86.udis
e analysis.arch=x86.udis
e scr.color=false
e scr.wheel = false
e scr.wheel=false
aa
axt @ str.Password:
EOF
@ -112,10 +112,10 @@ NAME="axf string ref udis86"
BROKEN=1
FILE=bins/elf/ioli/crackme0x03
CMDS=<<EOF
e asm.arch = x86.udis
e analysis.arch = x86.udis
e scr.color = false
e scr.wheel = false
e asm.arch=x86.udis
e analysis.arch=x86.udis
e scr.color=false
e scr.wheel=false
aa
axt str.Sdvvzrug_RN
axf 0x804848a

View file

@ -343,7 +343,7 @@ NAME=pdn 10
FILE=bins/elf/analysis/x86-helloworld-gcc
CMDS=<<EOF
e asm.bytes=true
e scr.color = 0
e scr.color=0
pDi 10
EOF
EXPECT=<<EOF

View file

@ -61,7 +61,7 @@ RUN
NAME=load 32 bits omf
FILE=bins/omf/hello_world32
CMDS=e asm.bytes = true; iI~bits;
CMDS=e asm.bytes=true; iI~bits;
EXPECT=<<EOF
bits 32
EOF
@ -103,7 +103,7 @@ RUN
NAME=virtual address 32 bits omf
FILE=bins/omf/hello_world32
CMDS=e asm.bytes = true; pid 1~mov[1]
CMDS=e asm.bytes=true; pid 1~mov[1]
EXPECT=<<EOF
ba0e000000
EOF

View file

@ -8,11 +8,11 @@ RUN
NAME=Relocs
FILE=bins/pe/base.exe
CMDS=<<EOF
e asm.functions = false
e asm.comments = false
e asm.bytes = false
e asm.offset = false
e asm.calls = false
e asm.functions=false
e asm.comments=false
e asm.bytes=false
e asm.offset=false
e asm.calls=false
pd 1 @ 0x0040128d
EOF
EXPECT=<<EOF

View file

@ -8,11 +8,11 @@ RUN
NAME=PE: FSG 2.0- pi 1
FILE=bins/pe/base_FSG.exe
CMDS=<<EOF
e asm.functions = false
e asm.comments = false
e asm.bytes = false
e asm.offset = false
e asm.calls = false
e asm.functions=false
e asm.comments=false
e asm.bytes=false
e asm.offset=false
e asm.calls=false
s entry0
pi 1
EOF

View file

@ -26,8 +26,8 @@ RUN
NAME=pe relocs [r2]
FILE=bins/pe/base.exe
CMDS=<<EOF
e asm.functions = false
e asm.flags = false
e asm.functions=false
e asm.flags=false
pd 1@0x401820~!imp
EOF
EXPECT=<<EOF

View file

@ -93,7 +93,7 @@ RUN
NAME=PE: corkami cm01.exe - section refs 1
FILE=bins/pe/cm01.exe
CMDS=<<EOF
e analysis.strings = true
e analysis.strings=true
aaa
pi 2 @ 0x004010b7
EOF
@ -106,7 +106,7 @@ RUN
NAME=PE: corkami cm01.exe - section refs 2
FILE=bins/pe/cm01.exe
CMDS=<<EOF
e analysis.strings = true
e analysis.strings=true
aaa
pi 2 @ 0x0040136b
EOF
@ -119,7 +119,7 @@ RUN
NAME=PE: corkami cm01.exe - section refs 3
FILE=bins/pe/cm01.exe
CMDS=<<EOF
e analysis.strings = true
e analysis.strings=true
aaa
pi 2 @ 0x004013af
EOF
@ -132,7 +132,7 @@ RUN
NAME=PE: corkami cm01.exe - section refs 4
FILE=bins/pe/cm01.exe
CMDS=<<EOF
e analysis.strings = true
e analysis.strings=true
aaa
pi 2 @ 0x0040134f
EOF

View file

@ -1,12 +1,12 @@
NAME=io.cache: minimal usage
FILE=malloc://1024
CMDS=<<EOF
e io.cache=1
e io.cache=true
wx 010203
p8 3
wcr
# Test write works after disabling the cache.
e io.cache=0
e io.cache=false
wx 040506
p8 3
EOF
@ -19,7 +19,7 @@ RUN
NAME=io.cache: Writing after end of file
FILE=bins/other/0x3
CMDS=<<EOF
e io.cache=1
e io.cache=true
w hello
x 5
EOF
@ -38,7 +38,7 @@ p8
w no-cache
p8
e io.cache=1
e io.cache=true
w cache-mode
p8
@ -78,7 +78,7 @@ b 15
p8
w no-cache
p8
e io.cache=1
e io.cache=true
w cache-mode
p8
# Reseting cache restores original data.
@ -113,7 +113,7 @@ RUN
NAME=io.cache: Reading behind cache written area
FILE=malloc://32
CMDS=<<EOF
e io.cache = true
e io.cache=true
px 32
s +1
px 31
@ -142,7 +142,7 @@ RUN
NAME=io.cache: cache write, cache undo
FILE=malloc://1024
CMDS=<<EOF
e io.cache=1
e io.cache=true
w a
w b @ 1
p8 2
@ -158,7 +158,7 @@ RUN
NAME=io.cache: cache reset
FILE=malloc://32
CMDS=<<EOF
e io.cache=1
e io.cache=true
wx 90
wcr
wx 90