Commits


Add missing include


Added global list *lst for the mach-o header


- Prevented dermob from working with Java files (0xcafebabe fales positives) - Reformat the output for better readability


Added new -s option to display __TEXT,__cstring section


Added a new option -d to display the __data, __DATA section


Reworked the complete structure of dermob: - Nearly all functions for different parts of the header return a pointer to a struct. - Complete new set of display functions, which uses the new structs - Various functions in dermob.c are way more simplyfied. Tested on x86 and PPC. Code should be stable, but watch out for bugs.


Removed all Mac OS X dependend code. Replaced NXGetLocalArchInfo(3) with two sysctl querys for HW_MACHINE and HW_BYTEORDER. Added includes for a new header file with most, but not all(!), structs and defines for the header.


Replace NXSwapInt32 with own function function to be more plattform indipendent.


- Added new option -x: Displays a hexdump of the complete binary. Simple, yet powerfull - Sorted all options in usage() alphabetical


Fixed an offset related bug. The __text section starts at VM offset, which is relative to the beginning of the mach-o header. If we parse an universal binary, we have to skip the fat header to calculate the correct offset of the __text section.


Added ints for __data section New Makefile version


Added all functions as exports


Add some comments


Added a few functions and restructured the code to be machine indipendent. - get_cpu_information() returns the current CPU type (eg x86, ppc) - get_bo_information() returns the machine byte order - swapi() checks if the binary is big endian and the machine is little endian (or vice versa) and swaps the bits if necessarry


- Changed default output to items style and display dynamic libaries (if any)


Changed the default output to a more file(1)-like output.


- Added new file util.c - Moved misc functions to util.c - Adjust Makefile


Style fixes


Initial commit of dermob, a mach-o binary analyzer and hopefully sometimes a dynamic binary translator and disassembler.