如何在Iphone中用frida模拟触摸事件(已经越狱)



我已经越狱了Iphone,然后安装了Frida框架。但是如何发送与frida的接触事件?它的命令是什么?3ks所有

我不知道像Android(adb shell input tap x y(这样的坐标本机敲击

3种不同的选择;

  1. 加载一个外部模块;https://github.com/zjjno/PTFakeTouchDemo
Module.load("/Library/MobileSubstrate/DynamicLibraries/PTFakeTouch.dylib")
var tap = new NativeFunction(Module.findExportByName(null, "touchxy"), "void", ["int", "int"]);
tap(x, y);
  1. 模拟主页按钮单击
ObjC.schedule(ObjC.mainQueue, function() {
ObjC.classes.SBUIController.sharedInstance().handleHomeButtonSinglePressUp();
});
  1. 单击随机元素,获取视觉元素列表,按文本或类型进行筛选,然后找到一个可以调用tap()的按钮
ObjC.classes.UIWindow.keyWindow().recursiveDescription().toString() // returns the view hierarchy

最新更新