Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion objection/console/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@
},
},
# ios commands
'ios': {
'ios': {
'meta': 'Commands specific to iOS',
'commands': {
'info': {
Expand Down
10 changes: 10 additions & 0 deletions objection/console/helpfiles/android.deoptimize.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Command: android deoptimize

Usage: android deoptimize

Forces the Android Runtime VM to execute code in the interpreter instead of
using any compiled/optimized code. This is useful for dynamic analysis and can
help with hooking and tracing operations.

Examples:
android deoptimize
10 changes: 10 additions & 0 deletions objection/console/helpfiles/android.heap.evaluate.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Command: android heap evaluate

Usage: android heap evaluate <object handle> <javascript>

Evaluates JavaScript on a Java object handle. This allows complex operations
and transformations using Frida's JavaScript runtime.

Examples:
android heap evaluate 0x12345678 "this.myMethod()"
android heap evaluate 0x12345678 "this.toString()"
13 changes: 13 additions & 0 deletions objection/console/helpfiles/android.heap.execute.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Command: android heap execute

Usage: android heap execute <object handle> <method name> [--return-string]

Executes a method on a Java object handle on the heap. This allows dynamic
invocation of object methods for testing and exploration.

Flags:
--return-string Convert the return value to a string

Examples:
android heap execute 0x12345678 toString
android heap execute 0x12345678 toString --return-string
9 changes: 9 additions & 0 deletions objection/console/helpfiles/android.heap.print.fields.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Command: android heap print fields

Usage: android heap print fields <object handle>

Prints instance fields for a Java object handle. This displays all accessible
field values for the specified object, useful for inspecting object state.

Examples:
android heap print fields 0x12345678
13 changes: 13 additions & 0 deletions objection/console/helpfiles/android.heap.print.methods.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Command: android heap print methods

Usage: android heap print methods <object handle> [--without-arguments]

Prints instance methods available for a Java object handle. This displays all
methods that can be called on the object, with optional method signatures.

Flags:
--without-arguments Do not display method argument information

Examples:
android heap print methods 0x12345678
android heap print methods 0x12345678 --without-arguments
9 changes: 9 additions & 0 deletions objection/console/helpfiles/android.heap.print.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Command: android heap print

Usage: android heap print <subcommand>

Contains subcommands to print information about objects on the Android heap.

Examples:
android heap print fields <handle>
android heap print methods <handle>
8 changes: 8 additions & 0 deletions objection/console/helpfiles/android.heap.search.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Command: android heap search

Usage: android heap search <subcommand>

Contains subcommands to search for information about the Android heap.

Examples:
android heap search instances <class name>
10 changes: 10 additions & 0 deletions objection/console/helpfiles/android.hooking.generate.class.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Command: android hooking generate class

Usage: android hooking generate class <class name>

Generates a generic Frida hook manager for the specified Android Java class.
This creates a template hook that can be customized for various hooking operations.

Examples:
android hooking generate class com.example.MyClass
android hooking generate class android.app.Activity
10 changes: 10 additions & 0 deletions objection/console/helpfiles/android.hooking.generate.simple.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Command: android hooking generate simple

Usage: android hooking generate simple <class name>

Generates simple Frida hooks for each method in the specified Android Java class.
This creates basic hooks that log method invocations without complex processing.

Examples:
android hooking generate simple com.example.MyClass
android hooking generate simple android.app.Activity
9 changes: 9 additions & 0 deletions objection/console/helpfiles/android.hooking.generate.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Command: android hooking generate

Usage: android hooking generate <subcommand>

Contains subcommands to generate Frida hooks for Android classes.

Examples:
android hooking generate class <class name>
android hooking generate simple <class name>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Command: android hooking get current_activity

Usage: android hooking get current_activity

Gets the currently foregrounded Android Activity. This is useful for identifying
which Activity is currently displayed to the user.

Examples:
android hooking get current_activity
8 changes: 8 additions & 0 deletions objection/console/helpfiles/android.hooking.get.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Command: android hooking get

Usage: android hooking get <subcommand>

Contains subcommands to get various values from the Android application.

Examples:
android hooking get current_activity
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Command: android hooking list class_loaders

Usage: android hooking list class_loaders

Lists the registered class loaders in the Android application.
This is useful for understanding the class loading hierarchy.

Examples:
android hooking list class_loaders
17 changes: 17 additions & 0 deletions objection/console/helpfiles/android.hooking.notify.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Command: android hooking notify

Usage: android hooking notify <class name> [--dump-args] [--dump-return] [--dump-backtrace] [--watch]

Notifies when a class becomes available in the application. This is useful
for hooking classes that may be loaded dynamically at runtime. Additional
flags can be used to dump arguments, return values, and backtraces.

Flags:
--dump-args Dump method arguments
--dump-return Dump method return values
--dump-backtrace Dump call stack backtrace
--watch Continue watching for invocations after class is found

Examples:
android hooking notify com.example.MyClass
android hooking notify com.example.MyClass --dump-args --watch
10 changes: 0 additions & 10 deletions objection/console/helpfiles/android.hooking.search.classes.txt

This file was deleted.

13 changes: 0 additions & 13 deletions objection/console/helpfiles/android.hooking.search.methods.txt

This file was deleted.

17 changes: 16 additions & 1 deletion objection/console/helpfiles/android.hooking.search.txt
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
Contains subcommands helpful when searching for classes and methods.
Command: android hooking search

Usage: android hooking search <pattern> [--json <filename>] [--only-classes]

Searches for classes and methods in the current Android application matching
the specified pattern. The pattern should be in the form <class>!<method>.

Flags:
--json <filename> Output results as JSON to the specified file
--only-classes Only show classes in search results, not methods

Examples:
android hooking search com.example.test
android hooking search *com.example*!*
android hooking search com.example --only-classes
android hooking search com.example --json search_results.json
7 changes: 0 additions & 7 deletions objection/console/helpfiles/android.hooking.watch.class.txt

This file was deleted.

21 changes: 0 additions & 21 deletions objection/console/helpfiles/android.hooking.watch.class_method.txt

This file was deleted.

21 changes: 20 additions & 1 deletion objection/console/helpfiles/android.hooking.watch.txt
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
Contains subcommands to watch for various bits of information on class invocations.
Command: android hooking watch

Usage: android hooking watch <class/method pattern>
[--dump-args] [--dump-backtrace] [--dump-return]

Hooks Android Java methods matching the specified pattern and reports on
invocations. The pattern can be a class name, a package pattern with
wildcards, or a specific class and method separated by an exclamation
mark (!).

Flags:
--dump-args Dump method arguments when invoked
--dump-backtrace Dump the call stack backtrace
--dump-return Dump method return values

Examples:
android hooking watch com.example.test
android hooking watch *com.example*!*
android hooking watch com.example.test.MyClass!login
android hooking watch com.example.test --dump-args --dump-return
9 changes: 9 additions & 0 deletions objection/console/helpfiles/android.ui.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Command: android ui

Usage: android ui <subcommand>

Contains subcommands for Android user interface operations.

Examples:
android ui screenshot
android ui FLAG_SECURE
9 changes: 9 additions & 0 deletions objection/console/helpfiles/commands.clear.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Command: commands clear

Usage: commands clear

Clears the current session's command history. After this command, no previous
commands will be available in the history.

Examples:
commands clear
9 changes: 9 additions & 0 deletions objection/console/helpfiles/commands.history.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Command: commands history

Usage: commands history

Lists all unique commands that have been run in the current session.
Duplicate commands are only shown once.

Examples:
commands history
9 changes: 9 additions & 0 deletions objection/console/helpfiles/commands.save.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Command: commands save

Usage: commands save

Saves all unique commands that have been run in the current session to a file.
The file path will be displayed after saving.

Examples:
commands save
10 changes: 10 additions & 0 deletions objection/console/helpfiles/commands.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Command: commands

Usage: commands <subcommand>

Contains subcommands for working with commands executed in the current session.

Examples:
commands history
commands save
commands clear
10 changes: 10 additions & 0 deletions objection/console/helpfiles/evaluate.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Command: evaluate

Usage: evaluate <javascript>

Evaluates JavaScript within the agent context. This allows direct execution of
Frida scripts for advanced manipulation and testing.

Examples:
evaluate "send({msg: 'hello'})"
evaluate "console.log(Java.enumerateLoadedClasses())"
11 changes: 0 additions & 11 deletions objection/console/helpfiles/file.download.txt

This file was deleted.

1 change: 0 additions & 1 deletion objection/console/helpfiles/file.txt

This file was deleted.

14 changes: 0 additions & 14 deletions objection/console/helpfiles/file.upload.txt

This file was deleted.

10 changes: 10 additions & 0 deletions objection/console/helpfiles/filesystem.cat.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Command: filesystem cat

Usage: filesystem cat <file path>

Prints a file's contents to the console. The file path should be relative to
the current working directory or an absolute path.

Examples:
filesystem cat config.txt
filesystem cat /var/mobile/Preferences/config.plist
14 changes: 14 additions & 0 deletions objection/console/helpfiles/filesystem.download.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Command: filesystem download

Usage: filesystem download <remote path> <local path> [--folder]

Downloads a file or folder from the remote device to the local machine. The
remote path can be relative to the current working directory or an absolute path.

Flags:
--folder Download a folder instead of a single file

Examples:
filesystem download test.txt
filesystem download /var/mobile/Preferences/config.plist
filesystem download /var/mobile/Documents Documents --folder
10 changes: 10 additions & 0 deletions objection/console/helpfiles/filesystem.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Command: filesystem

Usage: filesystem <subcommand>

Contains subcommands to work with files on the remote filesystem. Previously called `file`

Examples:
filesystem cat <file>
filesystem upload <local file> <remote path>
filesystem download <remote file or folder> [--folder]
Loading
Loading