684 Commits

Author SHA1 Message Date
Nibble
c72c17ed45 * More work on x86im plugin 2010-05-04 17:17:46 +02:00
Nibble
195c0417bb * Clean up r_bin_elf 2010-05-04 01:26:36 +02:00
pancake
329ea07ec1 * Add doc.sw documentation (wip)
* Add missing parenthesis in p command's help
* Some code enhacements for r_sys_cmd_str_full
2010-05-03 21:24:58 +02:00
Nibble
9ae4ba7cc8 * Remove hardcoded stuff from 'ao'
* Initial working version of x86im plugin
  - graphs can be generated using the plugin
  - basic code analysis is working too
  - Next step is adding support for some missing opcodes
* Fix x86im makefile
2010-05-03 19:52:27 +02:00
Nibble
5c3c8e70c6 * Initial import of x86im (by pluf) into 'x86/x86im/'
* Add dummy ranal plugin for x86im
* Move dislen stuff to 'x86/dislen/'
* Add "import msdn" to TODO.refactoring

--HG--
rename : libr/anal/arch/x86/dislen.c => libr/anal/arch/x86/dislen/dislen.c
rename : libr/anal/arch/x86/dislen.h => libr/anal/arch/x86/dislen/dislen.h
2010-05-03 12:37:51 +02:00
Nibble
08cfc25e85 * Fix segfault related to dwarf 2010-04-20 19:32:04 +02:00
Nibble
e6e0421ad9 * r_bin_elf
- Improve error handling for malformed elfs
  - More aesthetic fixes
2010-04-20 12:00:22 +02:00
pancake
33c08eb7bb * merge 2010-04-15 00:30:07 +02:00
pancake
f74a844ed3 * Fix segfault in 'wa' (thanks ash for reporting!) 2010-04-15 00:29:42 +02:00
pancake
193bdb886d * Initial work on w32dbg IO, fork and attach still incomplete
- Not yet linked with debugger backend
2010-04-14 23:56:27 +02:00
pancake
64acd4eeae * Fix segfault in rotate print modes (thanks ash!) 2010-04-14 22:55:28 +02:00
pancake
c552863cef * Initial refactoring work for 'pd' and 'pD' commands
- Colorize bytes and offset when scr.color=true
  - Still needs to be moved to r_print
  - Needs cleanup, optimization and simplification
2010-04-14 22:28:45 +02:00
pancake
46ab7ab8b0 * merge 2010-04-14 14:11:38 +02:00
pancake
7a753ac0cb * strnlen helper in format/elf/elf.c is now static inline
* Some random syntax cleanups
* Fixes some warnings in r_socket on w32
2010-04-14 13:28:56 +02:00
pancake
34435b1285 * Mental note: %lld/%llx does not exist on windows
- Use the macro PFMT64{xod} in case
2010-04-14 13:02:23 +02:00
pancake
cb9ee58920 * Fix possible overflow in PE format loader
- Do not used trashed bytes from r_file_slurp_range
* Implement r_sys_cmd_strf
  - Simplify code in addr2line r_bin_meta plugin
* Install again in site-packages for py2.6
  - Debian/Ubuntu uses dist-packages, but not in arch
2010-04-13 21:19:54 +02:00
pancake
74034be518 * Oops, fix import name length in ELF 2010-04-13 10:31:01 +02:00
pancake
f194be07c9 * merge 2010-04-12 11:46:36 +02:00
pancake
ef5f65c2b8 * Fix ELF64 header identification
- This bug was causing bin_load fail sometimes
    on mingw32 and linux on elf32
* Check null pointer in r_file_slurp_range
* Fix compilation (oops)
2010-04-12 11:46:15 +02:00
pancake/n900
e5121e2ccc * Fix link of r2 binary 2010-04-12 03:05:21 +02:00
pancake
4137587cb3 * Fix compilation under mingw32
- Linking fixed for r_sign and
* Fix some reads out-of-bounds in r_bin_elf
  - Use __strnlen instead of ELF_STRING_LENGTH
  - Some simplifications using macros
* Open plugins in radare2 found in '.' by default
  - Make w32 happy
  - Fix RLib for w32 and local plugin files
* Implement r_sys_cmd_str() for w32
  - Also r_sys_setenv()
* Fix printfs in lib/t example
* win7 syscall list is now default windows one
* Added 'r_sys_perror' to make it portable on *nix and w32
* Rename RLibrary into RLib
2010-04-12 02:22:52 +02:00
pancake
ed7fd90fee * Fix linking in r_core in r2-swig 2010-04-11 21:20:32 +02:00
pancake
51007d2880 * Check for 'libr' pkgconfig in r2-swig configure
- Needs acr-head (PKGCFG!)
2010-04-11 20:50:07 +02:00
Nibble
b95e8ae265 * Fix bug in r_io_seek related to va 2010-04-11 13:48:16 +02:00
pancake
9add8fe3d9 * Add 'dpf' command to set pid=core.file.fd
* When cfg.debug=true use dbg.backend ("native")
  and select core.file.fd.. this simplifies use
2010-04-11 01:46:07 +02:00
pancake
75d58c0176 * Added script to generate graphs from loc statistics
- http://radare.org/get/r2cdg.jpg
  - http://radare.org/get/r2clg.jpg
2010-04-09 17:51:03 +02:00
pancake
96bf343a4b * Added doodle results in main TODO file
* Added r_flags.vapi in r2-swig
  - Add example usage
  - Add missing r_core.deps
    - There are some bugs there while accessing inner fields of RCore :/
2010-04-09 17:13:35 +02:00
pancake
373a3db8b7 * Implement r_lang_setup for python
- Setups RCore, int or string types
* Added r_core_cast() static method
  - Helper for swig magic
  - Allows to cast C pointers into python instances
* Fix EOF issue in #!<lang>
* Fix and sync r2-swig vapis
2010-04-09 15:57:22 +02:00
pancake
d468580c3c * Fix one-byte overflow in r_cons_memcat
* Fix flagSort command (fS)
  - sort by name is now done by strcmp
  - str_hash and str_hash64 are not enought
* Use r_cons in flag/t .. we must drop this dependency
* Add 'all-flagspaces' entry in Vt menu
  - When switching back to visual mode, the
    print mode is not lost
* Some code cleanup
2010-04-09 13:24:40 +02:00
pancake
db3aa272b0 * Add 0xeb (short jmp) in modify asm x86 plugin
* Add help for 'fs' command
* Added 'fS' command to sort by offset (fSo) or name (fSn)
  - Current r_flag_sort breaks the linkedlist
2010-04-09 11:32:17 +02:00
pancake
f5bf177c60 * Implement r_asm_modify
- wA command is used to Alter opcodes (move to r_anal?)
  - allows to modify various opcode instructions
* Add search.distance config variable
2010-04-09 00:52:38 +02:00
pancake
f499ca67e7 * Added 'f' type of signature
- Used to determine function preludes
  - On x86: "zf prelude 5589e5"
    - we can probably merge this type into a formattable
      zignature named
  - Remove old code in sign.c
2010-04-08 18:48:39 +02:00
Nibble
9207ece839 * Fix segfault printing big buffers
* Modify r_anal_reflines_str to return char*
2010-04-08 18:29:46 +02:00
pancake
a358d38e50 * Added support for binarymask hexpairs to search and signatures
> s 0&&./x 6c..62&&p8 3@@hit
  > zb function 89e55383ec....38 # binary mask inline
  - works like r_hex_str2bin, but converts binary mask and keyword
* RSign now uses r_cons_printf from core.
* FunctionPrintf typedef to bypass some warnings
* Added r_mem_eq
2010-04-08 18:01:45 +02:00
pancake
df10a0df95 * Implement command 'zg' to generate zignature files 2010-04-08 16:20:41 +02:00
pancake
b860a73afd * Initial working implementation of the signatures
- Support raw search
  - Allow to check for each analyzed function
    .zc@@fcn
  - Added 'zc' and 'zp' commands
  - Remove 'az' commands
2010-04-08 15:48:53 +02:00
Nibble
bfba666c62 * Revert last commit O:) 2010-04-08 14:28:01 +02:00
Nibble
83dffd48ec * Fix r_io_seek issues when io.va = false 2010-04-08 14:19:07 +02:00
Nibble
c5396fbb10 * Fix cmd repitition (3x@offset)
* Fix seek to invalid offsets
* Improve r_anal graphs
2010-04-08 14:04:34 +02:00
pancake
f2563a7509 * Export 'srwx' perms of sections in rabin2 -rS
- Handled by 'S' command
* Added dummy 'z' command to handle zignaturez
  - Added more dummy 'az' commands
  - RCore now depends on RSign
* Some refactoring and speedup in _update method of RSearch
  - Added support for distance search (maybe buggy and incomplete atm)
  - Fix binary mask for keywords after previous commit
* Added 'r_str_rwx*' helper functions in r_util
2010-04-08 12:29:47 +02:00
Nibble
ee6304ea62 * Fix bindings build 2010-04-07 18:21:56 +02:00
Nibble
d8cb940a9d * Initial refactoring of r_anal & r_core 2010-04-07 13:43:50 +02:00
pancake
68cb13b0a6 * Do not ask to save project when project file is ""
* Clean and refactor of the TODO
2010-04-07 11:07:59 +02:00
Nibble
acba7af2b1 * Fix segfault in r_bin_elf 2010-04-07 11:08:43 +02:00
pancake
508e4f596a * Other random cleanup/fixes 2010-04-06 18:21:41 +02:00
pancake
29ad58473f * Fix 'e foo' output
* Fix io.ffio warnings
* Fix '.' key in visual mode (sr pc)
* Various 64bit related fixes
* Various fixes in r2-swig
  - Needs valaswig from hg (update)
  - r_config and
2010-04-06 14:23:12 +02:00
pancake
929fb8cc2d * Refactor SearchKeyword API
- simplified and cleaned one
  - sync codes using it
2010-04-06 13:02:21 +02:00
pancake
c2bc7e0377 * Initial split of r_search_keyword
* Fix -soname of osx linker (-install_name)
* Added OSX build instructions in doc/osx
2010-04-05 22:49:22 +02:00
pancake
c98674bd01 * Drop m68k from asm/p/Makefile
* Fix import/export of flags by project file
  - Unset flagspace restriction
  - Do not use '@' .. faster :)
* Add r_sys_write into r_util vapi
2010-03-31 01:06:26 +02:00
pancake
a28fa26e53 * Store flags and config variables in project file
- add header comment before every data
* Added r_str_write and r_str_writef to simplify code
* Some code cleanup in config and project code
2010-03-31 00:30:25 +02:00