53 Commits

Author SHA1 Message Date
pancake
4a50f8a94d * Distribute magic files with w32dist
* Fix symstall of magic files
* Do not walk hidden files in magic
* Add has_va in RBinInfo class for bindings
2011-11-29 18:31:26 +01:00
pancake
83eed8c94a * Fix dup2 for w32
* Fix r_anal and r_socket vapis
* Split r_egg_run() into r_sys_run()
2011-11-16 00:44:18 +01:00
pancake
3fd59fdbcd * Fix double-free segfault in elf parser on netbsd binaries.
* Fix bindings build
2011-11-15 20:58:08 +01:00
pancake
a0ed400b2c * Fix build (missing R_ANAL_BB_HAS_OPS somewhere)
- experimental change to save memory..
* Fix warning in R_MEM_ALIGN() macro
* Fix r_db vapi and add RPair vapi
* Add new r_egg vapi and python bindings
  - Add linux x86-32,64-arm shellcodes
  - Requires valabind update
2011-11-15 14:30:52 +01:00
pancake
0f271a8bac * Added api to get opcode descriptions
- r_asm now depends on r_db (uses r_pair aka sdb)
  - r_asm_describe()
  - install opcode descriptions
  - Use ?d to get description of opcode (uses asm.arch)
* Add 'fl' command to get length of flag
* Fix some warnings in anal.sparc plugin
* Add new assembler directives
  - .int8 (alias of .byte)
  - .int16 (alias of .short)
  - .int32 and .int64
* Fix memory leak in r_core_disasm()
* Add accessors for RAnalFcn.{refs,xrefs,vars,bbs}
  - Updated bindings
2011-11-12 01:52:31 +01:00
pancake
766cec4bb2 * Fix Fcn->refs bindings in r_anal
* Fix agc graph // cc @hteso
2011-11-02 13:39:38 +01:00
pancake
cb053b0cad * Add URL for agc graph
* Add r_line_get_prompt()
  - _set_prompt() uses strdup now
  - a bit slower but more consistent
* Use r_line from r_lang
  - Added history in #!<lang> prompt
  - Fix r_lang plugin init from r2-bindings-python-threads
  - Better help message in lang ? prompt
* Fix r_cons control+arrow issue
  - resets terminal as raw
  - History data is initialized if needed
* Fix sys/swig.sh for latest OSX-ports
* Add missing get_fcn_at() method in RAnal vapi
2011-11-01 04:37:13 +01:00
pancake
85f5829be6 * Make oxfoo1m3 crackme load correctly
- Do not find strings in binaries with no data sections
  - Add program header section underlaying the rest of sections
* Do not newline when gotoxy'ng
  - visual mode is now smarter
* New ? commands
  - ?p = show physical address
  - ?S = show section name for given address
* Initial refactoring in r_io to make section overlaps happy
  - Those changes are experimental and can lead to problems
  - Do not iterate prev
  - Do not sort by offset
2011-10-25 20:30:05 +02:00
pancake
81727c9c28 * Fix lea in x86.nz
* Some more fixes for r_egg
  - Use more tests cases
  - Warn when stackframe doesnt fits
* Make t.sh unit test tool nicer
  - Accept option flags to show asm, disasm, ..
* Add R2_PREFIX and R2_LIBDIR into r_util.vapi
2011-10-24 10:59:27 +02:00
pancake
37565f1ff5 * Fix shellcodes.c.src (do not use literal strings)
* Update vapis for r_asm, r_debug and r_fs
* Use anal_diff_setup() in test-ragdiff
* Sync radiff2 manpage
2011-10-20 15:05:30 +02:00
pancake
e4934900cd * Some updates for r_anal
* Fix minor typo in rax2 manpage
2011-10-19 10:01:01 +02:00
pancake
7dbab2f3bc * Add missing r_anal_diff_setup_i()
* Many fixes for r_magic
  - Proper support for --with-sysmagic
  - Fix bindings build
  - Fix magic files to work with GNU file
  - Add magic instance in RCore
  - Use unowned instead of weak in vapi (deprecated)
2011-10-18 22:07:53 +02:00
pancake
3b9420fad8 * More stuff to make --with-sysmagic work 2011-10-18 18:12:17 +02:00
pancake
04cbf68819 * Fix segfault in elf (thanks @earada!)
* Make cg and cgo work
* Added r_anal_diff_setup_i()
  - Fixed bindings
2011-10-16 13:59:05 +02:00
pancake
241c0365d5 * Add missing RAnal.diff_setup() method 2011-10-14 14:39:04 +02:00
pancake
16866fe504 * Do not build asm.x86_as or asm.x86_nasm
- Deprecated as being problematic. x86.nz and x86.olly ftw
* Fix singleton crash in swig bindings
  - Requires valabind-tip
* Added 'wa*' and 'waf*' commands to show bytes instead of writing
2011-10-09 21:54:14 +02:00
pancake
870518903b * Fix r2-bindings build
* Fix some warnings in r_parse
2011-10-05 12:40:16 +02:00
pancake
9657d076d9 * Fix double free when using RFlags 2011-09-28 12:47:08 +02:00
pancake
149a58581c * Fix list iterators for Vala 0.16 (and probably 0.14 too) 2011-09-28 11:50:20 +02:00
pancake
838e6b7466 * Fix java class parser for javac -g files
- Show debug information in sdb format
  - Fix null pointer segfault
  - Still work-in-progress for proper debug info
* Some work on r_egg
  - Fix windows and osx default syscall tables
* Export version number in vapi R2_VERSION
* Hide ccache error if not found in sys/install
2011-09-18 18:56:11 +02:00
pancake
c0dc0ad950 * Fix build for C++ and r_syscall vapi 2011-09-14 13:22:57 +02:00
pancake
7319208c8f * More visual fixes for the comments in disassembly
- Added asm.cmtright=true eval config variable
* Add missing r_magic.deps
2011-09-12 03:26:32 +02:00
pancake
4a3d7bc1db * Show comments at right of disasm if they fit in screen
- Added r_cons_get_column () api
* Fix ';' in visual (0 prefix)
* Update pkg-config files
* Fix sys/vala.sh
  - Use ccache if possible
* Add r_magic.vapi
2011-09-12 03:01:07 +02:00
pancake
55a29f976b * Add dummy darwin-x86-64 syscall information
- OS is 'darwin', not 'macos' (r_bin)
* Fix r_syscall vapi
* Honor DESTDIR (thanks l0gic)
2011-09-04 20:25:32 +02:00
pancake
a63ae7ff37 * Fix segfault in cons/grep.c with scr.html=true
* Fix Vala core test program
2011-09-02 02:03:38 +02:00
pancake
c006cc5c38 * Fix grep~
* Autocomplete ag* and . commands
* Add install targets in r2-bindings subdirs
2011-08-28 01:49:29 +02:00
pancake
0a7eefc9f8 * Fix some memory leaks 2011-08-28 00:01:03 +02:00
pancake
47834e60bd * Do not calculate reflines if asm.lines=false
* Honor null callback in r_cmd
* Some enhacements in the r_config_description
* Implement cmd.repeat and add two commands to handle it
  - . and .. (allow to handle pyew-like newline)
* Add ia and ia* to show all binary information info
  - Use r_sys_cmd_str() instead of r_sys_cmd()
  - This fixes the bug of not able to interpret output of .i?*
* Some random minor code simplifications
* r_sys_getenv now returns an allocated buffer
  - Need some review to avoid memleaks
2011-08-27 20:25:37 +02:00
pancake
f6d5e9034a * Add r_core_prompt_loop()
* Add support for descriptions in configuration variables
  - Add e+ to list all descriptions
* sync vapis
* Fix zero end string in r_print_hexpair
2011-08-27 04:32:27 +02:00
pancake
2f84cbe1c4 * Fix valabind bindings
* Fix Go bindings build for arm, 386 and amd64
* Apply ricky's patch honoring LIBDIR
2011-08-21 14:24:58 +02:00
pancake
a173eedcaf * Added support for ELF32-linux-x86 binaries for rabin2 -c
- Allow to create tiny elf binaries (only text section)
  $ rabin2 -a x86_32 -c elf:31c040bb2a000000cd80 a.out
* Added api for 16 and 64 uint write in RBuffer
2011-07-25 23:20:49 +02:00
pancake
0d4faf652e * Set library version number for plugins
- Registers for which version of core was compiled
* Use tar --format=posix when GNU tar
  - Fixes the dependency on BSD systems
* Fix in doc/fortunes
* Fix this class pointer in asm_java
* Re-Fix uglily the bin_elf strtab issue (needs more work)
* Fix Vala regression in r_asm.vapi
2011-07-19 00:12:36 +02:00
pancake
eb3c3994ac * Fix r_asm_op vapi 2011-07-11 20:24:21 +02:00
pancake
5875fe4cba * Minor enhacement in RSearch vapi 2011-07-11 19:41:32 +02:00
pancake
cec16d4c8f * Add r_fs_partition_type api 2011-07-08 00:24:14 +02:00
pancake
2e97cde9dc * Fix r2-bindings valabind build (python, guile, ..) 2011-07-07 18:40:18 +02:00
pancake
c47da60578 * Some fixes in r_syscall (thanks vext01!)
* Use x86.olly before x86.nasm
* Add r_asm_assemble_file() method
  - Accessible with 'waf' command
2011-07-07 00:53:08 +02:00
pancake
6abcfb962b * Add from/to arguments to search_preludes()
* Mostly fix the ming-w32 build
* Avoid using alloca()
2011-07-06 11:48:16 +02:00
pancake
77816183a0 * Added anal.prelude to specify an hexpair to find
* Added search/prelude API into RCore and Vapi
2011-07-06 01:40:14 +02:00
pancake
a45df6c14f * Split 'ap' in two cmd0s
* Add missing anal_all() in RCore vapi
2011-07-05 17:14:39 +02:00
pancake
a089fcfa1a * Added src/dst Value fields in RAnal.Op class 2011-07-04 10:32:22 +02:00
pancake
50129da14f * Fix r_asm vapi 2011-06-30 21:26:26 +02:00
pancake
bcbe1011d7 * Fix definition of Asm.Op in r_asm.vapi 2011-06-25 21:43:56 +02:00
pancake
6201634a2f * Import code|gadget_search vala code examples 2011-06-09 14:23:02 +02:00
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
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
b9526e254f * Minor fixes in r_util vapi 2011-05-20 21:21:39 +02:00
pancake
233982c965 * Do not show useless error messages when child process is dead 2011-05-20 20:42:25 +02:00