Commit Graph

371 Commits

Author SHA1 Message Date
Ole André Vadla Ravnås 2a583e9b30 Handle Ctrl+C the same way without a terminal 2018-03-15 15:19:59 +01:00
Ole André Vadla Ravnås 25bc4184f0 Fix teardown when running without a terminal
Instead of waiting indefinitely for a line to arrive on stdin.
2018-03-15 14:42:15 +01:00
Ole André Vadla Ravnås 6dbf4bd283 Only adjust cursor position when we have a terminal 2018-03-15 14:31:18 +01:00
Ole André Vadla Ravnås 47f491c6b9 Tweak tagline to match website 2018-02-04 19:49:14 +01:00
Ole André Vadla Ravnås 3d4b1eee34 Improve the manpage parsing
Get a clean extract of the type and strip restrict modifiers.
2017-10-24 15:39:12 +02:00
otadmor d0876088a1 Respect TERM=dumb and fix call to get_input() (#127) 2017-10-24 00:01:51 +02:00
DanielKluev d8e2e049c5 Add DebugSymbol resolver to frida-trace (#126) 2017-10-18 16:28:06 +02:00
Ole André Vadla Ravnås 759fa47f5e Switch generated JavaScript to two space indentation
As this is more common for JS code.
2017-10-10 15:37:57 +02:00
douniwan5788 d11bdc96ca Improve manpage parser regexp
Modify the manpage parser regexp to support C Library Functions and BSD
style manpages.

Also improve the Objective-C output while at it.
2017-10-10 15:34:44 +02:00
John Coates dbb0704f2c Handle unicode decoding errors with replacing (#123) 2017-09-26 12:43:56 +02:00
Dylan K. Taylor b6d675e948 Fix TypeError when reading console input on Windows (#120) 2017-08-10 13:09:46 +02:00
Ole André Vadla Ravnås f2a6d6d08c Shorten the REPL prompt a bit 2017-07-30 18:57:52 +02:00
Ole André Vadla Ravnås 41276c896b Fix and simplify CodeShare decoding logic
No time to investigate this right now, so this will do for now.
2017-07-29 17:39:06 +02:00
Ole André Vadla Ravnås 7659b8d70a Fix CodeShare integration on Py3k < 3.6
We should decode the REST API response and not rely on json.loads()
accepting `bytes`, which it does starting with 3.6.

Thanks to @sdroege for reporting!
2017-07-29 17:24:09 +02:00
Fitblip 7859a2c0e6 Fix small bug in prompting for codeshare (#119) 2017-07-28 20:52:46 +02:00
Ole André Vadla Ravnås ccfb0ccd5e Wait a bit longer before displaying “waiting for device” 2017-07-27 00:33:59 +02:00
Ole André Vadla Ravnås 346a2b2068 Fix REPL behavior when running with non-TTY stdio streams
Also keep running even if stdin is closed, to allow use in scripts
that run the REPL in the background.
2017-07-27 00:12:44 +02:00
Ole André Vadla Ravnås 6379dbc16b Stop on SIGTERM 2017-07-27 00:10:47 +02:00
Ole André Vadla Ravnås 5e4299d000 Load codeshare script early to avoid stdin conflicts 2017-07-12 14:41:12 +02:00
Ole André Vadla Ravnås c5943bf156 Move history file to ~/.frida/history 2017-07-12 14:21:40 +02:00
Ole André Vadla Ravnås b414318283 Re-sort imports to flow alphabetically 2017-07-12 14:08:15 +02:00
Fitblip cf63b8a1a3 Add Frida Codeshare integration! 🎉 (#113)
Introduces the `-c`/`--codeshare` argument that takes in a project
URI/slug (ex. `fitblip/hello-world`), pulls down the source code from
codeshare.frida.re, checks the signature and either prompts the user to
accept it and run or reject it.
2017-07-12 14:02:59 +02:00
Ole André Vadla Ravnås 735828c853 Fix deadlock when one reactor work item schedules another
We should only wait() if the queue didn't change during work().

Kudos to @giantpune for helping track down this long-standing issue.
2017-07-11 17:23:31 +02:00
Ole André Vadla Ravnås 2e685e1885 Skip device selection options for frida-ls-devices
Kudos to @trufae for reporting.
2017-06-13 22:28:32 +02:00
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 604d027b52 Remove the autotools build system 2017-05-20 03:43:39 +02:00
Ole André Vadla Ravnås 1316e28db5 Port to Meson (#110) 2017-05-20 03:19:58 +02:00
Ole André Vadla Ravnås 6084f2fef4 Update mac → macos 2017-05-10 14:34:50 +02:00
Ole André Vadla Ravnås 1204a21fb3 Update to the new bytecode API 2017-05-02 01:15:54 +02:00
Viren Nadkarni 31a9fe5d01 Implement frida-kill command (#105) 2017-03-20 19:38:13 +01:00
Philippe Teuwen b098cf7cac Honor https_proxy when installing through setup.py
Fixes #99.
2017-01-19 00:34:34 +01:00
Ole André Vadla Ravnås 3b738e6dbd Remove noisy “Stopping...” feedback 2017-01-14 06:07:13 +01:00
Ole André Vadla Ravnås 8b402da441 Show reason when detached 2017-01-14 06:06:37 +01: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 914d931e2b Fix RPC deadlock if Script is destroyed mid-request 2017-01-13 03:32:45 +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 9c876f457c Enable JIT to be able to use the Stalker API 2017-01-08 22:58:13 +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 89340c1526 Move logfile functionality to the REPL as intended 2017-01-08 18:47:36 +01:00
r-e-l-z 593bba3ab8 Add option to write all REPL prints to a logfile (#100) 2017-01-08 18:27:03 +01:00
Ole André Vadla Ravnås 217f12e7da Update description 2016-12-14 23:58:18 +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 b30a07ad10 Add batch mode support to the REPL
Fixes #89 (-e) and also fixes #90 (-q).
2016-10-23 00:05:18 +02:00