From 2d33ae45024a5aae89d0ab4eff6960126a86b037 Mon Sep 17 00:00:00 2001 From: a1109471307 <50288272+a1109471307@users.noreply.github.com> Date: Thu, 3 Jul 2025 19:00:36 +0800 Subject: [PATCH] Update TSAppDelegate.m --- TrollStore/TSAppDelegate.m | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/TrollStore/TSAppDelegate.m b/TrollStore/TSAppDelegate.m index 8cec989..d17efc1 100644 --- a/TrollStore/TSAppDelegate.m +++ b/TrollStore/TSAppDelegate.m @@ -1,9 +1,23 @@ -#import "TSAppDelegate.h" -#import "TSRootViewController.h" - +#import "TSModuleManager.h" +#import "TSExploitManager.h" @implementation TSAppDelegate -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + // 初始化漏洞管理器 + NSString *exploitsPath = [[NSBundle mainBundle] pathForResource:@"Exploits" ofType:nil]; + [[TSExploitManager sharedManager] loadExploitDescriptorsFromDirectory:exploitsPath]; + + // 注册核心模块(这里需要实际模块实现) + // id exploitModule = [TSExploitModule new]; + // [[TSModuleManager sharedManager] registerModule:exploitModule forType:TSModuleTypeExploit]; + // + // id installModule = [TSInstallationModule new]; + // [[TSModuleManager sharedManager] registerModule:installModule forType:TSModuleTypeInstallation]; + + // 其余初始化代码... + + return YES; +}(NSDictionary *)launchOptions { return YES; }