mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 21:29:49 +00:00
68 lines
977 B
Plaintext
68 lines
977 B
Plaintext
NAME=axtj nofunc noflag (#11667)
|
|
FILE=bins/elf/analysis/x86-helloworld-gcc
|
|
CMDS=<<EOF
|
|
aaa
|
|
s 0x804969c
|
|
ax~0x804969c
|
|
axtj~{}
|
|
EOF
|
|
EXPECT=<<EOF
|
|
section..plt+6 0x80482c6 > CODE:--x > 0x804969c section..got.plt+8
|
|
[
|
|
{
|
|
"from": 134513350,
|
|
"type": "CODE",
|
|
"perm": "--x",
|
|
"opcode": "jmp dword [0x804969c]",
|
|
"name": "section..plt+6",
|
|
"refname": "section..got.plt+8"
|
|
}
|
|
]
|
|
EOF
|
|
RUN
|
|
|
|
NAME=axf C44
|
|
FILE=-
|
|
CMDS=<<EOF
|
|
e asm.arch=x86
|
|
e asm.bits=64
|
|
s 0
|
|
ax 0x42
|
|
ax 0x43
|
|
axC 0x44
|
|
f someflag @ 0x43
|
|
axf
|
|
EOF
|
|
EXPECT=<<EOF
|
|
NULL 0x42 add byte [rax], al
|
|
NULL 0x43 someflag
|
|
CALL 0x44 add byte [rax], al
|
|
EOF
|
|
RUN
|
|
|
|
NAME=axlj strencoding
|
|
FILE=bins/elf/analysis/hello-utf-16
|
|
CMDS=<<EOF
|
|
aa
|
|
e cfg.json.str = base64
|
|
s sym.imp.wprintf
|
|
axlj~{[1].name}
|
|
EOF
|
|
EXPECT=<<EOF
|
|
c2VjdGlvbi4uaW5pdCsxNg==
|
|
EOF
|
|
RUN
|
|
|
|
NAME=axlj numencoding
|
|
FILE=bins/elf/analysis/hello-utf-16
|
|
CMDS=<<EOF
|
|
aa
|
|
e cfg.json.num = hex
|
|
s sym.imp.wprintf
|
|
axlj~{[0].addr}
|
|
EOF
|
|
EXPECT=<<EOF
|
|
0x600ff8
|
|
EOF
|
|
RUN
|