Commit Graph

1609 Commits

Author SHA1 Message Date
pancake
e0f8869e1b * Various minor visual fixups
* Add r_file_temp
2011-05-22 02:45:59 +02:00
pancake
2d0f551276 * Fix build with vala-tip
- static-struct/class is no longer supported
* Colorize call comments
2011-05-22 02:02:19 +02:00
pancake
9c84e94862 * Initial hacky implementation of s/ command
* e search.from is -1 by default
2011-05-22 01:36:23 +02:00
pancake
9c6d905c92 * Fix seek undo 2011-05-22 01:16:12 +02:00
pancake
9a26929858 * Implement inverse search /!x for example
- ./!x 00 # finds the first byte which is not 00 in hexa
2011-05-22 00:52:46 +02:00
earada
839bd60882 * Add mfs and mfo to search by name and offset
* Fix rafind2 build
2011-05-22 00:23:39 +02:00
pancake
e8c4267543 * Fix build 2011-05-21 22:14:59 +02:00
pancake
6099a388f6 * Reimplement r_flag using RHashTable64
- Much faster (over ninethousand)
  - Must do the same for code analysis stuff
  - Added test case
* Implement r_str_glob ()
2011-05-21 21:05:21 +02:00
pancake
37464fa7f5 * Fix some glitches in r_cons_column
* Bring back the ';' prefix for comments
* Added sf/sF commands to seek next/previous scr.fkey
* Implement /i to search strings ignoring case
* Fix '@' invalid reads issue
* Added 'cmd.cprompt' for column prompt in visual
* Add 'search.kwidx' to store last search index count
* Added 'ee' to edit with cfg.editor the value of an eval variable
2011-05-21 15:45:43 +02:00
pancake
a6f48ded22 * Added CC! command to use cfg.editor to modify comment
- CC-* removes all comments
  - Many bugfixes in comment handling code
  - comments are now turqoise and have no ';'
* Added r_cons_column -- add support for columned text
  - Added r_cons_justify to align text to right
  - Added r_cons_memset as a helper
  - Vv menu displays options and list in left and disasm at right
  - Allow to rename functions
  - Added ':' prompt in Vv menu
* Initial implementation for s/ command (search+seek)
* Use core->num->value for 'p' command (number of bytes used)
* Implement /i to search ignoring case
* Help for e scr.fkey=?
* Added r_core_editor() helper
* Fix use-after-free in r_anal/meta
2011-05-21 14:27:46 +02:00
pancake
f36b18aa3e * Added search.count
* Check null pointer before r_list_foreach
2011-05-20 22:42:11 +02:00
pancake
d7adf6e790 * Build gir bindings 2011-05-20 21:59:54 +02:00
pancake
b9526e254f * Minor fixes in r_util vapi 2011-05-20 21:21:39 +02:00
pancake
98af858f6a * Fix some warnings and build on linux 2011-05-20 21:04:16 +02:00
pancake
ef718ce968 * Added '+' support in print format 'pf' command
- Toggle visibility of referenced flags
2011-05-20 20:47:40 +02:00
pancake
233982c965 * Do not show useless error messages when child process is dead 2011-05-20 20:42:25 +02:00
pancake
b499275e36 * Use configure-langs from root configure.hook
- r_lang now obeys the rules specified in configure
    ./configure --enable=python,perl
2011-05-20 20:11:31 +02:00
pancake
a4b57487bf * Fix pkg-config-symstall
- Update all .pc files
* Fix 'pf d*' segfault
  - Show flag references in all 'pf' values
* Many bugfixes in vapis
  - Use nested namespaces instead of static classes
    - Static classes was deprecated in Vala some years ago
  - All bindings are working again
  - C++ support has been added
  - Guile is now compiled by default
* Added ./configure-langs to select which langs to use
  - Use --enable=python,perl or --disable=guile
2011-05-20 19:49:50 +02:00
pancake
53b08a13be * Fix path to pycfg wrapper for lang/p/python 2011-05-18 23:33:37 +02:00
pancake
acb7709bff * Fix OpenBSD python bindings
- Use -L$(pkg-config --prefix)/lib
  - Use -pthread when linking
* Many fixes in vapi bindings
  - Thanks eddyb!
2011-05-18 16:42:12 +02:00
pancake
30bb058d51 * Generate v8-gear files for r2-bindings with valabind 2011-05-18 16:09:28 +02:00
pancake
47357a1b89 * Rename swig/ to r2-bindings
- Avoid confusions with the name :)

--HG--
rename : swig/Makefile => r2-bindings/Makefile
rename : swig/README => r2-bindings/README
rename : swig/autogen.sh => r2-bindings/autogen.sh
rename : swig/check-langs.sh => r2-bindings/check-langs.sh
rename : swig/config.mk.acr => r2-bindings/config.mk.acr
rename : swig/configure => r2-bindings/configure
rename : swig/configure.acr => r2-bindings/configure.acr
rename : swig/cxx/Makefile => r2-bindings/cxx/Makefile
rename : swig/do-swig.sh => r2-bindings/do-swig.sh
rename : swig/do-test.sh => r2-bindings/do-test.sh
rename : swig/go/Makefile => r2-bindings/go/Makefile
rename : swig/go/fixgoswig.sh => r2-bindings/go/fixgoswig.sh
rename : swig/go/test-r_bin.go => r2-bindings/go/test-r_bin.go
rename : swig/guile/Makefile => r2-bindings/guile/Makefile
rename : swig/guile/test-asm.scm => r2-bindings/guile/test-asm.scm
rename : swig/guile/test-util.scm => r2-bindings/guile/test-util.scm
rename : swig/guile/vapi.patch => r2-bindings/guile/vapi.patch
rename : swig/java/Makefile => r2-bindings/java/Makefile
rename : swig/java/TestRBin.java => r2-bindings/java/TestRBin.java
rename : swig/lua/Makefile => r2-bindings/lua/Makefile
rename : swig/lua/test-r_asm.lua => r2-bindings/lua/test-r_asm.lua
rename : swig/lua/test-r_bin.lua => r2-bindings/lua/test-r_bin.lua
rename : swig/lua/test-r_bp.lua => r2-bindings/lua/test-r_bp.lua
rename : swig/lua/test-r_core.lua => r2-bindings/lua/test-r_core.lua
rename : swig/perl/Makefile => r2-bindings/perl/Makefile
rename : swig/perl/test-r_asm.pl => r2-bindings/perl/test-r_asm.pl
rename : swig/perl/test-r_bin.pl => r2-bindings/perl/test-r_bin.pl
rename : swig/perl/test-r_bp.pl => r2-bindings/perl/test-r_bp.pl
rename : swig/python-config-wrapper => r2-bindings/python-config-wrapper
rename : swig/python/Makefile => r2-bindings/python/Makefile
rename : swig/python/r_cons.i.experimental => r2-bindings/python/r_cons.i.experimental
rename : swig/python/remote.py => r2-bindings/python/remote.py
rename : swig/python/test-r2rc.py => r2-bindings/python/test-r2rc.py
rename : swig/python/test-r_asm.py => r2-bindings/python/test-r_asm.py
rename : swig/python/test-r_bin.py => r2-bindings/python/test-r_bin.py
rename : swig/python/test-r_bp.py => r2-bindings/python/test-r_bp.py
rename : swig/python/test-r_bp2.py => r2-bindings/python/test-r_bp2.py
rename : swig/python/test-r_cons.py => r2-bindings/python/test-r_cons.py
rename : swig/python/test-r_core.py => r2-bindings/python/test-r_core.py
rename : swig/python/test-r_flags.py => r2-bindings/python/test-r_flags.py
rename : swig/python/test-r_hash.py => r2-bindings/python/test-r_hash.py
rename : swig/python/test-r_num.py => r2-bindings/python/test-r_num.py
rename : swig/python/test-r_util.py => r2-bindings/python/test-r_util.py
rename : swig/python/test-ragdiff2.py => r2-bindings/python/test-ragdiff2.py
rename : swig/ruby/Makefile => r2-bindings/ruby/Makefile
rename : swig/ruby/test-r_bin.rb => r2-bindings/ruby/test-r_bin.rb
rename : swig/ruby/test-r_bp.rb => r2-bindings/ruby/test-r_bp.rb
rename : swig/ruby/test-r_core.rb => r2-bindings/ruby/test-r_core.rb
rename : swig/rules.mk => r2-bindings/rules.mk
rename : swig/vapi/libr.deps => r2-bindings/vapi/libr.deps
rename : swig/vapi/libr.vapi => r2-bindings/vapi/libr.vapi
rename : swig/vapi/r_anal.deps => r2-bindings/vapi/r_anal.deps
rename : swig/vapi/r_anal.vapi => r2-bindings/vapi/r_anal.vapi
rename : swig/vapi/r_asm.deps => r2-bindings/vapi/r_asm.deps
rename : swig/vapi/r_asm.vapi => r2-bindings/vapi/r_asm.vapi
rename : swig/vapi/r_bin.deps => r2-bindings/vapi/r_bin.deps
rename : swig/vapi/r_bin.vapi => r2-bindings/vapi/r_bin.vapi
rename : swig/vapi/r_bp.deps => r2-bindings/vapi/r_bp.deps
rename : swig/vapi/r_bp.vapi => r2-bindings/vapi/r_bp.vapi
rename : swig/vapi/r_cmd.deps => r2-bindings/vapi/r_cmd.deps
rename : swig/vapi/r_cmd.vapi => r2-bindings/vapi/r_cmd.vapi
rename : swig/vapi/r_config.vapi => r2-bindings/vapi/r_config.vapi
rename : swig/vapi/r_cons.vapi => r2-bindings/vapi/r_cons.vapi
rename : swig/vapi/r_core.deps => r2-bindings/vapi/r_core.deps
rename : swig/vapi/r_core.vapi => r2-bindings/vapi/r_core.vapi
rename : swig/vapi/r_crypto.vapi => r2-bindings/vapi/r_crypto.vapi
rename : swig/vapi/r_db.vapi => r2-bindings/vapi/r_db.vapi
rename : swig/vapi/r_debug.deps => r2-bindings/vapi/r_debug.deps
rename : swig/vapi/r_debug.vapi => r2-bindings/vapi/r_debug.vapi
rename : swig/vapi/r_diff.vapi => r2-bindings/vapi/r_diff.vapi
rename : swig/vapi/r_flags.deps => r2-bindings/vapi/r_flags.deps
rename : swig/vapi/r_flags.vapi => r2-bindings/vapi/r_flags.vapi
rename : swig/vapi/r_fs.deps => r2-bindings/vapi/r_fs.deps
rename : swig/vapi/r_fs.vapi => r2-bindings/vapi/r_fs.vapi
rename : swig/vapi/r_hash.vapi => r2-bindings/vapi/r_hash.vapi
rename : swig/vapi/r_io.deps => r2-bindings/vapi/r_io.deps
rename : swig/vapi/r_io.vapi => r2-bindings/vapi/r_io.vapi
rename : swig/vapi/r_lang.vapi => r2-bindings/vapi/r_lang.vapi
rename : swig/vapi/r_lib.vapi => r2-bindings/vapi/r_lib.vapi
rename : swig/vapi/r_line.vapi => r2-bindings/vapi/r_line.vapi
rename : swig/vapi/r_parse.deps => r2-bindings/vapi/r_parse.deps
rename : swig/vapi/r_parse.vapi => r2-bindings/vapi/r_parse.vapi
rename : swig/vapi/r_print.vapi => r2-bindings/vapi/r_print.vapi
rename : swig/vapi/r_reg.deps => r2-bindings/vapi/r_reg.deps
rename : swig/vapi/r_reg.vapi => r2-bindings/vapi/r_reg.vapi
rename : swig/vapi/r_search.deps => r2-bindings/vapi/r_search.deps
rename : swig/vapi/r_search.vapi => r2-bindings/vapi/r_search.vapi
rename : swig/vapi/r_sign.vapi => r2-bindings/vapi/r_sign.vapi
rename : swig/vapi/r_socket.vapi => r2-bindings/vapi/r_socket.vapi
rename : swig/vapi/r_syscall.vapi => r2-bindings/vapi/r_syscall.vapi
rename : swig/vapi/r_util.vapi => r2-bindings/vapi/r_util.vapi
rename : swig/vapi/t/Makefile => r2-bindings/vapi/t/Makefile
rename : swig/vapi/t/array.vala => r2-bindings/vapi/t/array.vala
rename : swig/vapi/t/asm.gs => r2-bindings/vapi/t/asm.gs
rename : swig/vapi/t/asm.vala => r2-bindings/vapi/t/asm.vala
rename : swig/vapi/t/asmsearch.vala => r2-bindings/vapi/t/asmsearch.vala
rename : swig/vapi/t/bin.vala => r2-bindings/vapi/t/bin.vala
rename : swig/vapi/t/bintest.vala => r2-bindings/vapi/t/bintest.vala
rename : swig/vapi/t/bwdisassemble.vala => r2-bindings/vapi/t/bwdisassemble.vala
rename : swig/vapi/t/core.vala => r2-bindings/vapi/t/core.vala
rename : swig/vapi/t/db.vala => r2-bindings/vapi/t/db.vala
rename : swig/vapi/t/findops.vala => r2-bindings/vapi/t/findops.vala
rename : swig/vapi/t/hash.vala => r2-bindings/vapi/t/hash.vala
rename : swig/vapi/t/io.vala => r2-bindings/vapi/t/io.vala
rename : swig/vapi/t/lang.vala => r2-bindings/vapi/t/lang.vala
rename : swig/vapi/t/list.vala => r2-bindings/vapi/t/list.vala
rename : swig/vapi/t/list.vapi => r2-bindings/vapi/t/list.vapi
rename : swig/vapi/t/plugin.vala => r2-bindings/vapi/t/plugin.vala
rename : swig/vapi/t/pluginwrap.c => r2-bindings/vapi/t/pluginwrap.c
rename : swig/vapi/t/regs.vala => r2-bindings/vapi/t/regs.vala
rename : swig/vapi/t/reloc.vala => r2-bindings/vapi/t/reloc.vala
rename : swig/vapi/t/rgot.vala => r2-bindings/vapi/t/rgot.vala
rename : swig/vapi/t/sc.vala => r2-bindings/vapi/t/sc.vala
rename : swig/vapi/t/search.gs => r2-bindings/vapi/t/search.gs
rename : swig/vapi/t/search.vala => r2-bindings/vapi/t/search.vala
rename : swig/vapi/t/socket.vala => r2-bindings/vapi/t/socket.vala
2011-05-18 01:35:52 +02:00
earada
38b4ed7d14 * Merge 2011-05-18 01:27:40 +02:00
earada
7d7a9e27d6 * Fix directory listing and recursive mountpoint listing
* Fix RSocket build without SSL support
2011-05-18 01:27:09 +02:00
pancake
8c36f50f8b * Use valabind in r2-swig
- Should be need to rename r2-swig?
2011-05-18 01:27:09 +02:00
Eloi Sanfelix
0e4183a0a3 Merged 2011-05-16 20:03:30 +02:00
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