简体   繁体   English

在程序启动之前如何附加Cycrypt或gdb

[英]How to attach Cycrypt or gdb before a program start

I am in the middle of PT where application is checking for JailBreak, sooner it starts and the first screen user see is Alert that application is Jailbroken and click okay to exit. 我在PT的中间,应用程序正在检查JailBreak,它启动得更快,并且第一个屏幕用户看到的是“警报该应用程序已越狱的警报”,然后单击“确定”退出。

My question: Is there a way to attach Cycript before application starts or start application with Cycript as it seems very late to change method when it is already called by application and I am on the close alert. 我的问题:有没有一种方法可以在应用程序启动之前附加Cycript或使用Cycript启动应用程序,因为当应用程序已经调用它并且我处于关闭警报时,更改方法似乎太晚了。

Please advise. 请指教。

or advise If I can run application with GDB, rather than attaching with the process later -- same issue here, it is too late to attach to gdp after running the application because decision of JailBroken is already done. 或建议如果我可以使用GDB运行应用程序,而不是稍后再附加该进程-这里是同样的问题,那么在运行应用程序后再附加到gdp太晚了,因为已经完成了JailBroken的决定。

I found this link which explains in detail about run time modifications using gdb as well as with cycript. 我发现此链接详细说明了使用gdb和cycript进行运行时修改。

May be helpful for you or someone else. 可能对您或其他人有帮助。

I just encountered same question and I got over that by using choose() in cycript and function -[UIModalView dismissWithClickedButtonIndex:animated:] 我只是遇到了同样的问题,我通过在cycript和函数中使用select choose()克服了这个问题-[UIModalView dismissWithClickedButtonIndex:animated:]

  1. Use choose(UIAlertView) to search all AlertView 使用choose(UIAlertView)搜索所有AlertView
  2. Try figure out which one is your target and call [choose(UIAlertView)[i] dismissWithClickedButtonIndex:0 animated:0] 尝试弄清楚哪个是您的目标,然后调用[choose(UIAlertView)[i] dismissWithClickedButtonIndex:0 animated:0]

    *i is the sequence you get in step 1 * i是您在步骤1中获得的顺序

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM