flasher: parse ELF to check version_information and do ELF checks before looking for a proxmark3
This commit is contained in:
1 parent
359ca554c0
commit
0ed0735709
4 files changed
+147
-16
No files matched your search
+14
-1
@@ -48,9 +48,22 @@ typedef struct {
|
||||
uint16_t e_phnum;
|
||||
uint16_t e_shentsize;
|
||||
uint16_t e_shnum;
|
||||
uint16_t e_shtrndx;
|
||||
uint16_t e_shstrndx;
|
||||
} PACKED Elf32_Ehdr_t;
|
||||
|
||||
typedef struct {
|
||||
uint32_t sh_name; // Section name, index in string tbl
|
||||
uint32_t sh_type; // Type of section
|
||||
uint32_t sh_flags; // Miscellaneous section attributes
|
||||
uint32_t sh_addr; // Section virtual addr at execution
|
||||
uint32_t sh_offset; // Section file offset
|
||||
uint32_t sh_size; // Size of section in bytes
|
||||
uint32_t sh_link; // Index of another section
|
||||
uint32_t sh_info; // Additional section information
|
||||
uint32_t sh_addralign; // Section alignment
|
||||
uint32_t sh_entsize; // Entry size if section holds table
|
||||
} PACKED Elf32_Shdr_t;
|
||||
|
||||
#define PT_NULL 0
|
||||
#define PT_LOAD 1
|
||||
#define PT_DYNAMIC 2
|
||||
|
||||
Reference in new issue
Block a user