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

有朋友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

请问,后来成功hook到了吗?

看看这篇文章http://bbs.iosre.com/t/preferences-vpn/5000是否是你想要的?

这个是否是你想要的? https://github.com/herzmut/shadowsocks-iOS

1 个赞

这个我也看过啦.还有另外一个问题想请教大神,就是连接上vpn后,会有一个虚拟的"指定的IP地址";在设置VPN详情里面能看到,但在vpn代码里面获取不到.怎么才能获取到这个值那