Commit Graph

51 Commits

Author SHA1 Message Date
Guillaume Valadon
04bf98a358 Use void in prototypes (#7972) 2017-07-20 10:48:55 +02:00
pancake
c91339830e Initial implementation of dir.zigns and honor in zo 2017-04-28 14:37:30 +02:00
Roi Martin
98f73f6b24 Remove r_config dependency from r_anal 2017-04-05 22:54:52 +00:00
Roi Martin
dae85e62ac Use RList in refs zignatures 2017-04-05 22:36:39 +00:00
Roi Martin
0427524f97 Implement basic zign matching 2017-04-04 00:39:47 +00:00
Roi Martin
fb72dbb94b Do not add generated refs in zign 2017-04-03 00:47:53 +00:00
Roi Martin
668da7eeef Add refs to zign metrics 2017-04-03 02:28:20 +02:00
Roi Martin
d27f1c7d24 Add offset to zign metrics 2017-04-03 02:28:20 +02:00
Roi Martin
25134da7cf First steps in supporting multiple zign heuristics 2017-03-30 18:11:54 +02:00
Roi Martin
5d46f0224c Implement custom anal_mask for ARM 2017-03-29 02:25:43 +02:00
Roi Martin
a3070b131b Restore zs names on load. r_spaces refactoring 2017-03-24 22:53:38 +00:00
Roi Martin
38a112708d Improve zignatures naming 2017-03-20 23:06:24 +00:00
Roi Martin
09c3e12a8f Implement metric zign search and check 2017-03-18 11:33:30 +01:00
Roi Martin
1425fd4418 Implement metric zignatures management 2017-03-18 11:33:30 +01:00
Roi Martin
3fa18414c3 Implement open/save zignature file 2017-03-17 00:43:02 +01:00
Roi Martin
5743f373ff Integrate support for FLIRT signatures 2017-03-13 11:38:23 +01:00
Roi Martin
bcb8072ec5 Move search code into r_sign. Refactoring 2017-03-13 11:38:23 +01:00
Roi Martin
e97444c3f0 Create flags in z/ . Revert changes in keyword.c 2017-03-13 11:38:23 +01:00
Roi Martin
28f8a23632 Add r_sign_foreach(). Add dummy z/. Make r2-indent happy 2017-03-13 11:38:23 +01:00
Roi Martin
3f89eec3b0 Initial rewrite of zignatures
Includes:
* Add exact and anal zignatures (zae, zaa)
* Delete zignatures (z-)
* Manage zignspaces (zs)
2017-03-13 11:38:23 +01:00
Dax
e350505f7b Implemented 'zp' command 2015-12-24 12:24:05 +01:00
pancake
aeeda9ea4f Allow unlimited length in signature namespaces and items 2015-12-22 22:52:04 +01:00
pancake
40e08dbd89 Get rid of _Bool 2015-12-01 12:39:12 +01:00
jvoisin
20d11bf92d Add json output with zj 2015-10-14 21:26:26 +02:00
pancake
b8224a153f Fix #3471 - Show number of matches in 'z' 2015-10-14 16:55:55 +02:00
pancake
49975ccf95 Fix #3286 - Use stdbool.h 2015-09-14 02:08:31 +02:00
shuall
0807686d86 #3052 all printf member functions changed to cb_printf 2015-08-09 03:25:05 +02:00
jvoisin
a8937732b8 Fix all 'warning: function declaration isn’t a prototype [-Wstrict-prototypes]' 2015-01-13 03:40:35 +01:00
Jody Frankowski
f227d254cc Add a flirt signature parser, scan and dumper. 2014-09-14 18:25:58 +02:00
Jody Frankowski
c8af9cb1cd Rename prefix to namespace 2014-08-17 02:20:28 +02:00
jvoisin
bc04cb6825 Add some zignatures goodies
- z-prefix is now working
- z doesn't forget to count things
- help is improved
2014-06-23 12:05:27 +02:00
pancake
2397c956c9 Use R2_ as unique header guard prefix 2014-03-27 16:34:17 +01:00
pancake
d3af1ea077 Fix #723 - header guards conforming to C standards 2014-03-27 02:32:26 +01:00
pancake
2cbce80f2f Add __cplusplus extern "C" boilerplate everywhere 2013-06-18 12:09:23 +02:00
pancake
bc0104563b Initial support for runtime versioned libraries
- This check will ensure you are running the latest r2 version.
2013-06-14 02:51:33 +02:00
pancake
53843bb8ab * Added static version of 'sw' in doc.sw/sw
- main repo only works in cgi mode..
* Fix 'z*' command
  - Display bytes when listing 'zb'
* Drop unused 'RList*' from RSignItem
* Add missing definition of r_flag_rename
2010-07-21 00:05:33 +02:00
pancake
56baae7e6e * Use RList in r_sign (Thanks edu for the patch!)
* Implement dummy darwin-arm syscall table to disable warnings in iphoneos
2010-07-16 00:40:28 +02:00
pancake
bc2c79ee8d * Use RList in r_bp
- vapi updated
* Generalize the use of PrintfCallback typedef
  - used in r_bp and handled by r_cons in r_core
2010-06-30 01:13:09 +02:00
pancake
c8da941768 * Very early work on r_anal_call api
* Initial support for visual cursor with invert cons in 'pd' bytes
  - Some changes in '*' and '/' keys in visual modes (+-16)
  - '+/-' in visual cursor works as in r1 (inc/dec cursor byte)
* Rename 'zf' into 'zh' for header, not function
  - 'zf' stands now for function signatures (args, types, ret, ...)
2010-06-17 17:55:39 +02:00
Nibble
7abcfe6852 * Refactoring
- Remove all init functions (included in _new)
  - Update vapi's (needs more work)
2010-05-20 17:40:58 +02:00
pancake
1940120f0a * Added fast keys to seek on jumps or calls '1'-'9'
* More seek undo pushes in visual mode
* Added 'd' key in visual mode 'df' defines a function
* Huge repointerization in RCore
* Fix r_num_new() constructor
2010-05-20 00:59:42 +02:00
Nibble
8ff37cd30b * r_anal
- Add r_anal_strmask
  - Add nopcode (opcode count) to RAnalAop
* r_util
  - Fix constant types in r_types_base
* Add r_anal stuff to TODO
2010-05-16 14:04:08 +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
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
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
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
pancake
fcbcc00d1e * Huge refactoring on r_syscall
- Integrated with core 'as' command. as? for help
  - Display formatted parametters of syscalls
  - Needs to fully implement this everywhere
  - Syscall argument parsing is not yet complete (<4args)
    - r_debug_arg_{set|get}
* Implement continue until syscall on Linux debugger backend
* Lot of syntax cleanup to use the new code convention
  - Clean r_sign, r_search, r_syscall
* Define global R_SYS_ARCH, _OS and _BITS
  - Handle asm.os and asm.arch to hook r_syscall plugins
  - Display 8 or 16 zeros depending on asm.bits
  - Added r_str_filter () to filter nonprintable chars

--HG--
rename : libr/search/stripstr.c => libr/search/strings.c
2010-03-04 01:46:25 +01:00
pancake
54bdfb22bd * Uppsercase classnames (rCore -> RCore)
- Fixes ruby warnings
  - Follow java syntax conventions
  - Helped to identify and fix bugs in many vapis
  - Sync swig examples
  - Add test-r_core.rb (ruby test for RCore)
* Some work in r_cons, some refactoring and cleanup
  - scr.html is now working again
  - w32 cons support should work now
  - Rename r_cons_get_columns -> r_cons_get_size()
  - But it needs more work
* Typedef all r_range, r_parse and r_anal structs
  - Add missing r_lib.pc in configure.acr
* 'make' clean now removes the libr* in swig/${LANG}/
2010-01-26 01:28:33 +01:00
pancake
82eb30ad04 * Huge code refactoring to adapt interfaces for valaswig
- hg clone http://hg.youterm.com/valaswig
* typedef all structs as r_asm_item_t -> rAsmItem
  - Sync typedefs with classnames for vala and valaswig interfaces
  - Needs more work and testing
  - C code keeps fully compatible
* New script to build valaswig bindings (swig/libr-swig.sh)
  - Needs integration with 'make test'
  - This will help to create a decent unit testing framework
    to find bugs in bindings and enhace the design of APIs
    from a centralized way keeping compatibility for all the
    languages supported by swig (c#, python, java, ruby, perl, ..)
* Fix vala test programs build
2009-12-24 03:17:53 +01:00
Nibble
94445e1540 * Change the name of some types
- s/u64/ut64/
  - s/u32/ut32/
  - s/u16/ut16/
  - s/u8/ut8/
2009-07-08 13:49:55 +02:00