Commit Graph

223 Commits

Author SHA1 Message Date
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 cba2fc854d Update gitignore 2015-04-18 00:41:57 +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
Ole André Vadla Ravnås 1104a011c5 Fix the __getattr__ chaining 2015-04-14 20:00:33 +02:00
Ole André Vadla Ravnås dc67d62923 Merge pull request #25 from Tyilo/trace-objc
Implement tracing ObjC methods with frida-trace
2015-04-12 02:48:00 +02:00
Asger Hautop Drewsen e7a83297c5 Implement tracing ObjC methods with frida-trace 2015-04-12 02:46:48 +02:00
Ole André Vadla Ravnås 643a0a0dfe Add support for naming scripts 2015-04-10 00:00:29 +02:00
Ole André Vadla Ravnås 496408800f Switch to the XP toolset 2015-04-03 15:34:05 +02:00
Ole André Vadla Ravnås b29f32399b Merge pull request #24 from Tyilo/history-fix
Fix duplicate readline history in repl
2015-03-29 16:11:38 +02:00
Asger Hautop Drewsen 6bd33b813e Fix duplicate readline history in repl 2015-03-29 15:49:13 +02:00
Ole André Vadla Ravnås 91dbde5ed3 Merge pull request #23 from Tyilo/repl-hist
Save the repl's history in ~/.frida_history
2015-03-29 15:40:32 +02:00
Asger Hautop Drewsen e3c8d66260 Save the repl's history in ~/.frida_history 2015-03-29 15:35:54 +02:00
Ole André Vadla Ravnås 0160426534 Only import readline once 2015-03-29 05:12:54 +02:00
Ole André Vadla Ravnås 27372807d4 Merge pull request #22 from Tyilo/py3-print
Fix repl for python3
2015-03-29 04:35:50 +02:00
Asger Hautop Drewsen 0fb95a2bd6 Fix repl for python3 2015-03-29 04:33:53 +02:00
Ole André Vadla Ravnås 716fe380b3 Merge pull request #21 from Fitblip/master
CLI improvements.
2015-03-29 01:22:21 +01:00
Fitblip 616d4b93fa Tweak setup.py to make frida-repl just frida from the command line. 2015-03-24 04:34:46 -07:00
Fitblip bc2d603e07 Ignore pycharm/jetbrains folder. 2015-03-24 04:30:07 -07:00
Fitblip a3cae6af98 Start work on magic methods (%paste, %run, %foo) and object inspector logic. 2015-03-24 04:18:12 -07:00
Fitblip 0d477f778b Add _synchronous_evaluate, tab completion, and some hacky nonsense in the JS component 2015-03-24 04:13:01 -07:00
Fitblip 9d51690ed7 New prompt and startup message :) 2015-03-24 04:09:59 -07:00
Fitblip 39fefd9be2 Detect OSX's shitty deadline impl and replace it with gnureadline 2015-03-24 04:04:31 -07:00
Ole André Vadla Ravnås ec2ec14325 Also handle log messages when no message handlers are attached 2015-03-22 21:21:11 +01:00
Ole André Vadla Ravnås c61264c6ac Merge pull request #20 from jgeralnik/master
Fix colorama/readline collision
2015-03-21 21:36:11 +01:00
Joey Geralnik e03b536234 Reset all colorama styles after use
This time I actually grepped instead of just guessing
2015-03-21 22:22:31 +02:00
Joey Geralnik 0154a87b87 Reset colorama style after use 2015-03-21 22:16:34 +02:00
Joey Geralnik af3df301ad Fix colorama/readline collision
Using autoreset=True in colorama's init function, causes it to wrap
stdin.
This is problematic because readline also messes with stdin, and
causes readline to stop working.

The solution is to simply not use autoreset=True, and then (at least
on non-windows platforms) stdin will not be wrapped
2015-03-21 21:42:15 +02:00