Skip to content

Instantly share code, notes, and snippets.

@sophiawisdom
Created August 20, 2021 10:36
Show Gist options
  • Save sophiawisdom/b3396e03d7f064188f00ac900ff139ea to your computer and use it in GitHub Desktop.
Save sophiawisdom/b3396e03d7f064188f00ac900ff139ea to your computer and use it in GitHub Desktop.
Need a more recent version of /usr/lib/system/introspection/libdispatch.dylib -- missing suppport for the queue_item_complete hook function.
Location is /var/root/Library/Developer/Xcode/DerivedData/mods-hiqpvfikerrvwrbgoskpjqwmglif/Build/Products/Debug/daemon
Input PID to pause: 36907
Injecting into PID 36907
Magic number is -17958193
got a command of type 25
got a command of type 25
got a command of type 25
got a command of type 25
got a command of type 13
got a command of type -2147483614
val extends from 36864 to 15344 (size -21520)
task_for_pid for pid 36907 returns 0. remote task is 3847
initial insert attempt return (os/kern) successful 0
dylib_address was 0x7fff64bbc000 and offset was 27755 for symbol pthread_create_from_mach_thread and dylib /usr/lib/system/libsystem_pthread.dylib
dylib_address was 0x7fff649a3000 and offset was 22996 for symbol dlopen and dylib /usr/lib/system/libdyld.dylib
pthread create addr is 140734883441771
kr for vm_protect is 0
2021-08-20 03:33:59.083543-0700 daemon[36904:3202371] Begin inputting commands. Options are:
get_images (no args).
get_classes_for_image (arg image name)
get_methods_for_class (arg class name)
get_superclass_for_class (arg class name)
get_executable_image (no args)
load_dylib (arg image name)
>
get_executable_image
signalling semaphore: Seconds is 1629455641 and microseconds is 960350
Seconds is 1629455641 and microseconds is 961016 for exiting semaphore_wait
Left semaphore_wait
shmem_offset is 1000 and len is c9
2021-08-20 03:34:01.961277-0700 daemon[36904:3202371] Images: /System/Applications/Dictionary.app/Contents/MacOS/Dictionary
Took 0.001286 to get back data from first command
get_classes_for_image /System/Applications/Dictionary.app/Contents/MacOS/Dictionary
signalling semaphore: Seconds is 1629455663 and microseconds is 997086
Seconds is 1629455663 and microseconds is 999844 for exiting semaphore_wait
Left semaphore_wait
shmem_offset is 1000 and len is 55d
2021-08-20 03:34:24.000401-0700 daemon[36904:3202371] Classes for image "/System/Applications/Dictionary.app/Contents/MacOS/Dictionary": (
ApplicationController,
DictionaryBrowserApp,
BrowserWindowController,
DictionaryController,
DSIndexTableView,
DSIndexTableCell,
DSIndexSplitView,
DSShadowOverlay,
PreferenceController,
WebViewBackgroundView,
PrefDictionaryTableView,
GetURLScriptCommand,
DictionaryRecord,
DictionaryRecordArray,
DictionaryRecordRepository,
FakeRecordForResume,
DictionarySearchField,
DictionarySearchFieldEditor,
DictionarySearchFieldCell,
SnapbackButtonCell,
ImageWindowController,
DSImageView,
WebWrapScrollView,
DictionaryWebView,
DSFindPanelController,
DSFindPanelTextFieldCell,
DSFindPanelFieldEditor,
DictionaryScopeBar,
DictionaryScopeBarItem,
ScopeBarViewController,
WikipediaDictionaryObj,
WikipediaAPIRequester,
DictionarySearchOperation,
DictionaryObj,
DictionaryHistory,
DictionaryHistoryItem
)
Took 0.011623 to get back data from first command
get_methods_for_class ApplicationController
signalling semaphore: Seconds is 1629455680 and microseconds is 702731
Seconds is 1629455680 and microseconds is 705892 for exiting semaphore_wait
Left semaphore_wait
shmem_offset is 1000 and len is 19e8
2021-08-20 03:34:40.708320-0700 daemon[36904:3202371] Methods for class "ApplicationController": (
{
imp = 4306809107;
sel = "menuHasKeyEquivalent:forEvent:target:action:";
type = "c48@0:8@16@24^@32^:40";
},
{
imp = 4306721225;
sel = "applicationDidFinishLaunching:";
type = "v24@0:8@16";
},
{
imp = 4306807984;
sel = "applicationShouldTerminateAfterLastWindowClosed:";
type = "c24@0:8@16";
},
{
imp = 4306809043;
sel = "applicationShouldHandleReopen:hasVisibleWindows:";
type = "c28@0:8@16c24";
},
{
imp = 4306809089;
sel = "applicationWillTerminate:";
type = "v24@0:8@16";
},
{
imp = 4306720938;
sel = awakeFromNib;
type = "v16@0:8";
},
{
imp = 4306812552;
sel = "validateMenuItem:";
type = "c24@0:8@16";
},
{
imp = 4306815476;
sel = "application:runTest:duration:";
type = "v40@0:8@16Q24d32";
},
{
imp = 4306810598;
sel = "showPreferences:";
type = "v24@0:8@16";
},
{
imp = 4306722112;
sel = "_prepareMyPreferences";
type = "@16@0:8";
},
{
imp = 4306813043;
sel = "_prepareMobileAssetsQuery";
type = "v16@0:8";
},
{
imp = 4306814247;
sel = "_checkActiveButNotInstalledDictionaries";
type = "v16@0:8";
},
{
imp = 4306722719;
sel = "_handleSearchTextAppleEvent";
type = "c16@0:8";
},
{
imp = 4306723026;
sel = "_prepareWindows";
type = "v16@0:8";
},
{
imp = 4306812206;
sel = "activeDictionariesDidChanged:";
type = "v24@0:8@16";
},
{
imp = 4306755536;
sel = "_delayedDidFinishLaunching";
type = "v16@0:8";
},
{
imp = 4306815148;
sel = "_changeTextSize:";
type = "v24@0:8@16";
},
{
imp = 4306815258;
sel = "_prepareWindowsForTAL";
type = "v16@0:8";
},
{
imp = 4306808008;
sel = "_prepareTerminationForTAL";
type = "v16@0:8";
},
{
imp = 4306809865;
sel = "_newBrowserWindowCommon";
type = "@16@0:8";
},
{
imp = 4306728089;
sel = "saveWindowStatesWithSettings:afterDelay:";
type = "v28@0:8c16d20";
},
{
imp = 4306724837;
sel = availableDictionaries;
type = "@16@0:8";
},
{
imp = 4306814650;
sel = "_generateWindowIDForWindow:";
type = "q24@0:8@16";
},
{
imp = 4306809434;
sel = "newBrowserWindow:";
type = "v24@0:8@16";
},
{
imp = 4306810379;
sel = "backHistory:";
type = "v24@0:8@16";
},
{
imp = 4306810435;
sel = "forwardHistory:";
type = "v24@0:8@16";
},
{
imp = 4306811952;
sel = dictionaryWindowList;
type = "@16@0:8";
},
{
imp = 4306752270;
sel = "_saveWindowStatesWithSettings:";
type = "v24@0:8@16";
},
{
imp = 4306811112;
sel = "upodateDictionaries:inWindow:";
type = "v32@0:8@16@24";
},
{
imp = 4306809639;
sel = "newBrowserTab:";
type = "v24@0:8@16";
},
{
imp = 4306808143;
sel = updatePreference;
type = "v16@0:8";
},
{
imp = 4306723192;
sel = "_restoreSavedWindows:foundNewDicts:";
type = "c32@0:8@16^c24";
},
{
imp = 4306809323;
sel = "showAboutBox:";
type = "v24@0:8@16";
},
{
imp = 4306810355;
sel = "newWindowForTab:";
type = "v24@0:8@16";
},
{
imp = 4306810373;
sel = "selectDictionary:";
type = "v24@0:8@16";
},
{
imp = 4306810491;
sel = "selectNextDictionary:";
type = "v24@0:8@16";
},
{
imp = 4306810546;
sel = "selectPrevDictionary:";
type = "v24@0:8@16";
},
{
imp = 4306810653;
sel = "openDictionaryFolder:";
type = "v24@0:8@16";
},
{
imp = 4306810889;
sel = "doPageSetup:";
type = "v24@0:8@16";
},
{
imp = 4306810939;
sel = "doPrint:";
type = "v24@0:8@16";
},
{
imp = 4306810989;
sel = "selectSearchField:";
type = "v24@0:8@16";
},
{
imp = 4306811071;
sel = "setAvailableDictionaries:";
type = "v24@0:8@16";
},
{
imp = 4306785287;
sel = activeDictionaryGlobalVars;
type = "@16@0:8";
},
{
imp = 4306811632;
sel = updateScopebarForAllWindows;
type = "v16@0:8";
},
{
imp = 4306738680;
sel = userAgentName;
type = "@16@0:8";
},
{
imp = 4306812200;
sel = "clearWebKitCacheDebug:";
type = "v24@0:8@16";
},
{
imp = 4306812264;
sel = "panel:shouldShowFilename:";
type = "c32@0:8@16@24";
},
{
imp = 4306815112;
sel = "_shouldOpenNewWindowForExternalRequest";
type = "c16@0:8";
},
{
imp = 4306815300;
sel = "doLookupService:userData:error:";
type = "v40@0:8@16@24^@32";
},
{
imp = 4306815975;
sel = appInitializeDone;
type = "c16@0:8";
},
{
imp = 4306815987;
sel = newlyCreatedWindowOrTab;
type = "@16@0:8";
}
)
Took 0.013182 to get back data from first command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment