Quantcast
Channel: 睿论坛 - 最新话题
Viewing all articles
Browse latest Browse all 5731

有朋友hook过“设置”里面的VPN连接?测试下来无法hook住

$
0
0

@apletianguo wrote:

有朋友hook过“设置”里面的VPN连接?测试下来无法hook住

%hook SpringBoard

-(void)applicationDidFinishLaunching:(id)application {

%init;
//[VPNNEControllerHook hook];

}

%end

//%ctor
//{
// %init;
// [VPNNEControllerHook hook];
//}

%hook VPNController

-(void)setVPNActive:(id)arg1 forSpecifier:(id)arg2
{
%orig(arg1,arg2);
%log(@"ttttttttttttttttt");
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"设置VPN激活" message:[NSString stringWithFormat:@"%@===%@",arg1,arg2] delegate:nil cancelButtonTitle:@"确定" otherButtonTitles: nil];
[alertView show];
}
%end

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5731

Trending Articles