Commit Graph

1633 Commits

Author SHA1 Message Date
Eloi Sanfelix
d3c6c4f837 - Added ARM reg profile. Preliminary testing on qemu-system-arm.
- Fixed segfault when gdb connection dead after setting bp's.
2011-05-16 19:52:44 +02:00
pancake
1aa4494819 * Nothing to see here 2011-05-16 10:18:04 +02:00
pancake
ced931c235 * Check if configure was executed before make
* Added r_cons_set_cup() method to RCons api
  - Enable/Disable terminal scrolling by using the cursor
     addressing mode of the terminal.
  - Those escape codes are terminal specific and not portable
  - Added test program to display cup information
  - Thanks eddyb for noticing!
2011-05-16 01:47:01 +02:00
pancake
7e917da3db * Use $(shell) instead of ``
- Compile time should be a little faster now
* Fix warning in lang_perl
2011-05-15 04:31:08 +02:00
pancake
6277d904d9 * Initial import of r_sys_crash_handler ()
- Launch 'gdb --pid %d' when crashing
  - Enabled when R_DEBUG is set
* List environment variables in help message
2011-05-15 04:20:59 +02:00
pancake
db61c1640a * Implement simple ciphering algorithm to bundle rasc2 shellcodes
- Should trick some silly antiviruses to stop claiming that
    the w32 build is malware
* Unify the python-config-wrapper scripts

--HG--
rename : binr/rasc2/shellcodes.c => binr/rasc2/shellcodes.c.src
2011-05-15 03:33:31 +02:00
pancake
7a4343aa1e * Cleanup the build of the python r_lang plugin
* Use ${MAKE} instead of 'make' in swig/ (Thanks Edd Barrett!)
* Fix build in OpenBSD (missing #include)
2011-05-14 13:10:51 +02:00
Nibble
9e6a761b69 * Merge 2011-05-13 12:25:34 +02:00
Nibble
9c3dd26eb1 * Fix analysis in bins with sections with vaddr = 0 2011-05-13 12:24:17 +02:00
pancake
80492f5620 * Fix help message in radiff2 2011-05-13 12:14:00 +02:00
pancake
425fe596f4 * Fix many warning messages
* Initial implementation of r_debug_rap
* Implement 'dcu from to' (ranged stop point)
* Use RList in r_lib (list.h has been deprecated)
2011-05-13 10:22:28 +02:00
pancake
a3050fce7b * Implement r_fs_view() method to set visibility options for filesystems
- Added enum for VIEW_{DELETED|SPECIAL} ...
  - Implement support for listing deleted files for FAT.
  - Experimental state
* Add 'fs.view' eval variable
  - values normal, all, deleted and special
  - only 3 letters are checked 'del' and 'spe' are ok
* Add missing include files
2011-05-13 02:31:18 +02:00
pancake
c2d5f9215b * Move R_SYS_DIR and R_SYS_HOME into r_types.h
* Parse space separated words in rax2
* Added r_str_binstr2bin() helper function in r_util/str
  - Converts binary string to raw bytes
  - rax2 -b is the commandline frontend for this
2011-05-13 00:25:36 +02:00
pancake
05f0e7e56b * Fix step in OSX debugger
* Avoid C99 stuff in anal_avr
* Escape string passed to "/ " search command
  - Fix return value of r_str_escape
  - Thanks Gerardo for noticing!
* Kill process before reopening in 'oo' command when cfg.debug=true
  - Fix segfault when RIOMach* is NULL after reopening
2011-05-12 20:28:44 +02:00
earada
95e51548b6 * mg now support files and dirs
* Fix bin_fs build
2011-05-12 15:01:29 +02:00
pancake
09577a9246 * Initial import of the r_bin_fs plugin
- Autodetects underlying filesystem
  - Auomatically mounts a /root partition
  - Only support for 'HFS+' filesystem (as a test)
* Added 'oo' command to reopen current file
  - In debugger mode re-forks the process
2011-05-12 09:52:40 +02:00
earada
21891a992a * Add dir_dump and find functions to r_fs
* Update RFS vapi
2011-05-12 01:17:35 +02:00
Eloi Sanfelix
6face4ffc7 Remove debug prints 2011-05-11 20:27:33 +02:00
Eloi Sanfelix
f96c6b51b2 Merged 2011-05-11 20:12:21 +02:00
Eloi Sanfelix
05b6e7d333 Added io-based bp's for SH (crashes qemu, but should be ok for userspace progs) 2011-05-11 20:11:44 +02:00
Eloi Sanfelix
b4b909ec1a - Fixed breakpoint behaviour
* Find recoil
	* Set pc to addr-recoil properly
	* Fixed bp_restore: per bp, check if handled, else do via io.write

- Improved debug_gdb
	* Added 'read all regs to buffer'
	* Added breakpoint callback: check if supported first time, else return FALSE

- Maybe something else...
2011-05-11 20:08:19 +02:00
pancake
5b601d4c13 * Fix many possible malloc(0) bugs (Thanks Edd Barret for noticing!)
* Set cmd->nullcallback to NULL by default
2011-05-11 19:19:53 +02:00
pancake
b9fe1c0885 * Fix build 2011-05-11 16:48:20 +02:00
Eloi Sanfelix
ed15598061 - Fix r_bp_restore NULL ptr exception and extra loop over list
- Remove debug printf in debug_gdb
2011-05-08 18:51:23 +02:00
Eloi Sanfelix
9c3538308a Fixed reg_profile in anal_sh and added sh's profile to debug_gdb. 2011-05-07 19:23:39 +02:00
Eloi Sanfelix
5db2925d1b Fixed reg_profile adding RDebug param. 2011-05-07 18:19:16 +02:00
pancake
b910c54714 * Fix getreg for r_debug_gdb on x86 (add profile)
* Add bits and arch fields in RAnalPlugin struct
  - mrproper is required
2011-05-06 19:56:16 +02:00
pancake
bd017111d7 * Fix r2 -d gdb://
- compile debug_gdb plugin statically
  - fix filename construction path
  - /path after :port in gdb uri is now ignored
2011-05-06 17:14:31 +02:00
pancake
e83156f06a * Apply rvalles patch for AVR code analysis
- Adds support for absolute JMP and CALL instructions
2011-05-06 10:01:48 +02:00
pancake
3f2677ab7f * Added initial untested support for native gdb debugger mode
- r2 -d gdb://<host>:<port>
  - register maps not yet implemented
  - some basic step/continue should work in cfg.debug=true
  - gdbwrap instance is shared between RIO and RDebug
* RDebug is now arch-sensitive
  - Plugins describe which architectures and register sizes are supported
  - Native debugger is restricted to local CPU
  - Remote debugger (GDB) arch can be specified with -e asm.arch=arm
* Fix some random warnings
* Move R_ASM_ARCH into R_SYS_ARCH
  - Helper functions to translate id to string and string to id
    are now in util/sys.c (r_util)
  - Move all R_SYS_* from r_util to r_types
    - Endianness, OS, CPU and regsize is now 'global'
2011-05-06 00:59:10 +02:00
pancake
bae9673ac4 * Implement basic code analysis support for AVR
- Thanks Roc Vallès for the contrib!
* Fix AVR disassembler branch output
2011-05-05 23:33:58 +02:00
earada
f49b0c573a * Update r_fs vapi
* Refactor r_socket unix connect
2011-05-05 17:32:56 +02:00
earada
6eb3578025 * RSocket API refactor
* Fix RAnal vapi
2011-05-05 03:41:57 +02:00
earada
ac786a03dd * Add OSX x64 Reverse TCP Shellcode
* Fix rasc2 enviroment vars
* Change some files license from GPL3 to LGPL
* Fix some typos
2011-05-03 23:43:16 +02:00
pancake
3e77100e78 * Refactor r_file_tmpdir() 2011-05-03 19:36:06 +02:00
pancake
64699f476b * Fix debugger on OSX x86-64
- dc  (works now)
  - dcu (continue until address) works
  - db  (breakpoints mostly works (sw only))
  - page permissions are not correctly restored yet
* Add new API to list threads from a process
2011-05-01 04:00:59 +02:00
pancake
e8a2d5b4cf * Fix '>' (pipe to file) functionality in OpenBSD
* Fix build of python plugin in OpenBSD (python2.5)
* Fix initialization of dbg->arch and remove useless printf
* Do not compile cons/color.c (unused)
* Use snprintf, memcpy instead of sprintf/strcpy
2011-04-04 18:33:27 +02:00
pancake
a96c41f8a8 * Fix ptrace read 2011-04-04 13:53:05 +02:00
pancake
f5666844e0 * Fix debugger for BSD systems (OpenBSD)
- contsc callback accepts a new argument
  - abi changed. must recompile libr/debug and libr/core
  - Deprecate dbgplg->archs
2011-04-03 16:38:24 +02:00
pancake
17189725d2 * Fix other use-after-free bugs related to r_list_unlink
- Use r_list_delete instead of r_list_unlink in various places
    - Some operations are now a bit faster
2011-04-29 13:55:27 +02:00
pancake
1210a6c4eb * Simplify cons-html code (-50LOC) 2011-04-29 10:38:01 +02:00
pancake
020dd97a8b * Fix many segfaults discovered in OpenBSD
* Fix segfaults caused by read buffer overflow in x86im
  - use a 16 byte delta buffer in function and basic block analysis
* Fix r_list_delete segfault caused by an use-after-free bug
  - Thanks Edd Barrett for notifying :)
* Clean up many warnings reported by OpenBSD's gcc
* Reduce analysis depth to 50
* Fix OpenBSD syscall definitions and fix generator python script
2011-04-03 02:43:15 +02:00
pancake
a2a58c8dc3 * Commited syscall entries for OpenBSD (thanks Edd Barrett!) 2011-04-28 18:31:06 +02:00
pancake
28de8a232f * Fix build of rapatch 2011-04-28 09:50:38 +02:00
earada
708e10e413 * Change some files license from GPL3 to LGPL
* Fix build
2011-04-28 02:09:43 +02:00
earada
ee7fefb41f * Initial dex-files format support 2011-04-28 01:54:54 +02:00
pancake
fad6bc0886 * Commited 'rapatch' from lacon-2010 talk 2011-04-28 01:19:38 +02:00
pancake
8bef25d14d * Fix segfault in bin_java (still buggy and duppy)
* Change asm_bf license from gpl3 to lgpl
2011-04-27 16:51:41 +02:00
pancake
e4094a0cee * Fix RCore.read_at vapi and partial reads 2011-04-25 20:09:09 +02:00
pancake
0cd30e9a24 * Fix LIBVERSION check 2011-04-25 18:11:01 +02:00