mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-28 07:30:33 +00:00
132 lines
1.7 KiB
Plaintext
132 lines
1.7 KiB
Plaintext
NAME=pxw cfg.bigendian=true (elf64)
|
|
FILE=../bins/elf/analysis/hello-linux-x86_64
|
|
EXPECT=<<EOF
|
|
0x00400410 0x31ed4989 0xd15e4889 0xe24883e4 0xf0505449 1.I..^H..H...PTI
|
|
EOF
|
|
CMDS=<<EOF
|
|
e cfg.bigendian=true
|
|
pxw 16
|
|
EOF
|
|
RUN
|
|
|
|
NAME=pxw cfg.bigendian=false (elf64)
|
|
FILE=../bins/elf/analysis/hello-linux-x86_64
|
|
EXPECT=<<EOF
|
|
0x00400410 0x8949ed31 0x89485ed1 0xe48348e2 0x495450f0 1.I..^H..H...PTI
|
|
EOF
|
|
CMDS=<<EOF
|
|
e cfg.bigendian=false
|
|
pxw 16
|
|
EOF
|
|
RUN
|
|
|
|
NAME=pxw cfg.bigendian=false (pe32)
|
|
FILE=../bins/pe/hello-mingw32
|
|
EXPECT=<<EOF
|
|
0x00401280 0x83e58955 0x04c708ec 0x00000124 0xc815ff00 U.......$.......
|
|
EOF
|
|
CMDS=<<EOF
|
|
e cfg.bigendian=false
|
|
pxw 16
|
|
EOF
|
|
RUN
|
|
|
|
NAME=pxw cfg.bigendian=true (pe32)
|
|
FILE=../bins/pe/hello-mingw32
|
|
EXPECT=<<EOF
|
|
0x00401280 0x5589e583 0xec08c704 0x24010000 0x00ff15c8 U.......$.......
|
|
EOF
|
|
CMDS=<<EOF
|
|
e cfg.bigendian=true
|
|
pxw 16
|
|
EOF
|
|
RUN
|
|
|
|
NAME=pxw offsets 16
|
|
FILE=../bins/pe/hello-mingw32
|
|
EXPECT=<<EOF
|
|
0x00401280
|
|
0x00401290
|
|
EOF
|
|
CMDS=<<EOF
|
|
e hex.cols=16
|
|
pxw 32~[0]
|
|
EOF
|
|
RUN
|
|
|
|
NAME=pxw offsets 12
|
|
FILE=../bins/pe/hello-mingw32
|
|
EXPECT=<<EOF
|
|
0x00401280
|
|
0x0040128c
|
|
0x00401298
|
|
EOF
|
|
CMDS=<<EOF
|
|
e hex.cols=12
|
|
pxw 32~[0]
|
|
EOF
|
|
RUN
|
|
|
|
NAME=pxw offsets 10
|
|
FILE=../bins/pe/hello-mingw32
|
|
EXPECT=<<EOF
|
|
0x00401280
|
|
0x0040128a
|
|
0x00401294
|
|
0x0040129e
|
|
EOF
|
|
CMDS=<<EOF
|
|
e hex.cols=10
|
|
pxw 32~[0]
|
|
EOF
|
|
RUN
|
|
|
|
NAME=pxw offsets
|
|
FILE=../bins/pe/hello-mingw32
|
|
EXPECT=<<EOF
|
|
0x00401280
|
|
0x00401288
|
|
0x00401290
|
|
0x00401298
|
|
EOF
|
|
CMDS=<<EOF
|
|
e hex.cols=8
|
|
pxw 32~[0]
|
|
EOF
|
|
RUN
|
|
|
|
NAME=pxw bytes < 4
|
|
FILE=../bins/pe/hello-mingw32
|
|
EXPECT=<<EOF
|
|
EOF
|
|
CMDS=<<EOF
|
|
e hex.cols=8
|
|
pxw 2~[1]
|
|
EOF
|
|
RUN
|
|
|
|
NAME=pxw bytes between 4 and 8
|
|
FILE=../bins/pe/hello-mingw32
|
|
EXPECT=<<EOF
|
|
0x83e58955
|
|
U...
|
|
EOF
|
|
CMDS=<<EOF
|
|
e hex.cols=8
|
|
pxw 7~[1]
|
|
pxw 7~[2]
|
|
EOF
|
|
RUN
|
|
|
|
NAME=pxq foo-bar
|
|
FILE=-
|
|
EXPECT=<<EOF
|
|
1
|
|
EOF
|
|
CMDS=<<EOF
|
|
f foo=10
|
|
f bar=2
|
|
pxq foo-bar~?
|
|
EOF
|
|
RUN
|