objection icon indicating copy to clipboard operation
objection copied to clipboard

Hooking NSURLRequest with --dump-args crashes Objection

Open cakarlen opened this issue 6 years ago • 1 comments

Describe the bug When hooking -[NSURLRequest initWithURL:cachePolicy:timeoutInterval:], Objection will crash and terminate but will keep the app running

To Reproduce Steps to reproduce the behavior:

  1. ios hooking watch method "-[NSURLRequest initWithURL:cachePolicy:timeoutInterval:]" --dump-args
  2. Do something to invoke NSURLRequest
  3. Objection crashes

Expected behavior Obviously, this should dump the arguments of the request

Evidence / Logs / Screenshots I have attached a screenshot from starting objection to the crash with --debug. Bildschirmfoto 2019-10-01 um 19 30 48

Environment (please complete the following information):

  • Device: iPhone 7+
  • OS: iOS 12.4
  • Frida Version: 12.7.5
  • Objection Version: 1.7.5

cakarlen avatar Oct 01 '19 23:10 cakarlen

I am not sure why this would happen, and would suggest some more debugging / reversing of the target app. Chances are that one of the arguments cant be dumped the way it is being done here.

leonjza avatar Jan 14 '20 07:01 leonjza