tech:notes_fichiers_binaire_executable_exe_elf
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| tech:notes_fichiers_binaire_executable_exe_elf [2026/04/23 12:12] – Jean-Baptiste | tech:notes_fichiers_binaire_executable_exe_elf [2026/04/23 12:13] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | # Notes fichiers - binaire executable exe elf | ||
| + | |||
| + | Voir : | ||
| + | * scanelf | ||
| + | |||
| + | Voir aussi : | ||
| + | * [[Prometheus windows_export i386 compilation go lang]] | ||
| + | |||
| + | ~~~bash | ||
| + | file exefile | ||
| + | strings exefile | ||
| + | objdump -s -j .rodata exefile | ||
| + | ldd exefile | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | readelf -x .rodata hello_world.o | ||
| + | ~~~ | ||
| + | |||
| + | | | ||
| + | | - | ----------------------------------------------------------------------------------------------------------------- | | ||
| + | |-h | Displays the ELF header, which contains key information about the file’s structure. | ||
| + | |-S | Lists all the sections in the ELF file, showing details about each section’s address, size, type, and attributes. | | ||
| + | |-l | Displays the program headers, which describe the segments used at runtime. | ||
| + | |-s | Shows the symbol table, including symbols defined and used in the ELF file. | | ||
| + | |-r | Displays the relocation sections, showing how the binary modifies itself at runtime. | ||
| + | |-d | Displays the dynamic section, which contains information about dynamic linking. | ||
| + | |-n | Displays core notes, which include metadata such as the build ID. | | ||
| + | |||
| + | |||
| + | ## Connaître la version d'un exe | ||
| + | |||
| + | ~~~bash | ||
| + | $ exiftool -FileVersion -ProductVersion MicrosoftEdgeSetup.exe | ||
| + | File Version | ||
| + | Product Version | ||
| + | ~~~ | ||
| + | |||
| + | ou | ||
| + | ~~~bash | ||
| + | 7z l MicrosoftEdgeSetup.exe | ||
| + | ~~~ | ||
| + | |||
| + | Ou | ||
| + | ~~~bash | ||
| + | wrestool --extract --raw --type=version MicrosoftEdgeSetup.exe | ||
| + | ~~~ | ||
| + | |||
| + | ou | ||
| + | sudo apt-get install pev | ||
| + | |||
| + | Voir aussi : readpe | ||
| + | ~~~ | ||
| + | $ peres -v MicrosoftEdgeSetup.exe | ||
| + | DEBUG: Length=1, String=B | ||
| + | DEBUG: Length=12, String=GOOGLEUPDATE | ||
| + | File Version: | ||
| + | Product Version: | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ### Connaître la version d'un exe | ||
| + | ~~~bash | ||
| + | file MicrosoftEdgeEnterpriseX64.msi | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ### Avoir des infos sur un exe | ||
| + | |||
| + | Voir **Connaître la version d'un exe** | ||
| + | |||
| + | Lister les sections | ||
| + | ~~~bash | ||
| + | objdump -h MicrosoftEdgeSetup.exe | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | Consulter une section spécifique | ||
| + | ~~~bash | ||
| + | objdump -s --section .rdata MicrosoftEdgeSetup.exe | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Autres | ||
| + | |||
| + | ~~~bash | ||
| + | objdump -d / | ||
| + | ~~~ | ||
| + | |||
