Sections(分节)
The concept of sections is tied to the information extracted from the binary. We can display this information by using the i
command.
Displaying information about sections:
As you may know, binaries have sections and maps. The sections define the contents of a portion of the file that can be mapped in memory (or not). What is mapped is defined by the segments.
Before the IO refactoring done by condret, the S
command was used to manage what we now call maps. Currently the S
command is deprecated because iS
and om
should be enough.
Firmware images, bootloaders and binary files usually place various sections of a binary at different addresses in memory. To represent this behavior, radare offers the iS
. Use iS?
to get the help message. To list all created sections use iS
(or iSj
to get the json format). The iS=
will show the region bars in ascii-art.
You can create a new mapping using the om
subcommand as follows:
For Example:
You can also use om
command to view information about mapped sections:
Use om?
to get all the possible subcommands. To list all the defined maps use om
(or omj
to get the json format or om*
to get the r2 commands format). To get the ascii art view use om=
.
It is also possible to delete the mapped section using the om-mapid
command.
For Example:
最后更新于
这有帮助吗?