<commit_before>prelink_unpack
========

`prelink_unpack` is a command-line tool for unpacking the prelinked kernel used by [iOS](http://www.apple.com/iphone/ios4/). It is written in Objective-C and uses the Foundation framework. 

It returns both the unpacked `mach_kernel` Mach-O object and the unpacked kernel extensions. Example usage:

    $ ./prelink_unpack kernelcache.dump 
    $ ls -R
    kernelcache.dump
    kexts/
    mach_kernel
    prelink_unpack

    ./kexts:
    AppleAMC_r1.kext/
    AppleARM11xxProfile.kext/
    AppleARMIISAudio.kext/<commit_msg>Updated README to reflect latest change.<commit_after>prelink_unpack
========

`prelink_unpack` is a command-line tool for unpacking the prelinked kernel used by [iOS](http://www.apple.com/iphone/ios4/). It is written in Objective-C and uses the Foundation framework. 

It returns both the unpacked `mach_kernel` Mach-O object and the unpacked kernel extensions. Example usage:

    $ ./prelink_unpack kernelcache.dump 
    AppleS5L8900XStart: 0x806ae4c1
    AppleS5L8900XStop: 0x806ae4f5

    AppleHIDKeyboardStart: 0x806c03e9
    AppleHIDKeyboardStop: 0x806c041d

    AppleDiskImagesKernelBackedStart: 0x8035ee2d
    AppleDiskImagesKernelBackedStop: 0x8035ee61

    IOCameraFamilyStart: 0x80555919
    IOCameraFamilyStop: 0x8055594d

    ...

    IOUSBDeviceFamilyStart: 0x802cc425
    IOUSBDeviceFamilyStop: 0x802cc459

    $ ls -R
    kernelcache.dump
    kexts/
    mach_kernel
    prelink_unpack

    ./kexts:
    AppleAMC_r1.kext/
    AppleARM11xxProfile.kext/
    AppleARMIISAudio.kext/
{'fraction_non_alphanumeric': 0.07445442875481387, 'fraction_numerical': 0.05648267008985879, 'mean_word_length': 3.6816816816816815, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2432582', 'n_tokens_mistral': 594, 'n_tokens_neox': 545, 'n_words': 126}