-
Notifications
You must be signed in to change notification settings - Fork 8
/
Tweak.xm
20 lines (18 loc) · 824 Bytes
/
Tweak.xm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@import Foundation;
#import <substrate.h>
//A new method from iOS 14
int returnOne() {
return 1;
}
%ctor {
NSArray *symbols = @[
@"__Z50VerifyCarrierBundleVersionsXMLSignatureWithKeyTypePK14__CFDictionary16CBVersionsFormat15CBSignatureType16SignatureKeyType",
@"_SecKeyRawVerify",
@"__Z28VerifyCarrierBundleSignatureRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE15CBSignatureType16SignatureKeyType",
@"__Z39VerifyCarrierBundleVersionsXMLSignaturePK14__CFDictionary16CBVersionsFormat15CBSignatureType",
@"__Z28VerifyCarrierBundleSignatureRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEP8__SecKey"
];
for (NSString *symbol in symbols) {
MSHookFunction(MSFindSymbol(NULL, symbol.UTF8String), (void *)returnOne, NULL);
}
}