library/src/ELF/ELF32/BP-ELFExtraction.cc
// Prints out all values in a ELF32 lookup table
Prints out all values in a ELF32 lookup table
Prints out all values in a ELF32 lookup table
int ELF32_PrintAll(P_ELF_32BIT_LOOKUP_TABLE elfLookupTable){
	if(elfLookupTable == NULL)
		return ERR_FAILURE;
	if(elfLookupTable->header == NULL)
		return ERR_FAILURE;
	ELF32_PrintHeader(elfLookupTable->header);
	if(elfLookupTable->sections != NULL)
		ELF32_PrintSectionHeaders(elfLookupTable->sections->first);
	else
		printf("\n [+] Found No Section Headers");
	if(elfLookupTable->sections != NULL)
		ELF32_PrintSections(elfLookupTable->sections->first);
	else
		printf("\n [+] Found No Sections");
	if(elfLookupTable->symTab != NULL)
		ELF32_PrintDynSymbolTable(elfLookupTable->symTab);
	else
		printf("\n [+] No Dynamic Symbol Table Found");
	if(elfLookupTable->relocs != NULL)
		ELF32_PrintRelocations(elfLookupTable->relocs);
	else
		printf("\n [+] No Relocations Found");
	if(elfLookupTable->pHeaders != NULL)
		ELF32_PrintProgramHeaders(elfLookupTable->pHeaders);
	else
		printf("\n [+] No Program Headers Found");
	if(elfLookupTable->dynamics != NULL)
		ELF32_PrintDynamics(elfLookupTable->dynamics);
	else
		printf("\n [+] No dynamics found.");
	return ERR_SUCCESS;
}
int ELF32_PrintAll ( P_ELF_32BIT_LOOKUP_TABLE elfLookupTable ) { if ( elfLookupTable == NULL ) return ERR_FAILURE ; if ( elfLookupTable -> header == NULL ) return ERR_FAILURE ; ELF32_PrintHeader ( elfLookupTable -> header ) ; if ( elfLookupTable -> sections != NULL ) ELF32_PrintSectionHeaders ( elfLookupTable -> sections -> first ) ; else printf ( " \n " ) ; if ( elfLookupTable -> sections != NULL ) ELF32_PrintSections ( elfLookupTable -> sections -> first ) ; else printf ( " \n " ) ; if ( elfLookupTable -> symTab != NULL ) ELF32_PrintDynSymbolTable ( elfLookupTable -> symTab ) ; else printf ( " \n " ) ; if ( elfLookupTable -> relocs != NULL ) ELF32_PrintRelocations ( elfLookupTable -> relocs ) ; else printf ( " \n " ) ; if ( elfLookupTable -> pHeaders != NULL ) ELF32_PrintProgramHeaders ( elfLookupTable -> pHeaders ) ; else printf ( " \n " ) ; if ( elfLookupTable -> dynamics != NULL ) ELF32_PrintDynamics ( elfLookupTable -> dynamics ) ; else printf ( " \n " ) ; return ERR_SUCCESS ; }
Prints out all values in a ELF32 lookup table
Prints out all values in a ELF32 lookup table