Commit Graph

144 Commits

Author SHA1 Message Date
pancake
1947f0dece * Fix o- segfault
- Problem in r_io_desc_free called twice
* Compact ??? help
* Random indentation fixes
* Added support for binmask searches
  - /x 123456 ffc0e3
* Added BLOCK and BYTES in r_core_sysenv_begin()
* Hacky fix for autoblocksize with pw
2012-02-09 01:38:16 +01:00
pancake
fd6388de60 * Show error if no hud file found
* Fix 'o file 0xaddr' parsing issue
* 'om' now works without size (file size)
  - fixed help message
* Use xor'd byte in r_io_desc_new ();
2012-02-08 00:45:06 +01:00
pancake
ce91c393d7 * Fix output of search command (fix regression test) 2012-02-01 22:54:12 +01:00
pancake
0c5a3834f4 * Fix build
* Apply 7 patches from Simon Ruderich
  - Fixed some really tiny bugs. Cool!
2012-02-01 11:49:46 +01:00
pancake
6ee952c388 * Fix make install for hud (thanks l0gic)
* Enhacements for the r_cons_hud
  - double-ESC to quit menu
  - tab and up/down arrows select row
  - first row is executed if enter is pressed
* Add ?y[ynkm] to
  - ?iy ?in     ask user with yesno dialogs
  - ?im msg     show message
  - ?ik         press any key
* Add hud.once eval var to run hud forever
* CC != CC*
2012-02-01 02:22:43 +01:00
pancake
370c4ceed5 * Some usability enhacements for the visual hud
* Do not load huge sections. crappy bins!
2012-01-31 03:34:23 +01:00
pancake
29166cc940 * Initial import of the hud input method for the visual mode
* Use '_' key in visual mode to enter in hud mode
* Support mach0 files with multiple sections with same name
* Fix parsing of commands with nested quotes
* rename ?z to ?l
* added new command ?y to get and set yank buffer contents to stdout
* ?i stores the input into the yank buffer now
* ?I accepts a file name as argument which is loaded as hud
* ?k used as key=value temporal storage
* Add calc.c .. plans are:
  - support proper parenthesis in math.c
  - support floating point arithmetics
2012-01-31 02:45:17 +01:00
pancake
f908b15fb5 * Fix android compilation
- Fix static build
  - Fix dupped symbols
* Fix all errors reported by clang-analyzer
  - Some null dereferences
  - Some uninitialized variable uses
* Fix all important warnings from the farm
  - Remove *all* uses of alloca
  - Fix many %llx format string portability issues
* Fix manpage typos reported by lintian (thanks sre)
2011-12-06 00:27:57 +01:00
pancake
a64b481125 * Fix and optimize w32 console
- Clear the whole screen, do not trash
  - Refactorize code from RCons into RConsW32
* Apply @earada's patch with minor fix for undo seek
* Ignore */+- in non-cursor visual and autoblock enabled
2011-12-05 15:21:13 +01:00
pancake
49b45b64ac * Fix undo and redo commands
* Fix some manpages typos reported by lintian
* Asm testcase now forces x86 arch and 32 bits
2011-12-05 08:27:16 +01:00
pancake
84b1aa5495 * Fix bugs reported by @vext01
- Fix search when offset+blocksize>filesize
  - Get filesize when requested
* Fix redraw of buffer in Vlll (thanks @earada)
2011-12-05 01:22:50 +01:00
pancake
50efb1091c * Do not clearline if no cons echo enabled
* Fill the whole screen in visual_write
  - Fixes unnecesary screen clears and trash
2011-12-05 00:29:24 +01:00
pancake
2646161b77 * Apply @earada's patch fixing undo/redo seek 2011-12-04 21:09:16 +01:00
pancake
7c3339bbbe * Fix ELF parsing for symbols outside the .text section
* Do not use tabs in arm and csr disassemblers
* Clear colors in visual prompt V:
2011-12-04 21:02:09 +01:00
pancake
f411aafd6c * Fix negative blocksize and printidx issues in visual 2011-12-02 14:41:17 +01:00
pancake
f566e70578 * Many ugly hacks to enhace w32 console
* Use io.va=1 on PE
2011-12-02 14:32:04 +01:00
pancake
a008a0676e * Enhacements for the visual mode 2011-12-02 02:13:49 +01:00
pancake
07620cd50c * Fix AT&T X86 disassembler when facing invalid instructions
- This bug was reported by @hteso
* Apply @earada patch hiding cursor in visual mode
* Honor asm.size config variable
2011-12-02 01:58:34 +01:00
pancake
51a2a25632 * Implement r_cons_clear_line()
- Use it from r_line
* Call r_cons_clear in visual mode when
  pressing any of these keys: B - /
2011-11-29 03:46:46 +01:00
pancake
7c2a6e63b4 * Initial implementation of r_debug_map_protect()
- Bind to dmp command
  - Only w32 + osx, needs more work
* Added new api r_graph
* Added dtc and dtg
* Some minor makeup in RList
2011-11-25 04:32:32 +01:00
pancake
48841a67be * Optimize visual mode 2011-11-25 00:22:44 +01:00
earada
21712cfbb9 * Use x1, x2, x3... to seek between xrefs in visual mode 2011-11-24 23:50:15 +01:00
earada
62c650b2a0 * Add graph.font=Courier eval var
* Use R_TRUE/R_FALSE instead of R_CORE_BIN_RADARE/R_CORE_BIN_PRINT
* Add notepad as windows editor by default
* Add 'T' menu at visual mode to show comments and anal info
2011-11-23 02:29:09 +01:00
pancake
76b68079ee * Handle int3 on x86 as a trap instruction instead of SWI
* Make 'fd' work without arguments
* Added r_flag_get_at () to handle deltas
  - Show it in visual title
  - Used by 'fd'
* Colorize trap instructions in bright red
2011-11-22 01:42:16 +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
0217c146ef * Fix x86.nz -> push [esp+N]
* Use pw instead of px in debugger stack view
* Disable stackptr by default
* Add OSX-32bit debugger register map
  - Fix support for debugging 32bit bins in 64bit OSes
* Implement r_egg_run() -- just in time execution
* Fix r_egg string construction and argument passing
  - Still needs more work, but at least some hello worlds work
2011-09-21 19:51:09 +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
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
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
earada
1f30cc1025 * Add vmenus-mounts option 2011-07-11 22:52:05 +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
earada
29a90901c8 * Add support for io.va mode in g/G visual keys 2011-06-26 23:41:34 +02:00
pancake
f35152b547 * Documentate 'g' and 'G' keys in Visual 2011-06-26 03:01:32 +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
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
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
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
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
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
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
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
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
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
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