NSStringFromClass
应用举例
CDLCUnknown
+ (id)loadCommandWithDataCursor:(CDMachOFileDataCursor *)cursor;
{
Class targetClass = [CDLCUnknown class];
AppDelegate
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
#import "CrifanLib.h"
int main(int argc, char * argv[]) {
iOS_antiDebug_ptrace();
NSString * appDelegateClassName;
@autoreleasepool {
appDelegateClassName = NSStringFromClass([AppDelegate class]);
}
return UIApplicationMain(argc, argv, nil, appDelegateClassName);
}
objc_alloc_init
%hookf(id, objc_alloc_init, Class cls){
NSString *curClsName = NSStringFromClass(cls);
if([curClsName isEqualToString: @"AKAppleIDAuthSupportProxyImpl"]) {
gNoUse = 1;
stateClientNeg1();
}