From 37879e25e0eef9857d0e8986909c064187ea0975 Mon Sep 17 00:00:00 2001 From: Tanner Bennett Date: Thu, 13 Feb 2020 15:45:08 -0600 Subject: [PATCH] =?UTF-8?q?Add=20fishhook,=20disable=20OS=20log=20?= =?UTF-8?q?=E2=80=94=C2=A0close=20#372?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit iOS 10 and its associated SDK deprecated *ASL and replaced it with *os_log. This change is widely considered unfavorable and made it extremely tedious for FLEX to intercept log messages reliably. @Ram4096 has brought to my attention that the os_log functionality is actually just a shim which is conditionally enabled based on what SDK version your binary links with. With a little reverse engineering, I was able to hook the function that tells `NSLog` (well, `CFLogv`) whether os_log should be used or not. This commit uses fishhook to hook `os_log_shim_enabled` to always return `NO` so that the old ASL library is used instead. Prior to this commit we had code in place to conditionally intercept messages from os_log or ASL based on the iOS version. These checks are not semantically correct since ASL would still be used on iOS 10+ if the binary was built with the iOS 9 SDK. For now, this doesn't matter going forward since we are going to always use ASL, but it might be worth updating the check to instead check for the linked SDK version instead of the OS version. - *ASL: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/asl.3.html - *os_log: https://developer.apple.com/documentation/os/logging?language=objc --- .../SystemLog/FLEXASLLogController.m | 2 +- .../SystemLog/FLEXSystemLogViewController.m | 17 +- Classes/Utility/Runtime/fishhook.c | 290 ++++++++++++++++++ Classes/Utility/Runtime/fishhook.h | 77 +++++ FLEX.xcodeproj/project.pbxproj | 40 ++- 5 files changed, 408 insertions(+), 18 deletions(-) create mode 100644 Classes/Utility/Runtime/fishhook.c create mode 100644 Classes/Utility/Runtime/fishhook.h diff --git a/Classes/GlobalStateExplorers/SystemLog/FLEXASLLogController.m b/Classes/GlobalStateExplorers/SystemLog/FLEXASLLogController.m index a612e39ad6..897b111c9b 100644 --- a/Classes/GlobalStateExplorers/SystemLog/FLEXASLLogController.m +++ b/Classes/GlobalStateExplorers/SystemLog/FLEXASLLogController.m @@ -13,7 +13,7 @@ #if TARGET_IPHONE_SIMULATOR #define updateInterval 5.0 #else - #define updateInterval 1.0 + #define updateInterval 0.5 #endif @interface FLEXASLLogController () diff --git a/Classes/GlobalStateExplorers/SystemLog/FLEXSystemLogViewController.m b/Classes/GlobalStateExplorers/SystemLog/FLEXSystemLogViewController.m index 93525a1ccc..be51337336 100644 --- a/Classes/GlobalStateExplorers/SystemLog/FLEXSystemLogViewController.m +++ b/Classes/GlobalStateExplorers/SystemLog/FLEXSystemLogViewController.m @@ -12,6 +12,7 @@ #import "FLEXASLLogController.h" #import "FLEXOSLogController.h" #import "FLEXSystemLogCell.h" +#import "fishhook.h" @interface FLEXSystemLogViewController () @@ -21,8 +22,22 @@ @interface FLEXSystemLogViewController () @end +static BOOL FLEXDidHookNSLog = NO; +void (*orig_os_log_shim_enabled)() = nil; +BOOL my_os_log_shim_enabled() { + return NO; +} + @implementation FLEXSystemLogViewController ++ (void)load { + FLEXDidHookNSLog = rebind_symbols((struct rebinding[1]) { + "os_log_shim_enabled", + (void *)my_os_log_shim_enabled, + (void **)&orig_os_log_shim_enabled + }, 1) == 0; +} + - (id)init { return [super initWithStyle:UITableViewStylePlain]; } @@ -39,7 +54,7 @@ - (void)viewDidLoad { }; _logMessages = [NSMutableArray array]; - if (FLEXOSLogAvailable()) { + if (FLEXOSLogAvailable() && !FLEXDidHookNSLog) { _logController = [FLEXOSLogController withUpdateHandler:logHandler]; } else { _logController = [FLEXASLLogController withUpdateHandler:logHandler]; diff --git a/Classes/Utility/Runtime/fishhook.c b/Classes/Utility/Runtime/fishhook.c new file mode 100644 index 0000000000..a35b7a5bca --- /dev/null +++ b/Classes/Utility/Runtime/fishhook.c @@ -0,0 +1,290 @@ +// Copyright (c) 2013, Facebook, Inc. +// All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// * Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// * Neither the name Facebook nor the names of its contributors may be used to +// endorse or promote products derived from this software without specific +// prior written permission. +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +#include "fishhook.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifdef __LP64__ +typedef struct mach_header_64 mach_header_t; +typedef struct segment_command_64 segment_command_t; +typedef struct section_64 section_t; +typedef struct nlist_64 nlist_t; +#define LC_SEGMENT_ARCH_DEPENDENT LC_SEGMENT_64 +#else +typedef struct mach_header mach_header_t; +typedef struct segment_command segment_command_t; +typedef struct section section_t; +typedef struct nlist nlist_t; +#define LC_SEGMENT_ARCH_DEPENDENT LC_SEGMENT +#endif + +#ifndef SEG_DATA_CONST +#define SEG_DATA_CONST "__DATA_CONST" +#endif + +struct rebindings_entry { + struct rebinding *rebindings; + size_t rebindings_nel; + struct rebindings_entry *next; +}; + +static struct rebindings_entry *_rebindings_head; + +/// @return 0 on success +static int prepend_rebindings(struct rebindings_entry **rebindings_head, + struct rebinding rebindings[], + size_t nel) { + struct rebindings_entry *new_entry = (struct rebindings_entry *) malloc(sizeof(struct rebindings_entry)); + if (!new_entry) { + return -1; + } + + new_entry->rebindings = (struct rebinding *) malloc(sizeof(struct rebinding) * nel); + if (!new_entry->rebindings) { + free(new_entry); + return -1; + } + + memcpy(new_entry->rebindings, rebindings, sizeof(struct rebinding) * nel); + new_entry->rebindings_nel = nel; + new_entry->next = *rebindings_head; + *rebindings_head = new_entry; + + return 0; +} + +static vm_prot_t get_protection(void *sectionStart) { + mach_port_t task = mach_task_self(); + vm_size_t size = 0; + vm_address_t address = (vm_address_t)sectionStart; + memory_object_name_t object; +#if __LP64__ + mach_msg_type_number_t count = VM_REGION_BASIC_INFO_COUNT_64; + vm_region_basic_info_data_64_t info; + kern_return_t info_ret = vm_region_64( + task, &address, &size, VM_REGION_BASIC_INFO_64, + (vm_region_info_64_t)&info, &count, &object + ); +#else + mach_msg_type_number_t count = VM_REGION_BASIC_INFO_COUNT; + vm_region_basic_info_data_t info; + kern_return_t info_ret = vm_region( + task, &address, &size, VM_REGION_BASIC_INFO, (vm_region_info_t)&info, &count, &object + ); +#endif + if (info_ret == KERN_SUCCESS) { + return info.protection; + } else { + return VM_PROT_READ; + } +} +static void perform_rebinding_with_section(struct rebindings_entry *rebindings, + section_t *section, + intptr_t slide, + nlist_t *symtab, + char *strtab, + uint32_t *indirect_symtab) { + const bool isDataConst = strcmp(section->segname, "__DATA_CONST") == 0; + uint32_t *indirect_symbol_indices = indirect_symtab + section->reserved1; + void **indirect_symbol_bindings = (void **)((uintptr_t)slide + section->addr); + vm_prot_t oldProtection = VM_PROT_READ; + + if (isDataConst) { + oldProtection = get_protection(rebindings); + mprotect(indirect_symbol_bindings, section->size, PROT_READ | PROT_WRITE); + } + + for (uint i = 0; i < section->size / sizeof(void *); i++) { + uint32_t symtab_index = indirect_symbol_indices[i]; + + if (symtab_index == INDIRECT_SYMBOL_ABS || symtab_index == INDIRECT_SYMBOL_LOCAL || + symtab_index == (INDIRECT_SYMBOL_LOCAL | INDIRECT_SYMBOL_ABS)) { + continue; + } + + uint32_t strtab_offset = symtab[symtab_index].n_un.n_strx; + char *symbol_name = strtab + strtab_offset; + bool symbol_name_longer_than_1 = symbol_name[0] && symbol_name[1]; + struct rebindings_entry *cur = rebindings; + + while (cur) { + for (uint j = 0; j < cur->rebindings_nel; j++) { + if (symbol_name_longer_than_1 && + strcmp(&symbol_name[1], cur->rebindings[j].name) == 0) { + + if (cur->rebindings[j].replaced != NULL && + indirect_symbol_bindings[i] != cur->rebindings[j].replacement) { + + *(cur->rebindings[j].replaced) = indirect_symbol_bindings[i]; + } + + indirect_symbol_bindings[i] = cur->rebindings[j].replacement; + goto symbol_loop; + } + } + + cur = cur->next; + } + + symbol_loop:; + } + + if (isDataConst) { + int protection = 0; + if (oldProtection & VM_PROT_READ) { + protection |= PROT_READ; + } + if (oldProtection & VM_PROT_WRITE) { + protection |= PROT_WRITE; + } + if (oldProtection & VM_PROT_EXECUTE) { + protection |= PROT_EXEC; + } + + mprotect(indirect_symbol_bindings, section->size, protection); + } +} + +static void rebind_symbols_for_image(struct rebindings_entry *rebindings, + const struct mach_header *header, + intptr_t slide) { + Dl_info info; + if (dladdr(header, &info) == 0) { + return; + } + + segment_command_t *cur_seg_cmd; + segment_command_t *linkedit_segment = NULL; + struct symtab_command* symtab_cmd = NULL; + struct dysymtab_command* dysymtab_cmd = NULL; + + uintptr_t cur = (uintptr_t)header + sizeof(mach_header_t); + for (uint i = 0; i < header->ncmds; i++, cur += cur_seg_cmd->cmdsize) { + cur_seg_cmd = (segment_command_t *)cur; + + if (cur_seg_cmd->cmd == LC_SEGMENT_ARCH_DEPENDENT) { + if (strcmp(cur_seg_cmd->segname, SEG_LINKEDIT) == 0) { + linkedit_segment = cur_seg_cmd; + } + } else if (cur_seg_cmd->cmd == LC_SYMTAB) { + symtab_cmd = (struct symtab_command*)cur_seg_cmd; + } else if (cur_seg_cmd->cmd == LC_DYSYMTAB) { + dysymtab_cmd = (struct dysymtab_command*)cur_seg_cmd; + } + } + + if (!symtab_cmd || !dysymtab_cmd || !linkedit_segment || + !dysymtab_cmd->nindirectsyms) { + return; + } + + // Find base symbol/string table addresses + uintptr_t linkedit_base = (uintptr_t)slide + linkedit_segment->vmaddr - linkedit_segment->fileoff; + nlist_t *symtab = (nlist_t *)(linkedit_base + symtab_cmd->symoff); + char *strtab = (char *)(linkedit_base + symtab_cmd->stroff); + + // Get indirect symbol table (array of uint32_t indices into symbol table) + uint32_t *indirect_symtab = (uint32_t *)(linkedit_base + dysymtab_cmd->indirectsymoff); + + cur = (uintptr_t)header + sizeof(mach_header_t); + for (uint i = 0; i < header->ncmds; i++, cur += cur_seg_cmd->cmdsize) { + cur_seg_cmd = (segment_command_t *)cur; + + if (cur_seg_cmd->cmd == LC_SEGMENT_ARCH_DEPENDENT) { + if (strcmp(cur_seg_cmd->segname, SEG_DATA) != 0 && + strcmp(cur_seg_cmd->segname, SEG_DATA_CONST) != 0) { + continue; + } + + for (uint j = 0; j < cur_seg_cmd->nsects; j++) { + section_t *sect = (section_t *)(cur + sizeof(segment_command_t)) + j; + + if ((sect->flags & SECTION_TYPE) == S_LAZY_SYMBOL_POINTERS) { + perform_rebinding_with_section( + rebindings, sect, slide, symtab, strtab, indirect_symtab + ); + } + if ((sect->flags & SECTION_TYPE) == S_NON_LAZY_SYMBOL_POINTERS) { + perform_rebinding_with_section( + rebindings, sect, slide, symtab, strtab, indirect_symtab + ); + } + } + } + } +} + +static void _rebind_symbols_for_image(const struct mach_header *header, + intptr_t slide) { + rebind_symbols_for_image(_rebindings_head, header, slide); +} + +int rebind_symbols_image(void *header, + intptr_t slide, + struct rebinding rebindings[], + size_t rebindings_nel) { + struct rebindings_entry *rebindings_head = NULL; + + int retval = prepend_rebindings(&rebindings_head, rebindings, rebindings_nel); + rebind_symbols_for_image(rebindings_head, (const struct mach_header *) header, slide); + + if (rebindings_head) { + free(rebindings_head->rebindings); + } + + free(rebindings_head); + return retval; +} + +/// @return 0 on success +int rebind_symbols(struct rebinding rebindings[], size_t rebindings_nel) { + int retval = prepend_rebindings(&_rebindings_head, rebindings, rebindings_nel); + if (retval < 0) { + return retval; + } + + // If this was the first call, register callback for image additions (which is also invoked for + // existing images, otherwise, just run on existing images + if (!_rebindings_head->next) { + _dyld_register_func_for_add_image(_rebind_symbols_for_image); + } else { + uint32_t c = _dyld_image_count(); + for (uint32_t i = 0; i < c; i++) { + _rebind_symbols_for_image(_dyld_get_image_header(i), _dyld_get_image_vmaddr_slide(i)); + } + } + + return retval; +} diff --git a/Classes/Utility/Runtime/fishhook.h b/Classes/Utility/Runtime/fishhook.h new file mode 100644 index 0000000000..714c997341 --- /dev/null +++ b/Classes/Utility/Runtime/fishhook.h @@ -0,0 +1,77 @@ +// Copyright (c) 2013, Facebook, Inc. +// All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// * Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// * Neither the name Facebook nor the names of its contributors may be used to +// endorse or promote products derived from this software without specific +// prior written permission. +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +#ifndef fishhook_h +#define fishhook_h + +#include +#include + +#if !defined(FISHHOOK_EXPORT) +#define FISHHOOK_VISIBILITY __attribute__((visibility("hidden"))) +#else +#define FISHHOOK_VISIBILITY __attribute__((visibility("default"))) +#endif + +#ifdef __cplusplus +extern "C" { +#endif //__cplusplus + +/** + * A structure representing a particular intended rebinding from a symbol + * name to its replacement + */ +struct rebinding { + const char *name; + void *replacement; + void **replaced; +}; + +/** + * For each rebinding in rebindings, rebinds references to external, indirect + * symbols with the specified name to instead point at replacement for each + * image in the calling process as well as for all future images that are loaded + * by the process. If rebind_functions is called more than once, the symbols to + * rebind are added to the existing list of rebindings, and if a given symbol + * is rebound more than once, the later rebinding will take precedence. + * @return 0 on success + */ +FISHHOOK_VISIBILITY +int rebind_symbols(struct rebinding rebindings[], size_t rebindings_nel); + +/** + * Rebinds as above, but only in the specified image. The header should point + * to the mach-o header, the slide should be the slide offset. Others as above. + * @return 0 on success + */ +FISHHOOK_VISIBILITY +int rebind_symbols_image(void *header, + intptr_t slide, + struct rebinding rebindings[], + size_t rebindings_nel); + +#ifdef __cplusplus +} +#endif //__cplusplus + +#endif //fishhook_h diff --git a/FLEX.xcodeproj/project.pbxproj b/FLEX.xcodeproj/project.pbxproj index e7daaa593b..ea8208f385 100644 --- a/FLEX.xcodeproj/project.pbxproj +++ b/FLEX.xcodeproj/project.pbxproj @@ -84,10 +84,10 @@ 3A4C952F1B5B21410088C3F2 /* FLEXWebViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A4C94AC1B5B21410088C3F2 /* FLEXWebViewController.m */; }; 3A4C95301B5B21410088C3F2 /* FLEXSystemLogMessage.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A4C94AE1B5B21410088C3F2 /* FLEXSystemLogMessage.h */; settings = {ATTRIBUTES = (Private, ); }; }; 3A4C95311B5B21410088C3F2 /* FLEXSystemLogMessage.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A4C94AF1B5B21410088C3F2 /* FLEXSystemLogMessage.m */; }; - 3A4C95321B5B21410088C3F2 /* FLEXSystemLogTableViewCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A4C94B01B5B21410088C3F2 /* FLEXSystemLogTableViewCell.h */; settings = {ATTRIBUTES = (Private, ); }; }; - 3A4C95331B5B21410088C3F2 /* FLEXSystemLogTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A4C94B11B5B21410088C3F2 /* FLEXSystemLogTableViewCell.m */; }; - 3A4C95341B5B21410088C3F2 /* FLEXSystemLogTableViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A4C94B21B5B21410088C3F2 /* FLEXSystemLogTableViewController.h */; settings = {ATTRIBUTES = (Private, ); }; }; - 3A4C95351B5B21410088C3F2 /* FLEXSystemLogTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A4C94B31B5B21410088C3F2 /* FLEXSystemLogTableViewController.m */; }; + 3A4C95321B5B21410088C3F2 /* FLEXSystemLogCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A4C94B01B5B21410088C3F2 /* FLEXSystemLogCell.h */; settings = {ATTRIBUTES = (Private, ); }; }; + 3A4C95331B5B21410088C3F2 /* FLEXSystemLogCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A4C94B11B5B21410088C3F2 /* FLEXSystemLogCell.m */; }; + 3A4C95341B5B21410088C3F2 /* FLEXSystemLogViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A4C94B21B5B21410088C3F2 /* FLEXSystemLogViewController.h */; settings = {ATTRIBUTES = (Private, ); }; }; + 3A4C95351B5B21410088C3F2 /* FLEXSystemLogViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A4C94B31B5B21410088C3F2 /* FLEXSystemLogViewController.m */; }; 3A4C95361B5B21410088C3F2 /* FLEXNetworkMITMViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A4C94B51B5B21410088C3F2 /* FLEXNetworkMITMViewController.h */; settings = {ATTRIBUTES = (Private, ); }; }; 3A4C95371B5B21410088C3F2 /* FLEXNetworkMITMViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A4C94B61B5B21410088C3F2 /* FLEXNetworkMITMViewController.m */; }; 3A4C95381B5B21410088C3F2 /* FLEXNetworkRecorder.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A4C94B71B5B21410088C3F2 /* FLEXNetworkRecorder.h */; settings = {ATTRIBUTES = (Private, ); }; }; @@ -150,6 +150,8 @@ C312A13D23ECE79000E38049 /* FLEXWindowManagerController.h in Headers */ = {isa = PBXBuildFile; fileRef = C312A13B23ECE79000E38049 /* FLEXWindowManagerController.h */; }; C313853F23F5C1A10046E63C /* FLEXViewControllersViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = C313853D23F5C1A10046E63C /* FLEXViewControllersViewController.h */; }; C313854023F5C1A10046E63C /* FLEXViewControllersViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C313853E23F5C1A10046E63C /* FLEXViewControllersViewController.m */; }; + C313854823F5F7D50046E63C /* fishhook.c in Sources */ = {isa = PBXBuildFile; fileRef = C313854623F5F7D40046E63C /* fishhook.c */; }; + C313854923F5F7D50046E63C /* fishhook.h in Headers */ = {isa = PBXBuildFile; fileRef = C313854723F5F7D50046E63C /* fishhook.h */; }; C31C4A6923342A2200C35F12 /* FLEXMetadataSection.h in Headers */ = {isa = PBXBuildFile; fileRef = C31C4A6723342A2200C35F12 /* FLEXMetadataSection.h */; }; C31C4A6A23342A2200C35F12 /* FLEXMetadataSection.m in Sources */ = {isa = PBXBuildFile; fileRef = C31C4A6823342A2200C35F12 /* FLEXMetadataSection.m */; }; C31D93E423E38CBE005517BF /* FLEXBlockShortcuts.h in Headers */ = {isa = PBXBuildFile; fileRef = C31D93E223E38CBE005517BF /* FLEXBlockShortcuts.h */; }; @@ -419,10 +421,10 @@ 3A4C94AC1B5B21410088C3F2 /* FLEXWebViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FLEXWebViewController.m; sourceTree = ""; }; 3A4C94AE1B5B21410088C3F2 /* FLEXSystemLogMessage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FLEXSystemLogMessage.h; sourceTree = ""; }; 3A4C94AF1B5B21410088C3F2 /* FLEXSystemLogMessage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FLEXSystemLogMessage.m; sourceTree = ""; }; - 3A4C94B01B5B21410088C3F2 /* FLEXSystemLogTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FLEXSystemLogTableViewCell.h; sourceTree = ""; }; - 3A4C94B11B5B21410088C3F2 /* FLEXSystemLogTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FLEXSystemLogTableViewCell.m; sourceTree = ""; }; - 3A4C94B21B5B21410088C3F2 /* FLEXSystemLogTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FLEXSystemLogTableViewController.h; sourceTree = ""; }; - 3A4C94B31B5B21410088C3F2 /* FLEXSystemLogTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FLEXSystemLogTableViewController.m; sourceTree = ""; }; + 3A4C94B01B5B21410088C3F2 /* FLEXSystemLogCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FLEXSystemLogCell.h; sourceTree = ""; }; + 3A4C94B11B5B21410088C3F2 /* FLEXSystemLogCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FLEXSystemLogCell.m; sourceTree = ""; }; + 3A4C94B21B5B21410088C3F2 /* FLEXSystemLogViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FLEXSystemLogViewController.h; sourceTree = ""; }; + 3A4C94B31B5B21410088C3F2 /* FLEXSystemLogViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FLEXSystemLogViewController.m; sourceTree = ""; }; 3A4C94B51B5B21410088C3F2 /* FLEXNetworkMITMViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FLEXNetworkMITMViewController.h; sourceTree = ""; }; 3A4C94B61B5B21410088C3F2 /* FLEXNetworkMITMViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FLEXNetworkMITMViewController.m; sourceTree = ""; }; 3A4C94B71B5B21410088C3F2 /* FLEXNetworkRecorder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FLEXNetworkRecorder.h; sourceTree = ""; }; @@ -487,6 +489,8 @@ C312A13B23ECE79000E38049 /* FLEXWindowManagerController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FLEXWindowManagerController.h; sourceTree = ""; }; C313853D23F5C1A10046E63C /* FLEXViewControllersViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FLEXViewControllersViewController.h; sourceTree = ""; }; C313853E23F5C1A10046E63C /* FLEXViewControllersViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FLEXViewControllersViewController.m; sourceTree = ""; }; + C313854623F5F7D40046E63C /* fishhook.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = fishhook.c; sourceTree = ""; }; + C313854723F5F7D50046E63C /* fishhook.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fishhook.h; sourceTree = ""; }; C31C4A6723342A2200C35F12 /* FLEXMetadataSection.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FLEXMetadataSection.h; sourceTree = ""; }; C31C4A6823342A2200C35F12 /* FLEXMetadataSection.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FLEXMetadataSection.m; sourceTree = ""; }; C31D93E223E38CBE005517BF /* FLEXBlockShortcuts.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FLEXBlockShortcuts.h; sourceTree = ""; }; @@ -882,10 +886,10 @@ children = ( 3A4C94AE1B5B21410088C3F2 /* FLEXSystemLogMessage.h */, 3A4C94AF1B5B21410088C3F2 /* FLEXSystemLogMessage.m */, - 3A4C94B01B5B21410088C3F2 /* FLEXSystemLogTableViewCell.h */, - 3A4C94B11B5B21410088C3F2 /* FLEXSystemLogTableViewCell.m */, - 3A4C94B21B5B21410088C3F2 /* FLEXSystemLogTableViewController.h */, - 3A4C94B31B5B21410088C3F2 /* FLEXSystemLogTableViewController.m */, + 3A4C94B01B5B21410088C3F2 /* FLEXSystemLogCell.h */, + 3A4C94B11B5B21410088C3F2 /* FLEXSystemLogCell.m */, + 3A4C94B21B5B21410088C3F2 /* FLEXSystemLogViewController.h */, + 3A4C94B31B5B21410088C3F2 /* FLEXSystemLogViewController.m */, C309B82D223ED64400B228EC /* FLEXLogController.h */, C33E46AD223B02CD004BD0E6 /* FLEXASLLogController.h */, C33E46AE223B02CD004BD0E6 /* FLEXASLLogController.m */, @@ -1130,6 +1134,8 @@ C31D93E723E38E97005517BF /* FLEXBlockDescription.m */, C3854DF223F36C9E00FCD1E2 /* FLEXTypeEncodingParser.h */, C3854DF123F36C9E00FCD1E2 /* FLEXTypeEncodingParser.m */, + C313854623F5F7D40046E63C /* fishhook.c */, + C313854723F5F7D50046E63C /* fishhook.h */, ); path = Runtime; sourceTree = ""; @@ -1368,7 +1374,7 @@ 3A4C94DD1B5B21410088C3F2 /* FLEXHeapEnumerator.h in Headers */, C3F527BD2318603F009CBA07 /* FLEXShortcutsSection.h in Headers */, C398626B23AD71C1007E6793 /* TBRuntime.h in Headers */, - 3A4C95321B5B21410088C3F2 /* FLEXSystemLogTableViewCell.h in Headers */, + 3A4C95321B5B21410088C3F2 /* FLEXSystemLogCell.h in Headers */, C3F977852311B38F0032776D /* NSDictionary+ObjcRuntime.h in Headers */, C398625123AD6C67007E6793 /* TBKeyPath.h in Headers */, 3A4C94F91B5B21410088C3F2 /* FLEXArgumentInputNumberView.h in Headers */, @@ -1389,7 +1395,7 @@ C36FBFCF230F3B98008D95D5 /* FLEXProtocol.h in Headers */, 94A515271C4CA2080063292F /* FLEXToolbarItem.h in Headers */, C312A13023ECB5D300E38049 /* FLEXBookmarkManager.h in Headers */, - 3A4C95341B5B21410088C3F2 /* FLEXSystemLogTableViewController.h in Headers */, + 3A4C95341B5B21410088C3F2 /* FLEXSystemLogViewController.h in Headers */, C34C9BDD23A7F2740031CA3E /* FLEXRuntime+UIKitHelpers.h in Headers */, C398624F23AD6C67007E6793 /* TBKeyPathTokenizer.h in Headers */, C362AE8123C7E9D1005A86AE /* NSMapTable+FLEX_Subscripting.h in Headers */, @@ -1487,6 +1493,7 @@ 94A515181C4CA1D70063292F /* FLEXManager+Private.h in Headers */, C383C3B923B6A62A007A321B /* FLEXRuntimeSafety.h in Headers */, C39ED92822D63F3200B5773A /* FLEXAddressExplorerCoordinator.h in Headers */, + C313854923F5F7D50046E63C /* fishhook.h in Headers */, C3A9424023C5443A006871A3 /* FHSSnapshotNodes.h in Headers */, C32A195E231732E800EB02AC /* FLEXCollectionContentSection.h in Headers */, 3A4C94E11B5B21410088C3F2 /* FLEXResources.h in Headers */, @@ -1694,9 +1701,10 @@ 3A4C953B1B5B21410088C3F2 /* FLEXNetworkSettingsTableViewController.m in Sources */, 3A4C94FC1B5B21410088C3F2 /* FLEXArgumentInputStringView.m in Sources */, 3A4C94F81B5B21410088C3F2 /* FLEXArgumentInputNotSupportedView.m in Sources */, - 3A4C95351B5B21410088C3F2 /* FLEXSystemLogTableViewController.m in Sources */, + 3A4C95351B5B21410088C3F2 /* FLEXSystemLogViewController.m in Sources */, C383C3C623B6BB81007A321B /* FLEXCodeFontCell.m in Sources */, 3A4C95271B5B21410088C3F2 /* FLEXGlobalsViewController.m in Sources */, + C313854823F5F7D50046E63C /* fishhook.c in Sources */, C3531BA223E796BD00A184AD /* FLEXManager+Extensibility.m in Sources */, 71E1C2172307FBB800F5032A /* FLEXKeychain.m in Sources */, C3A9423923C51B8D006871A3 /* FHSRangeSlider.m in Sources */, @@ -1713,7 +1721,7 @@ C36B097123E1EDCD008F5D47 /* FLEXTableViewSection.m in Sources */, C3531BA623E88A2100A184AD /* FLEXNavigationController.m in Sources */, 3A4C94EA1B5B21410088C3F2 /* FLEXHierarchyTableViewController.m in Sources */, - 3A4C95331B5B21410088C3F2 /* FLEXSystemLogTableViewCell.m in Sources */, + 3A4C95331B5B21410088C3F2 /* FLEXSystemLogCell.m in Sources */, C3A9423523C3F98E006871A3 /* FHSViewController.m in Sources */, C3DB9F652107FC9600B46809 /* FLEXObjectRef.m in Sources */, 3A4C95021B5B21410088C3F2 /* FLEXArgumentInputTextView.m in Sources */,