Commits


Update email address


Add support for 64bit binaries


- Removed all the mprintf() stuff and moved it to util.c


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


Accidently hard-coded the size of the line buffer in display_buffer(). Replaced with sizeof(line).


Fill the line buffer in display_buffer() beforce actually using it. This should prevent garbage at the end of the line. This bug only showed up at x86 FreeBSD and PPC32 Mac OS X. PPC64 Mac OS X and x86 Mac OS X do not displayed garbage.


Added new -s option to display __TEXT,__cstring 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 spaghetti code from a wierd code session yesterday :)


Changed NXLittleEndian to our own constant LE.


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.


- Added content to the README - Changed my email addresses - infiniteVOID rocks


Commented a debug line


Extend the line array in display_buffer() and increment the counter after storing the characters in line to avoid garbage at the end of the string.


- 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.


- Fixed a typo - Fixed a bug (line array was decremented)


Splitted up dermob.c. Work done by gh0st added experminental __data read support


Added a hexdump-like display of the __text section


Add some comments


Fixed an endianess bug in the default output


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)


Display dynamic library names correct


Display LC_TWOLEVEL_HINTS