sensepost / objection

📱 objection - runtime mobile exploration
GNU General Public License v3.0
7.53k stars 854 forks source link

Hooking NSURLRequest with --dump-args crashes Objection #279

Closed cakarlen closed 3 months ago

cakarlen commented 5 years ago

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):

leonjza commented 4 years ago

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.

IPMegladon commented 3 months ago

Stale issue, feel free to reopen