Commit Graph

1970 Commits

Author SHA1 Message Date
pancake
0a14411bc1 * Added README documentation for libr/egg programming language
* Add -O flag to ragg2 as an alias for -o a.out or -o <file> (without extension)
* Add rabin2 -M (get main) for Java Class files
* Add emit_trace (code tracer) for r_egg. useful to debug
  - ragg2 -a trace hello.r
  - Add emit->jmp() function pointer and emit->retvar
  - many fixes in function calls and definitions
  - Added support for 'break;' 'break();' and 'goto();'
  - Added .ret variable as an alias for eax, rax or r0
2011-09-19 02:39:33 +02:00
pancake
403aa4b36d * Fix ~40 off-by-one strncpy's 2011-09-18 20:41:36 +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
d72d66f143 * Honor OSABI in elf for arm bins too 2011-09-14 17:18:40 +02:00
pancake
c803f2ff49 * Fix build for mingw64 2011-09-14 14:01:21 +02:00
pancake
c0dc0ad950 * Fix build for C++ and r_syscall vapi 2011-09-14 13:22:57 +02:00
pancake
096b7eb406 * Fix mingw32 build 2011-09-14 12:37:26 +02:00
pancake
2edfc3495e * Re-enable r2 -t - use threads to load big files 2011-09-14 04:31:22 +02:00
pancake
0cca23f7a5 * Fix anal vartypes definitions
* fcnstore working, results slower than with traditional method :(
  - disabled by default
* Fix R_BETWEEN signature
* Add /q to search for qwords
* scr.fkey = hit by default
2011-09-14 03:47:30 +02:00
pancake
ef5ba0f851 * Fix build 2011-09-14 02:22:11 +02:00
pancake
e8af14966b * Import the r_regex api in libr/util/regex from OpenBSD source
- Added a r2-like API on top of it
  - Make RSearch and RMagic use this new api, so
* Only load default magicpath files when no file is passed to RMagic
* Initial work on r_listrange optimization in RAnal
  - #define USE_NEW_FCN_STORE
  - Still work-in-progress
* Implemented a RPoolFactory singleton api to accelerate
  allocations of little objects in the future
* Fix sys/mingw32.sh for osx
* Added sys/maemo.sh
2011-09-14 02:07:06 +02:00
pancake
597fc9198f Added tag 0.7.1 for changeset 2767e1ed918a 2011-09-14 02:02:05 +02:00
pancake
483db5f5db Added tag 0.8 for changeset 0aaad74ad9fc 2011-09-14 02:01:39 +02:00
pancake
c6fc6b00d0 Added tag 0.8.1 for changeset 8d60255c050c 2011-09-14 02:00:56 +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
37fecf7c0c * Implement RBinCreate.elf-arm
* Fix uninitialized shstrtab segfault in r_bin_elf
* Do not create new objects unnecesarily in r_core_magic
* Handle length argument in pb command
* Fix ps command
* @@ now prefixes each line with the offset (useful for search)
  - can be problematic when used with macros
  > / lib
  > ps @@ lib*
* Huge refactoring in r_magic, now using the r2 coding standards
  - Use r_magic_new() and _free() instead of open/close
  - Reduced -1KLOC
2011-09-12 01:47:28 +02:00
pancake
bf463cae9e * Fix 2 more bugs in OpenBSD file(1)
- ref: http://lolcathost.org/b/openbsd-file.patch
2011-09-11 16:04:38 +02:00
pancake
6afd85a447 * More work on the OpenBSD file(1)
- Fix a segfault bug (not exploitable)
  - Import some magic files and install
  - PREFIX"/lib/radare2/"R2_VERSION"/magic"
  - Output of 'pm' is easier to read now
  - Add pm? help message
* Remove all flags from previous search
* Handle ^C in /m search
* Autocomple ~ with tab (home)
  - Fix autocomplete filenames without '^[\.|/]'
2011-09-11 03:59:24 +02:00
pancake
cfccb47b0f * Fix build 2011-09-11 00:42:59 +02:00
pancake
3fc44b6e6a * Fix build of r_magic on !BSD (strlcpy)
* Initial import of sys/ui
2011-09-10 20:08:25 +02:00
pancake
df72d33e4e * Added sys/ scripts to compile for mingw64
- Use -j 4 everywhere
  - Check return values on chained commands
2011-09-10 02:32:48 +02:00
pancake
2415d86fd6 * Added sys/ in order to ease build, deps and python /cc @hteso
* Some fixes in r_magic api to make r_lang/perl compile
2011-09-10 02:19:06 +02:00
pancake
323441c122 * Initial import of r_magic
- Imported code from OpenBSD trunk
  - Remove the elf part (-1KLOC)
  - Some refactoring in order to be more r2-like
  - fixed warning messages
  - readdir one can be dangerous /cc @vect01
  - Remove libmagic dependency
* Rename asm.case into asm.ucase
2011-09-10 01:30:03 +02:00
pancake
0357ddf18e * Move rapatch into r_core_rapatch (r2 -P)
- Remove r_core deps from rabin2
  - Accessible via 'wp'
* Fix build check of test program in r_db
* Pass CFLAGS/LDFLAGS to sdb build
* Add rax2 -k to not change base
2011-09-09 09:49:55 +02:00
pancake
4d6c585672 * Add support for mach0-arm and mach0-x86_64 in r_bin_create
- x86_64 has been tested and works fine, but needs some love
  - the arm mach0 (iPhone) is not yet tested, but the bin looks ok
* Install syscall sdb files into versioned directory in lib/radare2
2011-09-09 01:09:36 +02:00
pancake
62cd212ba1 * Fix non-PIC/static build (apply Glyn patches)
* Fix entropy multiplication bug (Thanks Glyn!)
* btw.. previous patch added asm.case eval var
2011-09-08 15:47:05 +02:00
pancake
1732541915 * Fix OS identification in ELF on r_bin
* Add missing OSABI definitions
* Fix r_str_case()
* Remove already defined or useless commented config code from r1
2011-09-08 15:10:46 +02:00
pancake
aebf800b8e * Lot of fixes in r_syscall api related to the use of RPair
- Fix segfault in OpenBSD (thanks vext01 for reporting)
  - Add openbsd-x86-64 syscall definitions
2011-07-02 10:14:46 +02:00
pancake
e791d8c1b6 * Merge heads 2011-09-07 12:42:53 +02:00
pancake
67a03030d0 * Bump revision to 0.8.5 to avoid collision with last release 2011-09-07 12:22:04 +02:00
pancake
4af07f8f2f * Fix linkage of rabin2 in OpenBSD 2011-09-06 17:12:45 +02:00
pancake
96102fb04b * Fix link of rabin2 in OpenBSD 2011-09-06 13:29:44 +02:00
pancake
deb6e216fa * Build syscall/d at compile time
* Handle ud_disassemble return value
* Added dummy r_pair_{[de]serialize}
* Fix 'pf' command for arrays
2011-09-06 00:38:56 +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
earada
5f0043a846 * Add linux-x86-64 syscall definition 2011-09-04 18:02:37 +02:00
Nibble
ee8ca52b57 * Add decode str to ranal2 output
* Fix syscall installation
2011-09-04 17:47:26 +02:00
Nibble
653dbea643 * Minor fixups in create() for elf64 2011-09-04 15:19:59 +02:00
Nibble
480edd8203 * Add support for ELF64 to r_bin_create 2011-09-04 13:21:02 +02:00
Nibble
0f8cc36a58 * Fix build
- Add r_db to DEPS in Makefiles
2011-09-04 11:49:32 +02:00
pancake
833abfa19b * Major refactoring in r_syscall
- Requires rebuild, still not fully tested
  - Use r_pair (nosql db) to store all this info
  - Added lot of new platform descriptions for RSyscall
2011-09-04 05:33:59 +02:00
pancake
2c92c7d172 * Merge rapatch2 into rabin2 -p
* Honor bits in r_syscall_setup
  - Initial work on RPair in r_syscall
  - Not yet integrated, but design is mostly done
* Add r_str_split()
* Add python2 and python3 makefile rules in r2-bindings
2011-09-04 03:56:35 +02:00
Nibble
fd49310812 * Merge 2011-09-04 02:45:29 +02:00
Nibble
d7afa73011 * Minor refactoring of rabin2 main() 2011-09-04 02:44:53 +02:00
pancake
56fb04bb79 * Say different error if -w is used in r2 and fails
* p= command is now an alias for !rahash2 -a entropy -b 512 $FILE
* Some work in the 'G' key in visual
* Fix zoom on io.va=1
* r_sys_getcwd now returns a heap ptr and its named to r_sys_getdir()
* Show invalid instructions in 'pd'
* Fix prompt for 'w' key in visual
* More work with RPair
  - Looks like it's finally usable. Let's use it from r_syscall
  - Update sdb from hg
  - Enhace test program
* Show newlines in 'ps' command
2011-09-04 02:34:54 +02:00
Nibble
4a233f58a2 * Add missing comment to bin.c 2011-09-04 02:23:53 +02:00
Nibble
334a6bcfb8 * Fix list and select archs in rabin2 (flags -A and -a)
* Fix memory leak in rabin2
* Fix segfault in r_bin_use_arch()
2011-09-04 02:19:43 +02:00
Nibble
a95de05ec0 * Fix the resolution of the import addresses of mach-o bins (PIE) in r_bin 2011-09-03 17:50:09 +02:00
pancake
ed460fe2a4 * Initial import of external dependency sdb in r_db
* Fix segmentation fault in command = 033h
* Fix r_db for 64 bits
* Initial import of the RPair API on top of SDB
* Minor fix in r_num_get parser
2011-09-03 05:09:31 +02:00
pancake
12816468f6 * Refactoring of the TODO tasks
* Add dummy 'dca' command. needs to be implemented
* Reload all symbol information when io.va changes
* Only print jumpkey references in visual mode
* Reduce the autoblocksize in visual for disassembly
2011-09-03 03:10:01 +02:00