14 Commits
Author SHA1 Message Date
Megladon d9d50c206d (fix) update tests and minor bugfixes (#784)
* (fix) update tests

* (fix) Fixed bug with code dynamic+flag code completion.

* (fix) Fixed issue with `os.path.isabs` on Windows.

* Updated makefile for tests.
2026-07-23 15:40:22 +02:00
MegladonandCarlos Holguera 228c5e3399 (feat) Add local connection option for iOS simulator. (#795)
* (feat) --local connection option for iOS simulator.
* (feat) determine platform using available bridge.


---------

Co-authored-by: Carlos Holguera <[email protected]>
2026-04-12 20:32:50 +02:00
Leon Jacobs 0b6413877c (chore) style fixes, tweaks and remove some tests 2022-02-13 12:14:14 +02:00
Leon Jacobs 865fb7dbe4 (feat/wip) refactor spawning logic to support early instrumentation
this commit contains many changes. the most important of which
is a completely rewritten Agent class, improving support for
early instrumentation.

pre this commit, because we we're injecting the frida gadget in
target applications, we expected communications to occur over
a tcp socket. as far back as frida 12.7+ support injecting the
frida-server into applications that are debuggable vastly
simplifies this process in jailed environments. as such, we can
use normal "usb" comms, and thereby more closely follow the
same logic as found in frida-* tools.

a small changelog for all the changes:

- remove the get_device_info() call that relied on frida scripts
  to get information about the platform. instead we're now using
  device.query_system_parameters()
- replace the old `explore` command with a new `start` command
- support spawning new applications
- support attaching to the frontmost application
- support enabling the node debug port, accessible via the chrome
  debugger
- support immediately resuming apps
- replace os with pathlib in some places
- remove the `objection device_type` command
- add the `resume` repl command to resume apps
- add a prompt token to show the current process state (pause/run)

no tests were fixed, so expect most of them to fail :P

related issues: #473, #474
2021-10-25 20:17:53 +02:00
Leon Jacobs 09ecc5c11c Fix tests. 2019-06-21 15:15:14 +02:00
Leon Jacobs 4671941c8d Upgrade to prompt-toolkit 2.x 2019-01-28 20:14:59 +02:00
Leon Jacobs 37c6beb8d8 Fix reconnect/reset commands. 2019-01-24 21:32:39 +02:00
Leon Jacobs 819994349e Fix tests. 2019-01-24 14:26:25 +02:00
Leon Jacobs 5b56e0f2d6 Do not skip asset decoding by default.
This introduced a lot more pain that what it was trying to avoid.
Also helps with #63.
2018-04-08 14:23:34 +02:00
Leon Jacobs 484963461f Add ability to patch in a network_security_config.xml for Android 7+
Fixes #48
2018-03-12 15:18:17 +02:00
Leon Jacobs f3f5c8ff74 Skip resource decoding for APK's by default.
This commit adds the `--decode-resources` flag for cases where this
might still be needed.

Fixes #56, #58 and #59.
2018-03-06 15:26:57 +02:00
Leon Jacobs acf06433a0 Add the --enable-debug flag to the APK patcher.
This will result in the AndroidManifiest.xml getting the
"android:debuggable"="true" attribute set in the <application>
tag of the resultant APK.
2017-10-16 10:12:56 +02:00
Leon Jacobs f9ff4fc85c Add more tests for utils/ 🤖 2017-10-09 09:18:24 +02:00
Leon Jacobs f9c10af0d9 Add tests! 🤖
To run tests, execute: python -m unittest
2017-10-08 13:30:19 +02:00