Mostrando entradas con la etiqueta binario. Mostrar todas las entradas
Mostrando entradas con la etiqueta binario. Mostrar todas las entradas

sábado, 17 de julio de 2010

Mostrar simbolos de un binario

Para conocer que simbolos esta usando un binario puede hacer uso de la aplicacion nm que es parte del paquete binutils.
Para mas informacion consulte su manual --> man nm
Uso:
nm binariofile
Muestra una salida como se indica a continuacion:

0807a370 t add2hotlist
0807b0f0 T add2hotlist_cmd
08085f60 t add2panelize
080d98b0 t add_a_service
080e19f0 T add_char_string
080e1910 t add_dos_char
08097ca0 T add_hook
080798c0 t add_name_to_list
0807dc30 T add_select_channel
0806a4c0 T add_widget
0807a920 t add_widgets_i18n
081262e0 b addr_buf.9806
0805d530 t advanced_chown_callback
08126e90 B alarm_colors
080f8e60 r all_filters
08129a48 B allones_ip
08118d44 B altered_hex_mode
08118d48 B altered_magic_flag
08118d4c B altered_nroff_flag
08113750 B alternate_plus_minus
081117b8 b and_mask
080f679f r app_text
08125424 B append_log
0807d130 T application_keypad_mode
.........
.........

Mostrar informacion de binarios ELF

Si necesita conocer informacion de algun binario ELF , puede usar la aplicacion readelf.
Para mas informacion lea su manual --> man readelf
Uso:
readelf -a binariofile
Muestra una salida como esta:


ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: Intel 80386
Version: 0x1
Entry point address: 0x805cc00
Start of program headers: 52 (bytes into file)
Start of section headers: 824720 (bytes into file)
Flags: 0x0
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 10
Size of section headers: 40 (bytes)
Number of section headers: 31
Section header string table index: 28

Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf Al
[ 0] NULL 00000000 000000 000000 00 0 0 0
[ 1] .interp PROGBITS 08048174 000174 000013 00 A 0 0 1
[ 2] .note.ABI-tag NOTE 08048188 000188 000020 00 A 0 0 4
[ 3] .note.SuSE NOTE 080481a8 0001a8 000018 00 A 0 0 4
...................
....................