Commit Graph

59 Commits

Author SHA1 Message Date
Ole André Vadla Ravnås 4d6bfa058a Use the correct define for macOS-specific code 2017-05-21 19:35:07 +02:00
Ole André Vadla Ravnås 1204a21fb3 Update to the new bytecode API 2017-05-02 01:15:54 +02:00
Ole André Vadla Ravnås 68ed290f4e Fix inconsistent style 2017-01-13 05:52:43 +01:00
Ole André Vadla Ravnås c6429f0610 Fix marshalling of NULL string signal arguments 2017-01-13 05:51:50 +01:00
Ole André Vadla Ravnås 95666a14c7 Fix warnings reported by MSVC 2017-01-13 05:36:08 +01:00
Ole André Vadla Ravnås cfc8964c9d Fix regressions and warnings on Py3k 2017-01-13 04:39:37 +01:00
Ole André Vadla Ravnås c7ae43e531 Refactor to enable automatic signal bindings
This gives us the Script#destroyed signal which we need for solving
the RPC deadlock. It also gets rid of technical debt where a ton of
duplicated error-prone code was required per signal binding. There was
even a bug where every single one was unreffing the wrong Python object.
Oops.
2017-01-13 03:30:13 +01:00
Ole André Vadla Ravnås 7663a5096a Add support for the reason argument of Session#detached 2017-01-11 03:50:20 +01:00
Ole André Vadla Ravnås 6e80688d17 Update to the new JIT toggling API 2017-01-08 21:37:50 +01:00
Ole André Vadla Ravnås b4d4cced4b Expose the new library injection APIs of Device 2016-11-27 22:04:00 +01:00
Ole André Vadla Ravnås 2827307c97 Fix warning reported by MSVC 2016-11-17 15:33:49 +01:00
Ole André Vadla Ravnås 9c0430cf91 Fix build regression on Py3k
Turns out `PyObject_Compare()` is legacy and we should be using
`PyObject_RichCompareBool()` instead.
2016-10-26 21:05:56 +02:00
bsharet ae1705cada Compare signal callbacks as PyObjects and not as pointers (#92)
This fixes a bug that `ValueError` is raised when `off()` is called on an
instance method and not a simple Python function.
2016-10-26 15:40:09 +02:00
Ole André Vadla Ravnås 8ca9c0abb7 Update to the new 8.x API 2016-09-30 20:37:57 +02:00
Ole André Vadla Ravnås 4afd9debd4 Add support for the new bytecode APIs 2016-06-02 23:00:18 +02:00
Ole André Vadla Ravnås b7d6804e56 Add input() to Device 2016-04-02 03:03:33 +02:00
Ole André Vadla Ravnås 7e3c0a48e4 Add output signal to Device 2016-04-01 23:37:20 +02:00
Rafael Rivera 3fdf02fd51 Resolve pyconfig pain point in Windows build scenario 2016-02-20 01:29:18 -08:00
Ole André Vadla Ravnås 3173afd416 Add add_remote_device() and remove_remote_device() to DeviceManager 2016-02-19 02:48:14 +01:00
Ole André Vadla Ravnås eabb99c3c5 Add a simple wrapper for GLib's FileMonitor 2016-02-06 23:25:45 +01:00
Ole André Vadla Ravnås 7c0ec26f44 Add disable_jit() to Session 2016-01-14 04:00:05 +01:00
Ole André Vadla Ravnås b84f30b0c9 Make PySession_disable_debugger() METH_NOARGS as it should be 2016-01-14 03:59:39 +01:00
Ole André Vadla Ravnås a496d8ff31 Suppress warning caused by the Python 3.5 headers 2015-12-07 17:16:02 +01:00
Ole André Vadla Ravnås 0de6b5315d Fix UTF-8 fields being accidentally exposed as str on Python 2.x
We expose them as strings on Py3k, so that means we should be exposing
them as unicode on Python 2.x.

Thanks to @progopis and @Proteas for reporting!

Closes #58 and #61.
2015-11-26 17:39:26 +03:00
Ole André Vadla Ravnås c5c2e60f33 Update to the new Device.id API 2015-09-13 18:55:48 +02:00
Ole André Vadla Ravnås 7758cf486e Add support for the new spawn gating API 2015-09-10 03:00:32 +02:00
Ole André Vadla Ravnås 86baff28b3 Allow script source and name to be unicode on Python 2.x also 2015-08-21 21:15:56 +02:00
Ole André Vadla Ravnås 3670b56e2c Add support for calling RPC exports 2015-07-31 20:24:15 +02:00
Ole André Vadla Ravnås cb34be7f0a Add Device.get_frontmost_application() 2015-07-15 03:47:15 +02:00
Ole André Vadla Ravnås e6479978d4 Add support for Application#pid 2015-06-02 14:46:22 +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 6b4e291cac Add enumerate_applications() to Device 2015-05-30 09:29:20 +02:00
Ole André Vadla Ravnås 80e2ea31d0 Add frida.TransportError 2015-04-30 03:08: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 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 3676b4e797 Fix warning reported by MSVC 2015-04-17 23:04:45 +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 e0ea561f51 Fix spawn() argument parsing when passing a string 2015-04-16 02:23:03 +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 643a0a0dfe Add support for naming scripts 2015-04-10 00:00:29 +02: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 77d89e4b6d Safely unref the device list 2015-03-04 14:49:06 +01:00
Ole André Vadla Ravnås 59107bab70 Add support for the new log message type 2015-02-28 22:20:29 +01:00
Ole André Vadla Ravnås 24b45d6d54 Fix Py3k regression 2015-02-22 04:08:53 +01:00
Ole André Vadla Ravnås 3bb3f55791 Always pass envp by using GLib's portable g_get_environ 2015-02-22 02:00:42 +01:00
Ole André Vadla Ravnås 2215f22a58 Add support for Device.kill() 2015-02-22 01:59:21 +01:00
Ole André Vadla Ravnås a5505f2b04 Improve Device.spawn() to also allow passing a sequence of strings 2015-02-22 01:58:25 +01:00
Ole André Vadla Ravnås e97953d730 Fix shutdown race conditions by updating to the new core API 2014-10-28 13:36:24 +01:00
Ole André Vadla Ravnås dae01d8d6b Change license to wxWindows Library Licence
This is essentially the LGPL, with an exception stating that derived
works in binary form may be distributed on the user's own terms.
This is a solution that satisfies those who wish to produce GPL'ed
software using Frida, and also those producing proprietary software.
2014-07-10 23:34:50 +02:00