POSIX-compliant - you can safely place this func in your .zshrc, .basrc
Tools required:
- ipatool
- jq
- tac
- grep with regex enabled
| #!/bin/sh | |
| set -eu | |
| create_iconset() { | |
| mkdir -p Ghidra.iconset | |
| cat << EOF > Ghidra.iconset/Contents.json | |
| { | |
| "images": | |
| [ |
POSIX-compliant - you can safely place this func in your .zshrc, .basrc
Tools required:
| #import <Foundation/Foundation.h> | |
| @interface DVTFilePath : NSObject | |
| @property(readonly) NSString *pathString; | |
| @end | |
| @interface DVTToolchain : NSObject | |
| @property(readonly) DVTFilePath *path; | |
| @end |
| #import "unum.h" | |
| API_AVAILABLE(macosx(10.15), ios(13), tvos(13), watchos(6)) | |
| static NSString *_Nullable formatShortNumber(int64_t number) { | |
| UErrorCode status; | |
| // Create formatter | |
| status = U_ZERO_ERROR; | |
| UNumberFormat *formatter = unum_open(14 /* UNUM_DECIMAL_COMPACT_SHORT */, NULL, 0, "en_US", NULL, &status); | |
| assert(!U_FAILURE(status)); |
| #import "CaptainHook.h" | |
| #define CHAllocateClass(name, superName) do { \ | |
| CHClass(name) = objc_allocateClassPair(CHClass(superName), #name, 0); \ | |
| CHMetaClass(name) = object_getClass(CHClass(name)); \ | |
| CHSuperClass(name) = class_getSuperclass(CHClass(name)); \ | |
| } while(0); | |
| #define CHAllocateClassApply(name) \ | |
| objc_registerClassPair(CHClass(name)); |
| #import <Foundation/Foundation.h> | |
| #import <Security/Security.h> | |
| typedef NS_ENUM(NSInteger, TSKTrustDecision) { | |
| TSKTrustDecisionShouldAllowConnection, | |
| TSKTrustDecisionShouldBlockConnection, | |
| TSKTrustDecisionDomainNotPinned, | |
| }; | |
| %hook TSKPinningValidator |