iOS安全攻防(五):使用Cycript修改支付宝app运行时
我们能够借助Cycript使用Objective-C或者javascript ,给某个正在运行的进程的runtime发送消息。
dpkg -i cycript_0.9.461_iphoneos-arm.deb dpkg -i libffi_1-3.0.10-5_iphoneos-arm.deb
Primer:/ root# ps aux | grep Portal mobile 479 0.6 4.3 590776 44956 ?? Ss 5:14PM 0:09.58 /var/mobile/Applications/8723004E-9E54-4B37-856D-86292780E958/Portal.app/Portal root 497 0.0 0.0 329252 176 s000 R+ 5:21PM 0:00.00 grep Portal
Primer:/ root# cycript -p 479 cy#
4)获取当前界面的viewController并修改背景色
cy# var app = [UIApplication sharedApplication] @"<DFApplication: 0x16530660>" cy# app.delegate @"<DFClientDelegate: 0x165384d0>" cy# var keyWindow = app.keyWindow @"<UIWindow: 0x1654abb0; frame = (0 0; 320 568); gestureRecognizers = <NSArray: 0x1654b190>; layer = <UIWindowLayer: 0x1654ace0>>" cy# var rootController = keyWindow.rootViewController @"<DFNavigationController: 0x1654b6c0>" cy# var visibleController = rootController.visibleViewController @"<ALPLauncherController: 0x166acfb0>" cy# visibleController.childViewControllers @["<HPHomeWidgetGroup: 0x166afbc0>","<ADWRootViewController: 0x165745c0>","<ALPAssetsRootViewController: 0x16577250>","<SWSecurityWidgetGroup: 0x166bd940>"] cy# var assetsController = new Instance(0x16577250) @"<ALPAssetsRootViewController: 0x16577250>" cy# assetsController.view.backgroundColor = [UIColor blueColor] @"UIDeviceRGBColorSpace 0 0 1 1"
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。