frida -U -f com.xinhuamm.d0001 启动进程失败

不管哪种方式都启动不了APP 或者进入交互

  1. 进入不了交互模式

列出正在运行的应用

$ frida -U -a
11766     新华社   com.xinhuamm.d0001

进入交互模式

$ frida -U 新华社
或者
$ frida -U -p 11766

都报错了
Failed to attach: error reading data from TLS socket: The connection is broken

     ____
    / _  |   Frida 15.1.3 - A world-class dynamic instrumentation toolkit
   | (_| |
    > _  |   Commands:
   /_/ |_|       help      -> Displays the help system
   . . . .       object?   -> Display information about 'object'
   . . . .       exit/quit -> Exit
   . . . .
   . . . .   More info at https://frida.re/docs/home/
   . . . .
   . . . .   Connected to iPhone (id=00008030-001C19C12281802E)
Failed to attach: error reading data from TLS socket: The connection is broken
    1. 直接启动进程
$ frida -U -f com.xinhuamm.d0001

也是报错
Failed to spawn: the request to open "com.xinhuamm.d0001" failed.

     ____
    / _  |   Frida 15.1.3 - A world-class dynamic instrumentation toolkit
   | (_| |
    > _  |   Commands:
   /_/ |_|       help      -> Displays the help system
   . . . .       object?   -> Display information about 'object'
   . . . .       exit/quit -> Exit
   . . . .
   . . . .   More info at https://frida.re/docs/home/
   . . . .
   . . . .   Connected to iPhone (id=00008030-001C19C12281802E)
Failed to spawn: the request to open "com.xinhuamm.d0001" failed.
    1. 使用和Python交互脚本
device = frida.get_usb_device(1000) #连接usb设备 1000表示超时
pid = device.spawn(bundle) #启动指定bundleId的app
session = device.attach(pid)  #附加到app
script = session.create_script(source) #创建frida javaScript脚本
script.load() #load脚本到app进程中 这样即注入成功
device.resume(pid) #恢复app运行

也是报错

Traceback (most recent call last):
  File "hook.py", line 18, in <module>
    pid = device.spawn(bundle) #启动指定bundleId的app
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/frida/core.py", line 26, in wrapper
    return f(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/frida/core.py", line 149, in spawn
    return self._impl.spawn(program, argv, envp, env, cwd, stdio, aux_options)
frida.NotSupportedError: the request to open "com.xinhuamm.d0001" failed.

可能跟系统有关吧,为了装firda
1 我phone6,9系统,装了firda直接越狱后桌面重启一直转圈不成功,只能刷机到最新12系统,装了frida是正常的
2 我6s ,10系统,装了frida也是不正常的,只能恢复出厂了
3 另一台iphon8,14系统装了frida是正常的
所以你系统是12起装frida大概率是没问题的

为什么会报TLS的错 frida-server默认用TLS启动么

frida-server 端口被占了吧.

不是 其它app都可以启动,就这新华社的app不行

可能有越狱检测吧,很多银行,政府类的APP都有加检测的,检测有没有frida端口,frida线程名之类的