Commit Graph

189 Commits

Author SHA1 Message Date
Asger Hautop Drewsen d27dfef002 Glob support for tracing ObjC methods 2015-05-31 23:48:16 +02:00
Ole André Vadla Ravnås b480225c52 Use PySys_WriteStdout() when handling console.log()
Fixes #33.
2015-05-30 23:38:43 +02:00
Ole André Vadla Ravnås 861102d224 Fix tab completion regression 2015-05-30 23:31:02 +02:00
Ole André Vadla Ravnås 6b4e291cac Add enumerate_applications() to Device 2015-05-30 09:29:20 +02:00
Ole André Vadla Ravnås 89930d1720 Fix loading of scripts with early function declaration 2015-05-27 14:02:42 +02:00
Ole André Vadla Ravnås 40895d91e5 Fix creation of new variables in the REPL
Fixes frida/frida-gum#46.
2015-05-12 20:10:34 +02:00
Ole André Vadla Ravnås 703fddd9d5 Remove obsolete comment 2015-05-12 19:42:54 +02:00
Ole André Vadla Ravnås e8b811f326 Fix frida-repl on Windows 2015-05-10 12:46:12 +02:00
Ole André Vadla Ravnås 5a7e4abbb8 Update to the latest ObjC API 2015-05-07 21:39:23 +02:00
Ole André Vadla Ravnås f73923117a Simplify the ObjC include logic 2015-05-06 02:55:36 +02:00
Ole André Vadla Ravnås 370461e401 Fix Py3k regression 2015-05-06 00:01:33 +02:00
Ole André Vadla Ravnås a8c3cf882a Fix escaping of the resolver script 2015-05-05 23:33:21 +02:00
Ole André Vadla Ravnås b845b4a244 Remove the module property from the REPL scope
It's not really that useful now that `Process.enumerateModulesSync()` is
available.
2015-05-05 23:24:43 +02:00
Ole André Vadla Ravnås a44606278c Fix quotes in ProcessNotFoundError 2015-05-05 23:23:56 +02:00
Ole André Vadla Ravnås 9bf5f1ef89 Optimize function resolving by moving it to the target process
No matter how fast we make the exports enumeration we will still have to
transfer about 12 MB of data for a typical iOS app. Thus it is a better
idea to move the processing to the target app, as it'll take a lot less
time even if there might be limited processing power.
2015-05-05 23:23:00 +02:00
Ole André Vadla Ravnås 5df7bcc6db Fix Module._do_ensure_function() initialization logic 2015-05-05 20:18:46 +02:00
Ole André Vadla Ravnås d8f5f60cf8 Filter out non-function exports 2015-05-05 20:10:16 +02:00
Ole André Vadla Ravnås 2a8c41b4ba Combine all export enumerations into one request to save roundtrips 2015-05-04 01:05:24 +02:00
Ole André Vadla Ravnås bf883d4bcf Use a persistent session script to speed things up
For a typical frida-trace run on an iOS app the “Resolving functions”
step now finishes in half the time.
2015-05-04 00:37:39 +02:00
Ole André Vadla Ravnås baea2c3ab8 Fix trailing whitespace 2015-05-03 20:07:16 +02:00
B baf4a142aa Improved code style 2015-05-02 17:53:03 +02:00
B 80a4a98ae8 Using the -E switch only in case of GNU man 2015-05-02 16:47:48 +02:00
B 388c55a35b Forcing man encode its output 2015-05-02 15:06:58 +02:00
B 8a0ec3c268 Gracefully handling unicode errors 2015-05-02 13:32:34 +02:00
Ole André Vadla Ravnås 80e2ea31d0 Add frida.TransportError 2015-04-30 03:08:56 +02:00
Ole André Vadla Ravnås 33fee44cdb Warn if gnureadline isn't available when running on Darwin 2015-04-29 23:05:56 +02:00
Ole André Vadla Ravnås 34db27cd1d Make use of the errordomain API exposed by frida-core 2015-04-28 23:38:29 +02:00
Ole André Vadla Ravnås e47a6cf140 Fix handling of binary data 2015-04-27 00:40:20 +02:00
Ole André Vadla Ravnås c2a26de306 Remove support for spawn(command_line)
The `spawn(argv)` API is better and leads to less confusion.
2015-04-23 02:17:32 +02:00
Ole André Vadla Ravnås 426c18f6ce Generate a unique name for every REPL script created
This is to avoid confusing the debugger.
2015-04-19 00:55:19 +02:00
Ole André Vadla Ravnås 6e1add127a Improve the REPL prompt 2015-04-18 22:19:08 +02:00
Ole André Vadla Ravnås 7df3bf28ee Fix CLI tools without a target process 2015-04-18 22:12:17 +02:00
Ole André Vadla Ravnås 592056c7e8 Rename the REPL -r/--run switch to -l/--load 2015-04-18 20:32:02 +02:00
Ole André Vadla Ravnås ff30d6dd98 Improve REPL to support loading, reloading and unloading a user script 2015-04-18 20:15:31 +02:00
Ole André Vadla Ravnås b6eb90ba3b Improve error message when spawning fails 2015-04-18 19:54:29 +02:00
Ole André Vadla Ravnås 04aef5eca2 Fix the REPL expression help logic 2015-04-18 19:10:44 +02:00
Ole André Vadla Ravnås 402328c505 Refactor the REPL to prepare for new features 2015-04-18 17:33:32 +02:00
Ole André Vadla Ravnås 735fee39ef Improve the REPL progress feedback 2015-04-18 01:18:28 +02:00
Ole André Vadla Ravnås 5215368e8c Add --debug switch to console scripts
This enables the Node.js compatible debugger on port 5858.
2015-04-18 01:18:11 +02:00
Ole André Vadla Ravnås d4c1aa5d16 Add --version support to the console scripts 2015-04-18 00:46:37 +02:00
Ole André Vadla Ravnås ae99674c6d Fix installation of the frida tool
There was a conflict between the directory and the tool with the same name.
2015-04-18 00:39:12 +02:00
Ole André Vadla Ravnås 67cfbebb34 Fix remaining frida-repl -> frida renames 2015-04-17 23:08:40 +02:00
Ole André Vadla Ravnås 3676b4e797 Fix warning reported by MSVC 2015-04-17 23:04:45 +02:00
Ole André Vadla Ravnås 9066c55a32 Use the actual version string in the REPL startup message 2015-04-17 22:19:51 +02:00
Ole André Vadla Ravnås 3fe86b99d9 Add frida.__version__ constant 2015-04-17 22:17:05 +02:00
Ole André Vadla Ravnås 3f8bd009ca Name all scripts created internally 2015-04-16 02:46:14 +02:00
Ole André Vadla Ravnås e0ea561f51 Fix spawn() argument parsing when passing a string 2015-04-16 02:23:03 +02:00
Ole André Vadla Ravnås cb45b607fc Fix inconsistent coding style 2015-04-14 21:29:48 +02:00
Ole André Vadla Ravnås e9cb1b7890 Fix handling of optional arguments 2015-04-14 21:29:39 +02:00
Ole André Vadla Ravnås 8ca3c47aee Add enable_debugger() and disable_debugger() to Session
The underlying implementation defaults to port 5858, which is the
default Node.js debugger port. Pass the `port` keyword argument to
override it:

```python
session.enable_debugger(port=1337)
```
2015-04-14 20:02:33 +02:00