Commit Graph

839 Commits

Author SHA1 Message Date
pancake
486ee5351f * More libdir-ification (thanks sre)
* Bump and kidnap Debian's package description for Maemo pkg
2011-07-19 12:27:01 +02:00
pancake
9be6f53757 * Bump release 0.8 - Codename thecakeisapie
* Fix uninitialized memory issue in r_block_resize()
  - Thanks vext01 for reporting
2011-07-15 18:13:00 +02:00
pancake
188560bf4b * Fix build and lot of warnings for w64 2011-07-13 18:55:16 +02:00
earada
008dc76721 * Use native api to calculate md5/sha1 hashes
- Fix bug 29
2011-07-13 17:41:26 +02:00
pancake
a9a7e73519 * Fix double pdf (thanks vext01) 2011-07-13 12:21:56 +02:00
pancake
301073e7f1 * Fix pi and /c commands 2011-07-12 23:22:33 +02:00
earada
c880718f15 * Fix some warnings 2011-07-12 23:06:06 +02:00
earada
0d43c5422a * Enhacements in keybindings used in visual mounts menus
* Implement missing 'pf p' pointer format
2011-07-12 17:26:56 +02:00
earada
1f30cc1025 * Add vmenus-mounts option 2011-07-11 22:52:05 +02:00
pancake
b765565cc4 * Fix r_line autocomplete regreesion bug 2011-07-11 21:10:14 +02:00
pancake
7a79f92c82 * Fix pdi with no args
* Fix bug in dietline autocomplete
2011-07-07 02:04:42 +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
840190602c * Use strncpy instead of strcpy in asm and util
- Also avoid using sprintf and strcat
  - Some speedup and buffer overflows fixed
* Reimplement 'ap' command using the API
  - Fixes some issues related to nested console buffers
  - Faster and more reliable
* Use Color_ definitions instead of hardcoded values in r_print
2011-07-06 01:29:18 +02:00
pancake
9ed75b82dd * Fix osx-64 prelude (thanks @reversemode) 2011-07-05 17:24:05 +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
61c9ea4aae * Fix CC- and CC-* (thanks vext01) 2011-07-05 00:37:17 +02:00
pancake
bebb19a5ce * Fix some warnings patch by @capi_x
* Added R_REFCTR macros
* Ignore prefixed 0x in hexstr2bin
  - Fixes issue in 'wo*' commands (thanks edd)
2011-07-04 23:23:06 +02:00
earada
a38c2ece6d * Initial parse of dex files
- Load strings and methods
* Fix command 'r' parser
* Fix visual 'g' command without sections defined
2011-07-04 18:54:41 +02:00
pancake
ed9a4c3584 * Use newer ACR fixing --mandir configure flag
* Fix help message for 'r' command
2011-07-03 12:58:19 +02:00
pancake
0af36f8e9d * Add help for P command in ? 2011-07-01 13:24:51 +02:00
pancake
17768b9de0 * Add DEVELOPERS file as noted by Edd 2011-07-01 13:22:13 +02:00
pancake
0528e66fda * Disable asm.dwarf until reimplemented
* Some more code cleanup in gdbwrap plugin code
2011-06-30 21:35:15 +02:00
pancake
6d0bd0c320 * Fix segfault noticed pd? in OpenBSD64 by Edd Barret
- Thanks!
2011-05-25 16:08:26 +02:00
pancake
9d3c3be03c * Implement dbg.follow (32 by default)
- follow program counter when pc > core->offset + dbg.follow
2011-06-29 00:54:49 +02:00
pancake
aa236eb063 * Finally fix a segfault in the htflags implementation
- This was workarounded to work incorrectly
* Fix build on OSX of the dalvik plugin for r_asm
* Other minor random checks
2011-06-29 00:36:52 +02:00
pancake
e1d569fbeb * use r_num_get in r_cons_grep
- Flags are now handled
* Added 'S.' command to show begin end and name of current section
* Implement 'sn' to seek to next opcode (alias for s+$l)
  - Added $l variable
* Rename r2 flag -v to -q
  -V flag is now -v (all flags in lowercase
2011-06-26 23:49:11 +02:00
earada
29a90901c8 * Add support for io.va mode in g/G visual keys 2011-06-26 23:41:34 +02:00
pancake
ef375bf85d * Fix macro definitions
* Handle asm.flags in core_disasm
2011-06-26 21:24:22 +02:00
pancake
868acc4059 * Added RBinBind type and logic
- Refactoring required to allow RAsm retrieve info from RBin
  - Will be used by dalvik and java disassemblers
2011-06-26 20:29:24 +02:00
pancake
7e8aba2198 * Fix segfault in file path autocompletion 2011-06-26 04:55:27 +02:00
pancake
814d220ac6 * Implement 'Cl' command to set sourceline comments
* Fix, implement and install rsc2
  - Added rsc2 srcline script
2011-05-25 15:43:54 +02:00
pancake
f35152b547 * Documentate 'g' and 'G' keys in Visual 2011-06-26 03:01:32 +02:00
pancake
10fdf33d64 * Fix segfault in core/print_disasm 2011-06-23 01:01:27 +02:00
pancake
b66a9cdd42 * Fix r_io_cache
- Added test/cachetest
2011-06-22 00:19:02 +02:00
pancake
b294ab6060 * Move 'pdi' into 'pi' to we can now 'pif' 2011-06-20 18:33:25 +02:00
pancake
f2d882c304 * Implement px'f' for all print formats.. needs some cleanup 2011-06-16 14:12:09 +02:00
pancake
d4be19b5dc * Added VdS command 2011-06-09 02:29:24 +02:00
pancake
46c7851ffc * Some fixes in the LEA/MOV memref analysis
* Stretch bytes and stackptr in disasm
* Fix string length in r_bin (\0 is counted)
  - hello is a 6 byte length string
* Fix 'Vds' to autodetect string length
2011-06-09 02:12:46 +02:00
pancake
4c0b8f437b * Added 'pw' and 'pq' commands to print 32bit and 64bit hex values
* Autocomplete 'dcu' argument
* Analyze [pc+delta] mov and lea opcodes on x86-64
  - Resolves indirect string pointers for ObjectiveC binaries
* Handle UCALL in dso
* Fix x86-64 register profile for OSX
* Implement r_mem_get_num()
* Various fixes in 'pf' command
2011-06-09 01:20:02 +02:00
pancake
a9a4c51132 Handle no size argument in CC command 2011-06-08 18:15:19 +02:00
pancake
1c035d4b52 * Use glob to check flags in @@
- Document @@ suffix
* Fix hexdump indentation when offset is >32bits
* Optimize glob for null needle
2011-06-07 17:53:15 +02:00
pancake
822eaa1499 * Add 'grep' test
* Fix -i flag
2011-06-06 01:07:27 +02:00
pancake
c1a7557959 * Handle environment variables in rarun2
* Added support for F12 key in r_cons
* Added key.f# eval vars to configure function keys in visual
2011-06-06 00:16:11 +02:00
pancake
f7f82ecbc0 * Implement support for handling av/repag and Function keys in r_cons
* Remove -u flag in r2 (was not implemented, but not needed)
* Added ?v command
* Check if file exists in rarun2
* Fix cmd.vprompt
* Some fixes in io.undo
  - Two test cases to check undo and redo ops
* Added 2 bugs in testsuite
2011-06-05 20:36:22 +02:00
pancake
6d7442730b * Slow but complete storage of project information
- put console in non-interactive mode when dumping project
  - functions, comments, references, ..
  - Added code analysis information
  - Avoid dupped comments
2011-06-04 13:29:15 +02:00
pancake
c9faf9f88b * Do not load strings if project is already loaded
- Added bin.strings eval key
* Fix range check for anal/meta
* Do not exit(1) when write error on console
* Added 'ad' command to analyze data
  - Find trampolines from data to text f.ex
  - Supports 32 and 64 bit archs
* flags/name moved to util/name

--HG--
rename : libr/flags/name.c => libr/util/name.c
2011-06-04 05:27:26 +02:00
pancake
9a3a586c6b * Add format and packet to 'i' 2011-06-04 03:51:33 +02:00
pancake
c8efea337e * Extend 'i' output 2011-06-04 03:40:44 +02:00
pancake
1f07786947 * Fix build 2011-06-04 03:23:12 +02:00
pancake
535a2aa713 * r_asm_disassemble use _CONST_ut8* buffer now
* Split core/cmd.c into disasm.c and core/visual.c into vmenus.c
* Fix some warnings reported by valgrind
* Chop instructions disassembled by udis86
* Fix visual prompt display in debugger mode
* Added 'pdi' and 'pdf' commands
  - Used to print just instructions or lengths
  - Documented via 'pd?'
* Added initial work on a test suite for r2
  - Spot a crash!
2011-06-04 03:14:04 +02:00
earada
dce671e091 * Fix f-* command
* C- now supports ranges
2011-06-04 01:36:31 +02:00
pancake
b68a6811eb * Show out-of-range errors of bin_elf with eprintf
* Fix disasm output for strings
* Implement r_flag_free (less memory leaks O:)
2011-06-03 23:58:31 +02:00
pancake
a55ef74986 * More out-of-bounds fixes for the ELF parser
* Some fixes in the htflags code
  - There are still bugs, but it works better now
2011-06-03 18:54:12 +02:00
pancake
a87f10cf56 * Fix security vulnerability loading shared libraries in ./
- Can cause code execution when running in the same directory
2011-05-25 00:43:28 +02:00
pancake
bf95651e69 * Fix DEX parsing segfault
* Fix possible segfault on newer glibc
* Fix some indentations and Visual hints
2011-05-24 15:25:52 +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
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
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
233982c965 * Do not show useless error messages when child process is dead 2011-05-20 20:42:25 +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
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
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
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
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
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
earada
6eb3578025 * RSocket API refactor
* Fix RAnal vapi
2011-05-05 03:41:57 +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
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
e4094a0cee * Fix RCore.read_at vapi and partial reads 2011-04-25 20:09:09 +02:00
pancake
ae2ee76dd9 * Fix r_fs_mount on delta != 0
- Show partition list offsets column aligned
2011-04-20 13:04:24 +02:00
earada
8d8faea38b * Use RList int io_sections
* Fix core_server return value
2011-04-19 14:43:48 +02:00
pancake
194bc4dafd * r_fs_mount returns boolean value for success 2011-04-19 10:04:06 +02:00
pancake
a16f3f27b4 * Implement S- command (remove sections)
- by index, offset or all (*)
* Fix block_read() issue with io.va
2011-04-19 00:59:16 +02:00
earada
450764d0c6 * Some fixes in the rap protocol 2011-04-17 20:58:32 +02:00
pancake
8b27aa6723 * Make io.gdb plugin work again
* Fix more unused var bugs
2011-04-06 12:26:19 +02:00
pancake
fd8545e76e * Fix some valgrind warnings 2011-04-06 11:35:18 +02:00
pancake
075b495a5c * Implement basic register profile for OpenBSD
native debugger backend.
* Fix make symstall in BSD systems
  - PWD var looks like a linuxism
2011-04-02 20:03:00 +02:00
pancake
bc18f03378 * Apply some patches reported by Edd in order to make OpenBSD build happy
- Not all patches applied, only the correct ones. needs some review
    in other BSD systems (NetBSD, FreeBSD, GNU/KFreeBSD, ...)
* Added R_BTW macro
2011-04-01 18:33:26 +02:00
pancake
c8d1de0ad5 * Show cursor in disasm bytes when scr.color=false 2011-03-30 18:41:42 +02:00
pancake
c4c08c05dd * Fix strstr reported by Nicolai Stange 2011-03-29 17:30:06 +02:00
pancake
14148050fb * Obey return values in callback in r_config_set
* Add pZ[zoombytechar] command (as recommended by @hteso)
2011-03-29 14:29:33 +02:00
earada
3f78d69a98 * Use getaddrinfo instead of gethostbyname (Thanks Adriana for the patch!)
* SSL Server Support:
- read and write can use SSL_bio functions
- Some random fixes
* Add serverssl test case
2011-03-27 17:44:27 +02:00
pancake
8ce2f8b88b * Fix console width chops
* Fix hexview glitch
* Added cfg.wseek (seek after write)
2011-03-25 14:54:30 +01:00
pancake
db63d59d92 * Show cursor when color and bytes=0 in visual disasm
- Fix INVERT color issue in b&w mode
2011-03-25 09:49:43 +01:00
pancake
6485b55de4 * Honor console width in visual mode
- Fixes many glitches in disassembler and hex dumps
* Fix help for osx and w32 debugger IO plugins
2011-03-24 22:47:06 +01:00
pancake
3fbfd81721 * Added zoom.byte config callback and show help with e zoom.byte=? 2011-03-24 12:17:13 +01:00
pancake
66b4d7cf5e * Fix loading the proper reg profile when in debugger
* Fix r_reg profile parser for some EOF issues
2011-03-24 11:03:23 +01:00
pancake
daff6aff5d * Fix set_reg_profile callback in r_anal_arm
* Fix dupness issue between RDebug and RAnal sharing RReg
  - Move reg_profile string into inner RReg
* Remove vm.arch setup in rasm2 -ri
2011-03-24 00:54:09 +01:00
pancake
083d2faebd * Add memoization in r_print_zoom to speedup the work on big disks
* Added R_NEW0 macro to fill with zeroes
* Add documentation for [] keys in Visual mode
2011-03-23 19:19:23 +01:00
earada
498e531479 * Initial import RSocket refactor
- Add SSL client support and testcase
* Update TODO
* Rename some r_hash structs to avoid openssl.h conflict
* io_rap plugin its broken now ... refactor time
2011-03-21 01:47:17 +01:00
pancake
3d142e8ec1 * Initial import of the hashtable implementation of WayLand
- Kinda smart (150LOC)
  - Fork it for 64bit hash keys (make ht64 in libr/util)
* Make RConfig use the RHashTable to resolve by name
  - Code cleanup resulting in -30LOC
  - O(1) access to config variables (speedup!)
  - Make r_list_free and r_list_destroy take sense
2011-03-17 19:05:39 +01:00
earada
f28d12fe25 * Define PFX globally
* Limit block size in print command by cfg.maxbsize bytes (Thanks phr0nak)
2011-03-13 20:27:28 +01:00
pancake
40bb699f20 * Fix prjfile for absolute path 2011-03-10 21:38:56 +01:00
pancake
f564ced79e * Apply beautified version of the @capi_x patch 2011-03-10 14:29:54 +01:00
pancake
7dd8619477 * Add patch from @capi_x fixing segfault when refering an invalid fun var
* Do not override RANLIB with mingw one by default
2011-03-10 14:14:22 +01:00
pancake
35f8f1de0b * Apply Glyn patch fixing entropy fraction calculation
- Added documentation for pZ?
2011-03-08 13:02:02 +01:00
Nibble
864fd7aa7e * Move gdiff stuff to r_anal_diff
* Make r_anal_diff customizable by plugins
* Refactor r_anal and redesign API
* Add dummy methods for security patches evaluation in r_anal_diff
* Add functions:
  - r_anal_diff_fingerprint_bb
  - r_anal_diff_fingerprint_fcn
  - r_anal_diff_bb
  - r_anal_diff_fcn
  - r_anal_diff_eval
2011-03-06 15:21:13 +01:00
pancake
a365d5ef6b * Some fixes in the filtered reflines
* Implement 'Vta' keys to add flagspaces and flags
* Various r_line_set_prompt fixes in visual.c
* Add ':' as an invalid char for flags
2011-03-05 19:09:38 +01:00
Nibble
88be7aace4 * Fix asm.nbytes
* Fix overflow in r_print_hexpair()
* Fix bytes alignment
2011-03-04 02:10:25 +01:00
Nibble
f53e2ac332 * Fix quick jumps in Visual mode using chache
* Clean up build & remove libr.so target
* Update TODO
2011-03-03 16:52:51 +01:00
pancake
95053501d5 * Fix some warnings 2011-03-03 10:42:45 +01:00
pancake
f777210e30 * Added doc/dospart with list of partition types (mp)
* Use 'obs' instead of blocksize for JK visual keys
  - fixes scrolling issue in visual disasm
* Some more glitches fixed in visual disasm
2011-03-02 14:11:34 +01:00
pancake
782452add2 * Fix build and some glitches in visual disasm 2011-03-02 12:33:28 +01:00
pancake
b921a2af7d * Make r_core_magic be verbose or not
* Initial implementation of /p and /m search methods
  - Cleanup some code (-110LOC)
2011-03-02 11:45:20 +01:00
pancake
3f56ce5a95 * Move RMeta inside RAnal
- Get out of RCore! - rebuild required
* Fix cast after scaling entropy (Thanks Glyn)
* Fix indentation of function/nonfunction code
* Add 'f' and 'F' keys in visual mode to seek next/prev
  - between functions, flags and search hits
  - Use 'e scr.fkey' to configure the mode
* Fix prompt in visual mode for ':' key
2011-03-02 00:02:50 +01:00
Nibble
67e20135cc * Add support for more opcodes in anal_x86
- lea, leave...
* Update asm.decode with these changes
* Add var $o for core->io->offset
* Fix "function"|"loc" comments in disasm
* Fix p%
2011-03-01 19:16:29 +01:00
pancake
80a5cb0651 * Remove all references to r_meta as a separated library
- Initial merge into r_anal
  - Prefix R_META_* as R_META_TYPE_
  - Deprecate folder type and rename Cm->Cf (like in p cmd)
2011-03-01 19:06:22 +01:00
Nibble
1535b4c5c1 * Don't flag imports/symbols twice (also for functions)
* Remove unnecessary calls to r_flag_space_set()
* Show calls nicer in decode mode
2011-02-28 17:27:08 +01:00
pancake
6d5b22c29c * Fix entropy range 0-8 (Thanks Glyn)
- Use 0-255 in pZ
* Fix symstall for pkgconfig
2011-02-28 13:29:04 +01:00
Nibble
6d5d4f9b7e * Fix segfault in decode after 'aa' is executed 2011-02-28 09:21:58 +01:00
pancake
077ff4c36e * Some fixes in r_anal_reflines
* Implement r_cons->teefile (e scr.tee)
* Use filtered refline for comments and flags prefixes
* Many visual fixes in functions and reflines in 'pd'
2011-02-28 00:03:26 +01:00
pancake
d953cd9adf * Initial implementation of the java name mangling
- Added as comments before the method names
* Some fixes in r_bin_java
* Added r_buf(append/prepend)
* Show flags always in new lines
2011-02-27 20:30:41 +01:00
Nibble
268d6560ad * Complete analysis for more opcodes in anal_x86
* Decode more opcodes in r_anal_op_to_string
* Complete r_anal_value_to_string()
  - Output imm values
  - Fix segfault
* Remove dupped line from x86.mk
* Remove ref to "dummy plugin" from r_asm.h
2011-02-27 16:17:05 +01:00
Nibble
2863b456ed * Output error when 'wx' tries to write an invalid hexpair
* Rename R_ANAL_MAX_VARSUB to R_ANAL_VARSUBS
* Update TODO
2011-02-26 19:16:08 +01:00
Nibble
91addb3791 * Little refactoring of 'Cv'
* Show 'unk' instead of 0xff...ff for unkwnown calls/args
2011-02-26 14:58:54 +01:00
Nibble
e50fa3ca7d * Undefine functions with Vdu
* Remove unnecessary calls to r_core_cmd in Vdf
* Remove call to deprecated 'ab'
2011-02-25 20:38:55 +01:00
Nibble
7eefc3b582 * Fix bb analysis
- Remove depth checks, it makes sense only for fcns
* Update r_core vapi
2011-02-25 20:23:07 +01:00
pancake
5495f187a8 * /e is the new /m
* /m is for magic search
* Added ?x ?X ?s ?i and ?e
2011-02-25 11:45:05 +01:00
pancake
e557d9a385 * Drop 'r_cons.h' from r_fs
* Fix visual glitch in Vej and Vt
* Handle demangled names as comments
  - in rabin2 and core->bin_load
  - Needs to be a RAnalCall at some point
  - bin_java calls the dummy r_bin_demangle_java
  - Add R_BIN_NM_ANY enum
* Add asm.lbytes config to align disasm bytes to left
* Fix visual glitch in function boundaries
* Import upgraded versions of the idc2rdb scripts in doc/
2011-02-25 04:19:30 +01:00
pancake
51bb76096f * Fix io->ptrace->write for !=4 lengths
* Add support for recursive and multiline magics
  - e magic.depth = 100
2011-02-25 00:23:58 +01:00
Nibble
ddffdff8d2 * Rename r_asm_aop_* to r_asm_op_*
* Rename remaining r_anal_aop_*
2011-02-24 16:50:29 +01:00
Nibble
332524e120 * Rename r_anal_aop_* to r_anal_op_*
--HG--
rename : libr/anal/aop.c => libr/anal/op.c
2011-02-24 14:06:49 +01:00
pancake
0b3f6c6ffb * mo is now flag friendly
* Added vala test script to find special ops
* Add r_core_disassemble helper
* Remove r_vm.h
* Do not reset cursor when quitting visual zoom mode
2011-02-24 09:40:19 +01:00
pancake
9efa5a50cb * Fix cmd.vprompt
* Simplify some functions in r_bin
* Added support for x86-64 for the 'ap' command
* Added dummy function calls for r_bin_demangle()
2011-02-23 20:53:56 +01:00
pancake
be7307338b * Rename 'pm' as 'pf' (print formatted data)
* pm is the print magic command
  - uses libmagic .. used for templatting data
* Added 'psp' command to print pascal strings
2011-02-23 19:11:39 +01:00
Nibble
d9483833c9 * Remove zfs from r_fs 2011-02-23 17:39:24 +01:00
Nibble
f3c32e3c17 * Remove references to r_vm
* Don't build r_vm
* Deprecate cmd 'av'
2011-02-23 17:27:59 +01:00
Nibble
9845881b25 * Add commands:
- 'Cv-' 0x0ff for deleting var renames
  - 'Cv*' for listing var renames in rad mode
2011-02-23 15:38:23 +01:00
Nibble
8546c2d61b * Initial implementation of cmd 'Cv' for renaming vars
* Add r_parse_varsub() to r_parse
* Add config variable 'asm.varsub'
* Minor fixup in core/anal.c
2011-02-23 15:17:06 +01:00
pancake
1c2526c1da * Add 'p=' command 2011-02-23 13:25:41 +01:00
earada
4c72f5f082 * Zoom out in cursor mode
* Fix dalvik goto opcodes
* Initial import of the dalvik anal plugin
* Fix 'ms' mount a non-exist root
2011-02-23 03:01:26 +01:00
pancake
dc3d11d7d5 * Fix segfault in r_cons_memcat
* Add yp command and document yt
* Add p6d and p6e to decode and encode base64 strings
* Remove vm.* config vars
* Fix RNum evaulation for $ variables
* Implement r_fs_posix
2011-02-23 02:10:28 +01:00
pancake
130d088a2c * Implement /A - search for AES expanded keys
* Added /w command to search for wide strings
* Add 'mo' command to show offset and size of given file
  - cd libr/fs/p/grub ; make fs  # to test
* Drop hardcoded list of partition types in cmd_mount
* Fix r_fs_read for files bigger than 512 bytes
2011-02-23 00:54:40 +01:00
pancake
2290969c05 * Added udf and iso9660 filesystems
* Fix msdos partition type info
* Show all supported partition types in 'mp' command
2011-02-21 15:32:42 +01:00
earada
4cb8868ecc * Add filesystem prompt using ms command (Thanks Adriana)
* Add r_str_chop_path support for ../
2011-02-18 18:22:51 +01:00
Nibble
fc9d5f2dca * Filter loc's in 'afl' output 2011-02-18 13:38:37 +01:00
Nibble
5c1d473b69 * Fix segfault in r_list_destroy()
* Fix Build
2011-02-18 10:58:17 +01:00
earada
15ca02a355 * Fix chop in r_fs mount, dir and open 2011-02-18 01:43:31 +01:00
pancake
c348fe7a8a * Add install-doc-symlink (install fortunes!)
- thanks ash for reporting
* Some indentation fixes in printzoomcallback
* Fix r_flags.vapi
2011-02-17 01:22:15 +01:00
earada
c089297bd8 * Add print zoom mode 'pZ'
* Visual zoom mode 'z'
* r_print now uses RIOBind
* Add r_flag_space_get
2011-02-17 00:58:54 +01:00
pancake
4fad96ecbb * Make r2-swig happy without valaswig
* Add r_io_raise() and use it in the 'o' command
  - Allow to raise the file handle priority
2011-02-16 09:29:09 +01:00
Nibble
8cf6516d0d * Speed up 'k' in visual
- Use cache instead of bwdisasm
2011-02-15 16:19:18 +01:00
Nibble
6aea3ed907 * Implement 'pd -n' for backward disassembly
* Use bwdisasm in visual.c for 'k'
2011-02-15 12:31:32 +01:00
pancake
8d60673253 * Autocomplete 'o' and '.' with filename in filesystem
- Leaks a lot.. but mostly works :)
2011-02-13 01:37:02 +01:00
pancake
13b4c2d9f1 * Added 'pb' command to print in binary form
* Added 'ap' command to search and analyze function preludes
  - x86 only atm.. just as a PoC
2011-02-12 12:54:26 +01:00
pancake
f950dcb33c * Add RIOMap in r_core_file_open
- RCore.file_open() now accepts one more arg for offset
  - Fix RIO api issues related to RIOMap and opening multiple files
  - Fix infinite loop and simplify design
  - Added test case to ensure it does not breaks
* Fix build of r_lang in OSX (thanks @capri_x)
* Remove debugging printfs
* io.ffio is now true by default
2011-02-12 01:52:41 +01:00
Nibble
affc72e255 * Minor fixup in 'ag' (print also syms) 2011-02-11 17:11:31 +01:00
Nibble
2a477ce8b7 * More refactoring of r_core_anal_*
- Remove ugly pbb
* Add support for global diff graphs
* Fix global graphs
2011-02-11 16:56:38 +01:00
Nibble
9a20ce63b2 * Fix command 'cg' 2011-02-11 15:42:38 +01:00
Nibble
9acb486f7b * Enable string analysis on init 2011-02-11 11:38:47 +01:00
Nibble
800e3a9076 * Update vapi's to the new changes in r_anal 2011-02-11 11:37:28 +01:00
Nibble
f3f094117a * Huge refactoring of r_anal code and API 2011-02-11 11:22:43 +01:00
pancake
e4e77b2c75 * Autodetect required column width to fit in screen
* Add 'pd' in autocomplete and clean some warnings
2011-02-10 00:55:30 +01:00
pancake
5228d4eff0 * Autocomplete flags after '@'
* Fix some segfaults when core->file is NULL
* Some simplifications in dietline
2011-02-10 00:21:05 +01:00
Nibble
c16f6d7777 * Sort basic blocks after analysis
- Make diffs more accurate if split is enabled
2011-02-09 22:51:25 +01:00
Nibble
ead4e9502f * Simplify type assignment in r_anal
* Include fcn type in 'rabin2 -r' output
2011-02-08 00:15:12 +01:00
Nibble
cc9cefa74e * Some refactoring of r_anal
- Add fcn types for syms and imports
  - Filter bindiff matches by type (speed up analysis)
  - Assign the right fcn type in bin_load
* Fix segfault in r_anal
  - Solve bug with unknown opcodes + graph splitting
* Update more vapi's
2011-02-07 17:43:50 +01:00
pancake
7bb5b2d46d * Many bugfixes in RIOMap handling and 'o' command
* Added util/bitmap (hashmap of bits)
2011-02-07 09:46:01 +01:00
pancake
64c4e5c014 * Fix various bugs in r_lang api
- Use RList instead of kernel's list.h
* Initial import of 'vala' plugin
  - Allows to write Vala/Genie scripts
2011-02-06 14:10:16 +01:00
pancake
ad027ba004 * Apply patchsets from Glyn Kennington (Thanks!)
- Added new method r_io_shift (start, end, move)
  - Added 'r' command (like in r1)
  - Fix parallel builds with -j>1
2011-02-05 12:51:37 +01:00
pancake
b6ff556b75 * Enhace some help messages (.?)
* Added search.prefix "hit" by default.
* search.asmstr is now boolean and true by default
  - Affects /c opcode search command
* Add much more autocompletion hints for commands
* Fix tabulation of list of available options in r_line
2011-02-05 02:21:40 +01:00
pancake
387e82728a * Fix offscreen cursor with <0 seeks in Visual mode 2011-02-05 00:36:51 +01:00
pancake
53587faf25 * Implement rap:// remote radare protocol support
- Fully compatible with radare1
  - Server  $ r2 rap://:9999
  - Client  $ r2 rap://127.0.0.1:9999//etc/fstab
* r_io has been refactorized to support client/server io plugins
  - Requires make clean
* Enhacements in Visual mode:
  - [] keys change scr.cols eval variable (hex columns)
  - Handle offscreen cursor and selection
  - Handle <0 seeking in visual mode
2011-02-05 00:20:28 +01:00
Nibble
5742b10641 * Remove remaining fastcall stuff from r_asm
* Fix build for bindings
2011-02-04 18:34:20 +01:00
Nibble
7de9646195 * Merge 2011-02-04 14:07:56 +01:00
Nibble
1d83a7ba25 * Some optimizations in r_anal
- bb's are included in fcn struct
  - analyze bb's and fcn's all together
* Update some vapis
* Fix build
2011-02-04 14:03:59 +01:00
pancake
8924841072 * Some more work on r_core_sysenv*
- fix api, but still not using BLOCK or so
* Fix help for ??? and !?
* Upgrade swig/configure.acr to 0.6.9
2011-02-04 11:30:08 +01:00
pancake
9c8aa28a9a * Some better help messages
* Added asm.lineswidth (fixed width for reflines)
* Added 'aoe' stub command
2011-02-03 09:31:50 +01:00
pancake
fdd8ed6bc1 * Use r_reg API from r_anal in order to retrieve info for r_syscall
* Hacky support for software interrupts in anal.x86im plugin
* Added 'B' key to toggle automatic blocksize
2011-02-03 00:57:29 +01:00
pancake
1f1a36c817 * Initial implementation of the r_anal_aop_execute api
- It's like r_vm, but using r_anal
  - r_vm is going to be deprecated
* Added r_mem_set_num()
* Remove deprecated asm/t/fastcall example
* Fix warnings in r_syscall_regs
  - Integrated with r_syscall_use()
  - Fix r_syscall_reg() out of bound bug

--HG--
rename : libr/syscall/regs.c => libr/syscall/fastcall.h
2011-02-03 00:20:39 +01:00
pancake
1f953579ea * Fix build 2011-02-02 13:23:44 +01:00
pancake
965a577af2 * More work on the r_anal/r_syscall refactoring for calling conventions 2011-02-02 13:05:48 +01:00
pancake
bc38178050 * Add support for multiline macro definitions 2011-01-27 09:31:52 +01:00
pancake
4eeb7b1331 * Nicer inc method for visual key
* Clean warnings in r_search test programs
2011-01-27 01:12:02 +01:00
pancake
edd47d4229 * Fix visual glitches when hexdump and code are mixed
- Fix scrollup/scrolldown using new core->inc var (yay)
2011-01-27 00:45:16 +01:00
pancake
cec3935b00 * Fix r_cmd_macro '(' command now works 2011-01-26 23:40:16 +01:00
pancake
af7cfafc0d * Initial api for r_anal_cc (calling conventions)
- Not yet implemented, just a draft
* Added initial AVR cpu code analysis plugin
2011-01-26 21:54:39 +01:00
pancake
c79c75c9e7 * Use adaptative blocksize as reported by rvalles
- Only affects disasm and hexdump in visual mode
2011-01-23 17:48:31 +01:00
pancake
9cd07bd9d2 * Added r_cons_resize() and _interrupt() RConsEvent callbacks
- Use _resize() from visual mode, so redrawing is now cleaner
* Minor bug fixes
2011-01-23 13:12:16 +01:00
earada
2fd808e19b * Fix rafind2 build
* jk visual commands seeks an opcode size
2011-01-21 10:21:04 +01:00
pancake
3ab9e61c22 * Do not show registers if sync fails
* More work on the io refactoring
2011-01-21 09:17:14 +01:00
pancake
bbda7ed61e * Much more fixes for the new r_io
- r_io_malloc plugin is now working
  - r_io_size now accepts only one argument
* Fix nullptr bug in r_fs
2011-01-21 00:21:32 +01:00
pancake
ed8d076cbe * Fix r2 -n, remove r2 -t
- Some more fixes related to r_io. still more stuff to do
2011-01-20 23:28:20 +01:00
pancake
39f77a430f * Huge r_io refactoring
- Many things are broken in this commit
2011-01-20 22:52:16 +01:00
pancake
d0af9bcc66 * Added support for listing MSDOS partitions
- Other partition types (leeched from GRUB) will be added soon.
  - Added 'mp' command to display partitions
* Clean warns and fix some bugs in the grub code
2011-01-14 14:41:56 +01:00
pancake
b8b87f050e * Initial working r_fs API with ext2 fs
- Support file reading and directory listing
* Fix build
2011-01-14 01:02:20 +01:00