rizin/test/db/formats/pe/96emptysections
Riccardo Schirone 1c78aee3cd
Convert i commands to rzshell (#1238)
* Start to create some RzBinObject specific API

Adding some unit tests

Fix for new relocs storage system

Fix test_bin unit test for oob-write

* Add `iA` command to newshell

Add `ie`/`iee` commands

Add support for `is`/`iE` commands

Add support for `ii` command

Add support for `il` command

Add support for `iM` command

Add support for `ir` command

Add support for `iS`/`iSS` commands

Add support for `iz` command

Add support for `i` command

Add support for `ic` command

Add support for `iC` command

Add support for `ih` and `iHH` commands

Add support for `iI` command

Add support for `iL` command

Fix descriptions of commands already converted

Add support for `idp` commands

Add support for `iD` command

Add support for `im` commands

Add support for `iR` command

Add support for `it` command

Add support for `iV` commands

Add support for `iw` command

Add support for `ix` commands

Add support for `iZ` command

Add support for `ik` command

Add support for `is.` command

Add support for `iS.` command

Reduce arguments in print_arch

Few Doxygen and ownership annotations

Add support for `iS=` command

Add support for `izz` and `izzz` commands

Add support for `ib` command

Add support for `ic*` command

Put section flags as the last field of the table

* Proper language detection.

* Rewritten blang.c

* implemented `icc/icm/icf <class name>`

* ignore blocks when printing langs

Remove num from `iA` output

* Fixed flags on java and added class column

Add support for `ia` commands

Fix `iCj` command

* RzBin: add rz_bin_object_sections_mapping_list API

* Fix rz-bin for new API

Remove unused va var in rz-bin.c

Fix `iA`/`-A` output

* implemented classdump_cpp

* Support namespaces

Use `icc`, `icl` does not exist anymore

Update output of broken tests for `icc`

Add `rz_return_*()` asserts in new `*_print()` functions

* Provide rz_core_bin_print API

* Select which parts to print also based on the mode

* Return bool from all `rz_core_bin_*_print()` API

* Use RzBinFile in new `rz_core_bin_*_print()` API

* Restore `dbg_dmi` test

* Remove oldshell handlers for `i` commands

* Remove `ieq` call in rizin, not needed

* Allow NULL `bf` in `rz_cmd_info_handler()`

* Re-add support for RZ_BIN_PREFIX for symbols/sections/segments/imports/relocs

* Move `ib` command to `obR`

* Show 'N/A' in `i` command when info are not available

* Assert on bf->o, just to be sure

* Make error messages clearer in `idp` commands

Co-authored-by: wargio <wargio@libero.it>
Co-authored-by: Giovanni <561184+wargio@users.noreply.github.com>
2021-09-04 22:37:05 +08:00

139 lines
6.4 KiB
Text

NAME=PE: corkami 96emptysections.exe - open and analyse
FILE=bins/pe/96emptysections.exe
ARGS=-A
CMDS=q!
EXPECT=<<EOF
EOF
RUN
NAME=PE: corkami 96emptysections.exe - entrypoint
FILE=bins/pe/96emptysections.exe
CMDS=s
EXPECT=<<EOF
0x402000
EOF
RUN
NAME=PE: corkami 96emptysections.exe - entrypoint pif
BROKEN=1
FILE=bins/pe/96emptysections.exe
CMDS=<<EOF
aaa
pif @ entry0
EOF
EXPECT=<<EOF
push 0x402028
call sub.msvcrt.dll_printf_18
add esp, 4
push 0
call sub.kernel32.dll_ExitProcess_1e
EOF
RUN
NAME=PE: corkami 96workingsections.exe - sections list
FILE=bins/pe/96emptysections.exe
ARGS=-n
CMDS=!rz-bin -pS bins/pe/96emptysections.exe
EXPECT=<<EOF
[Sections]
paddr size vaddr vsize align perm name type flags
-----------------------------------------------------------------
0x00001200 0x200 0x00001200 0x1000 0x0 -rwx sect_0
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_1
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_2
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_3
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_4
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_5
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_6
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_7
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_8
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_9
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_10
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_11
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_12
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_13
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_14
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_15
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_16
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_17
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_18
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_19
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_20
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_21
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_22
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_23
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_24
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_25
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_26
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_27
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_28
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_29
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_30
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_31
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_32
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_33
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_34
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_35
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_36
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_37
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_38
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_39
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_40
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_41
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_42
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_43
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_44
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_45
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_46
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_47
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_48
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_49
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_50
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_51
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_52
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_53
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_54
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_55
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_56
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_57
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_58
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_59
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_60
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_61
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_62
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_63
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_64
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_65
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_66
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_67
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_68
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_69
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_70
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_71
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_72
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_73
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_74
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_75
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_76
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_77
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_78
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_79
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_80
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_81
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_82
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_83
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_84
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_85
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_86
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_87
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_88
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_89
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_90
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_91
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_92
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_93
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_94
0x00000000 0x0 0x00000000 0x1000 0x0 ---- sect_95
EOF
RUN