41 Commits

Author SHA1 Message Date
Ole André Vadla Ravnås d8da49058d tests: Move RPC tests to exports_sync
So they don't break once we make `exports` async.
2024-03-21 23:21:33 +01:00
Orip 2c805431bd Remove PEP503 parser and egg downloader from setup.py 2022-09-21 20:20:26 +02:00
Yotam Nachum c0d8bc7cad Remove unused variables 2022-09-17 18:59:00 +03:00
Orip 102373d50d Remove python2 support from the tests 2022-09-12 20:59:52 +03:00
Yotam Nachum fc00ac2b75 Automatically format code with Black and Isort 2022-09-12 20:59:52 +03:00
Yotam Nachum bb8cb7ae7d Remove Python 2 imports fallback 2022-09-12 20:21:45 +03:00
Yotam Nachum 27337a5ce5 Remove unused backward compatibility header 2022-09-12 11:55:00 +03:00
Ole André Vadla Ravnås 708e9dbc05 tests: Revive unixvictim binaries for Linux/x86*
They're useful for testing 32- and 64-bit builds on the same system.
2022-05-04 20:54:49 +00:00
Ole André Vadla Ravnås 608ecc4e9b tests: Use /bin/cat as target on most platforms 2022-04-26 09:03:51 +02:00
Ole André Vadla Ravnås e23b8475d5 tests: Add unixvictim binaries for FreeBSD 2022-04-26 08:06:27 +02:00
GalaxySnail 86358c948c setup: Use PEP 503 instead of PyPI xmlrpc (#188)
To support mirrors.

Fixes #141.
2022-01-24 14:33:55 +01:00
Ole André Vadla Ravnås 15537d437e Improve the “script is destroyed” error message 2021-06-12 02:16:36 +02:00
Ole André Vadla Ravnås 03288953b1 Add unixvictim binaries for Linux/arm{hf,64} 2020-11-02 17:00:21 +01:00
Ole André Vadla Ravnås 542f1b8887 Regenerate unixvictim to support macOS/arm64 2020-10-27 20:43:55 +01:00
Ole André Vadla Ravnås 7d57f6807f Use our own test binaries on Linux also
So we can pick the appropriate one based on whether we're running on
a 32- or 64-bit Python interpreter. There's no need for our 32-bit
builds to support injection into 64-bit targets.
2020-04-20 23:13:46 +00:00
Ole André Vadla Ravnås 66bdd0ed30 Wire up get_device() instead of emulating it
This way it is automatically cancellable, and we get the performance
benefit of not having to wait for all backends to start.
2019-09-03 10:47:04 +02:00
Ole André Vadla Ravnås 665bf26078 Add test covering basics of RPC cancellation 2019-09-03 09:24:31 +02:00
Ole André Vadla Ravnås 9412e5b919 Remove redundant 'use strict' directives 2019-05-10 21:27:47 +02:00
Ole André Vadla Ravnås 74f84d302a Add workaround to improve test-suite reliability
Not all of our injectors handle injection into processes that haven't
finished initializing, so for now delay a little before attaching.
2019-05-07 01:18:37 +00:00
Ole André Vadla Ravnås 72899a4315 Drop convenience APIs and split out tools (#142)
Most use-cases will need to use some JS API that we're not bridging, so
it's better to keep our bindings simple.

It has also become clear that our CLI tools should be split out so Frida-based
tools don't have to depend on colorama, prompt_toolkit, and pygments.
2018-07-10 20:08:56 +02:00
Ole André Vadla Ravnås 6084f2fef4 Update mac → macos 2017-05-10 14:34:50 +02:00
Ole André Vadla Ravnås 9ab2b14f55 Fix Python 2.x regression 2017-01-13 04:46:31 +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 fa7380492e Add test coverage for detach mid-request 2017-01-13 03:38:17 +01:00
Ole André Vadla Ravnås 914d931e2b Fix RPC deadlock if Script is destroyed mid-request 2017-01-13 03:32:45 +01:00
Ole André Vadla Ravnås 3ddd672791 Fix tests when running without stdin attached 2016-12-22 21:34:59 +01:00
Ole André Vadla Ravnås 462c91debd Fix compatibility with the Duktape runtime 2016-02-18 02:15:31 +01:00
Ole André Vadla Ravnås 3bb81b566c Add support for rpc methods returning ArrayBuffer objects 2015-10-02 14:41:48 +02:00
Ole André Vadla Ravnås 98733a3388 Fix tests on OS X 10.11
Because `/bin/cat` is now considered a system program we are no longer
allowed to attach to it using `task_for_pid()`. Bundle our own test
program for Mac as a workaround.
2015-10-01 23:11:13 +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 7fd0c962be Fix test regressions 2015-06-07 18:02:06 +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 ac7f3432e1 Rename Process -> Session and expose create_script()
Also follow the same naming conventions as in frida-node.
2015-03-19 16:40:31 +01:00
Ole André Vadla Ravnås f9f04a06c4 Update discoverer test to its new internal API 2015-02-28 20:41:05 +01:00
Ole André Vadla Ravnås 6284b97c37 Factor out console application logic into a helper class
This introduces the -U/--usb switch for using a USB-tethered device instead
of the local system. Only iOS devices are supported for now (PR for completing
Android support in frida-core is most appreciated!).
2014-01-12 18:46:53 +01:00
Ole André Vadla Ravnås da7bdd50af Fix ordering of imports 2014-01-11 20:38:24 +01:00
Ole André Vadla Ravnås daef66eae5 Add encoding markers 2014-01-06 00:23:20 +01:00
Ole André Vadla Ravnås 0399aaa09b Improve Tracer so handlers can be defined on the file-system
Also fix Py3k issues.
2014-01-05 21:35:47 +01:00
Ole André Vadla Ravnås b0883ae28e Improve Discoverer structure and fix Py3k issues 2014-01-05 21:35:43 +01:00
Ole André Vadla Ravnås 808019ea9e Use one shared target process between all tests of each TestCase 2014-01-05 00:58:47 +01:00
Ole André Vadla Ravnås 15e6e6f864 Add some smoke tests to reduce future regressions 2014-01-04 23:16:21 +01:00