Instruments to assist in binary application reversing and augmentation, geared towards walled gardens like iOS and macOS
Instruments to assist in binary application reversing and augmentation, geared towards walled gardens like iOS and macOS
Instruments to assist in binary application reversing and augmentation, geared towards walled gardens like iOS. Most, if not all, recently tested on iOS 11.1.2 and macOS 10.12.6.
frida -U -n Safari -l frida-url-interceptor.jsldid2 is required. This repo will allow you to easily compile ldid and ldid2 for signing and modifying an iOS binary's entitlements, and thus jailbreaking a device.ldid{2} -e MobileSafari # to dump MobileSafari's entitlementsldid{2} -S cat # to sign cat/System/Library/Caches/com.apple.dyld/dyld_shared_cache_arm* into individual dylibs:mkdir -p dylibs && dyld-210.2.3-patched/launch-cache/dsc_extractor /path/to/copied/dyld_shared_cache_arm* dylibsfrida-trace -U -i "*tls*" Twitter # hook all calls matching /tls/i for the Twitter appfrida-trace -U -f com.atebits.Tweetie2 "-[* *SSL*]" -m "-[* *TLS*]" # hook obj c calls__handlers__/libcoretls.dylib/tls_private_key_create.js will be generated:onEnter's args[2] is first argument to the functionMemory.readUtf8String(args[2]) or ObjC.Object(args[2]))args[2] = ptr(1)onLeave's retval is the return valuelog(retval.toInt32())retval.replace(0) onEnter: function (log, args, state) {
log('-[SRWebSocket initWithURLRequest:' + args[2] + ' protocols:' + args[3] + ' allowsUntrustedSSLCertificates:' + args[4] + ']')
args[4] = ptr(1) // set allowsUntrustedSSLCertificates = true
},system_profiler SPUSBDataType|perl -n0e'`rvictl -s $1`if/iP(?:hone|ad):.*?Serial Number: (\S+)/s';sudo tcpdump -i rvi0su mobile && mkdir -p ~/tmp && cd ~/tmp && DYLD_INSERT_LIBRARIES=/usr/lib/dumpdecrypted.dylib /var/containers/Bundle/Application/*/AppName.app/AppNamedeviceconsoleunbuffer deviceconsole | grep something # keeps pretty colors
- requires expect, can be installed via sudo port install expect or brew install expectmv /Library/TweakInject /Library/TweakInject.bak && ln -s /Library/MobileSubstrate/DynamicLibraries /Library/TweakInject && killall -HUP SpringBoardShaped by @SamyKamkar / https://samy.pl
No open issues yet, or sync has not completed.