Commit graph

80 commits

Author SHA1 Message Date
pancake
a05003fd5c Code cleanup -20LOC and get pagesize from target task in io.mach 2016-06-29 10:54:27 +02:00
pancake
1a4177fed5 Fix exit in =! after o- a debugged process 2016-06-26 02:00:53 +02:00
pancake
4caafc964d Refactor r_io, while fixing some bugs and use more RList 2016-06-20 00:29:41 +02:00
pancake
66e783965f Fix build and oobreads in =!pid 2016-06-16 23:42:11 +02:00
pancake
4e67a31087 Fix some more =!pid cmd parsing issues 2016-06-16 22:53:16 +02:00
Sven Steinbauer
5ad7b9e2f2 Expand on error message for unsigned OSX binary
If r2 is unsigned the message the user gets when trying to debug with it
isn't clear as to what the problem is. Add a line to suggest most likely issue and go see the docs to get a cert.
2016-05-10 22:16:14 +02:00
pancake
846263a51b Implement ios9 pangu's tfp0 in the debugger 2016-03-14 23:24:49 +01:00
pancake
d5c9f1d987 Add support for the iOS9 Pangu tfp0 trick 2016-03-14 23:01:12 +01:00
pancake
ec41dca741 Fix lowercase sdb filenames for DLL import resolution 2016-03-03 11:03:14 +01:00
pancake
b559833a00 Release 0.10.1 Codename "Solid Chair Society" 2016-02-29 22:59:35 +01:00
pancake
3e53c64553 Fix #4165 - Reduce warning messages in debugger mode 2016-02-25 01:55:16 +01:00
pancake
8d68403a37 Simplify task_id_dead in io.mach 2016-02-23 00:53:16 +01:00
Álvaro Felipe Melchor
20fddc1e55 xnu: fix issue when writing in memory 2016-02-22 21:21:57 +01:00
pancake
808c205f74 Fix r_io_section_next() and make io.sectonly happy 2016-02-20 22:51:34 +01:00
Álvaro Felipe Melchor
98490aa881 xnu: chained step thumb32 seems to work 2016-02-17 13:37:50 +01:00
Álvaro Felipe Melchor
ec3ac37bb5 Fix ios build and more rework 2016-02-16 17:33:41 +01:00
Álvaro Felipe Melchor
073e08321a xnu: use host_page_size instead of task_info with TASK_VM_INFO flag 2016-02-13 22:17:26 +01:00
Álvaro Felipe Melchor
c24dbc3054 Fix warnings 2016-02-13 22:17:21 +01:00
Álvaro Felipe Melchor
efa2a8ecdf xnu: step, breakpoint working with mach exception 2016-02-06 19:53:29 +01:00
Álvaro Felipe Melchor
feea7f4d17 xnu: change logic handle exception
instead of a thread waiting for incoming messages, i've implemented
wait functionality above mach_msg, now i have to make it work
with r2 and avoid while (1) in the code, understand better the
references and start thinking about edge cases
2016-02-02 20:27:57 +01:00
Álvaro Felipe Melchor
c372743315 xnu: get rid of ptrace even for attach and detach
some rework in order to handle mach message as mach_exc_server and alike does
api change in plugin debug, now the function detach receive a pointer to RDebug
trying to deallocate port when are not needed any more
2016-01-23 22:50:28 +01:00
Álvaro Felipe Melchor
d9e77ca0d1 xnu: first series of patches to use mach exceptions
* use set_trace_bit and clear_trace_bit macros

* use PT_ATTACHEXC since PT_ATTACH will be deprecated in the future
and we are interested in receiving mach exceptions

* first attempt to handle mach exceptions

* api change: added a parameter to r_core_setup_debugger
at least in OS X this function was producing double attachment.
I've added a boolean value to indicate when use dpa.

* added pipe to communicate between main process and traced process
by far this is not a good implementation. We should develop a better
approach/design to save all the exceptions and handle them accordingly.
This is the initial implementation

* bring back ptrace for stability and in order to merge this into master
2016-01-18 22:24:16 +01:00
pancake
d2a192cffc Fix #3760 - Honor iOS/OSX pre-map memory reads in io.mach 2016-01-07 01:23:14 +01:00
DZ_ruyk
0e8b42787a Boring typo fixes
Can't -> Cannot (since most of error messages use second form)
2016-01-07 00:13:54 +01:00
pancake
cc402a76c5 More refactorings towards a ptrace-free iOS/OSX debugger 2015-12-04 02:44:36 +01:00
pancake
fb8345276a Kill child if no perms to debug after spawn in OSX 2015-12-04 00:21:06 +01:00
pancake
9f522a4a9b Fix seek for ptrace and mach IO 2015-10-14 13:42:15 +02:00
pancake
f9b661f839 Hardcode pagesize for arm64 in native iOS debugger 2015-10-12 19:18:00 +02:00
pancake
747c7bbacb More fixes for io.mach.write 2015-10-11 03:07:53 +02:00
pancake
f6b19c6762 Fix many bugs in io.mach.write, add =!perm for mach debugger 2015-10-11 01:07:36 +02:00
pancake
49975ccf95 Fix #3286 - Use stdbool.h 2015-09-14 02:08:31 +02:00
Álvaro Felipe Melchor
1d4ebdeb25 some refactoring & added threads field in RDebug 2015-09-01 18:45:08 +02:00
pancake
ba49c8cefc Fix the tfp0 workaround for OSX (thanks @gdbinit) 2015-08-21 15:15:42 +02:00
pancake
f6c03ae340 Fix iOS build and integrate http://newosxbook.com/articles/PST2.html 2015-08-21 14:52:33 +02:00
pancake
701dd4a80e Add io.aslr and set it to false by default (used only for OSX atm) 2015-08-16 17:45:23 +02:00
pancake
0639261e26 Add more details for OSX code signing 2015-07-23 03:34:46 +02:00
Jonathan Neuschäfer
ecf6792318 Fix #2927 and random code cleanups
- asm_dcpu16: remove an obsolete comment
  It was obsoleted in 5285d1bdea.
- Indentation fixes
- fix a few typos
- remove "#define NEW_ESIL"
- move comment about r_bin_filter_name to the right place
- README.md: Add V810 to the list of supported architectures
- Also, de-duplicate LH5801
- Add attribution to randomart.c, fixes #2927
2015-07-12 19:20:36 +02:00
Jonathan Neuschäfer
523aa3af5c add .version to all plugins 2015-07-12 19:05:33 +02:00
pancake
cae1d3c8cc Initial work to support ios-arm64 builds 2015-07-07 00:23:08 +02:00
Riccardo Schirone
d43080e679 io/p/io_debug,io/p/io_mach: use strtol instead of strcmp + atoi 2015-07-02 09:14:50 +02:00
pancake
3b5f5f3e5d More fixes for tfp0 and iOS codesign 2015-07-02 02:06:25 +02:00
pancake
02ab1d68a1 Add support for iOS tfp0 debugging 2015-07-01 20:05:47 +02:00
pancake
8f25a9b344 Fix iOS build, crashes in reflines, analysis issues on OSX debugger and more! 2015-06-21 00:50:53 +02:00
pancake
26b579a600 Fix mach io issue that was showing up in analysis 2015-06-20 23:37:25 +02:00
pancake
9a0d62da22 Finally remove the void*debug pointer from RIOPlugin (use bool isdbg) 2014-11-21 11:36:51 +01:00
pancake
2aae2ad42b Remove unnecessary workaround sleep for Darwin debugging 2014-11-06 12:02:31 +01:00
pancake
dcfb90ae94 Wip Fix r2 -d oo (workaround, because it's a race condition in fork+pid2path) 2014-11-03 11:47:51 +01:00
condret
348b494e8c correct RIODesc->flags for w32dbg and mach 2014-10-08 02:02:16 +02:00
pancake
1de37f419a Fix cmd_pD tests by handling addressing overflows 2014-06-05 03:29:11 +02:00
pancake
26be34439a Fix r_io_mach_read for partial reads on segment limits 2014-06-05 01:32:05 +02:00