sensepost / objection

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

[bug] Watching a class method with a single overload - Android #356

Closed GOAT-FARM3R closed 4 years ago

GOAT-FARM3R commented 4 years ago

Describe the bug

com.app on (potato: 8.1.0) [usb] # android hooking watch class_method com.app.activities.ActivityName.onActivityResult                        
An unexpected internal exception has occurred. If this looks like a code related error, please file a bug report!
list index out of range

Python stack trace: Traceback (most recent call last):
  File "venv/lib/python3.8/site-packages/objection/console/repl.py", line 371, in start_repl
    self.run_command(document)
  File "venv/lib/python3.8/site-packages/objection/console/repl.py", line 185, in run_command
    exec_method(arguments)
  File "venv/lib/python3.8/site-packages/objection/commands/android/hooking.py", line 135, in watch_class_method
    overload_filter = args[1].replace(' ', '') if '--' not in args[1] else None
IndexError: list index out of range