sensepost / objection

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

This looks like a code related error #416

Closed YiJ-debug closed 3 years ago

YiJ-debug commented 4 years ago

android heap execute 0x2356

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 "/root/.pyenv/versions/3.8.0/lib/python3.8/site-packages/objection/console/repl.py", line 371, in start_repl self.run_command(document) File "/root/.pyenv/versions/3.8.0/lib/python3.8/site-packages/objection/console/repl.py", line 185, in run_command exec_method(arguments) File "/root/.pyenv/versions/3.8.0/lib/python3.8/site-packages/objection/commands/android/heap.py", line 118, in execute method = args[1] IndexError: list index out of range

leonjza commented 4 years ago

Could you fill in the issue template details please?

leonjza commented 4 years ago

I am assuming you did not give the function to call on the handle, and the command validation could be more verbose about it.

Try android heap execute <handle> <function>

YiJ-debug commented 4 years ago

yes, thanks reply. but i see other one use this like "android heap execute 0xhandle", then, it will output "(The handle at 0xhandle will be available as the clazz variable.)",but when i try it, i can't get this result, i get an error, like submitted above.

YiJ-debug commented 4 years ago

like this: www.anquanke.com/post/id/197657#h3-4, when u open it, u can search "android heap evaluate 0x2526", then u will see it.

leonjza commented 4 years ago

evalute will drop you in a small editor to write some JavaScript for a handle. execute lets you execute a function on a handle.

YiJ-debug commented 4 years ago

ohh, it's my wrong, thank u very much.