wargio
e3bb728b26
Add afsb to output pattern, mask and search mask of the current function
2022-10-26 21:46:22 +02:00
wargio
bbdf3d03bd
Fix flirt crc calculation, length and matching
2022-10-26 21:46:22 +02:00
Anton Kochkov
3479a9b82a
Convert pv commands to rzshell ( #3069 )
2022-10-11 23:33:28 +08:00
Riccardo Schirone
b869e1c14a
core/cmd_descs: add name of command on top of cmd handler
2022-10-11 14:02:47 +02:00
Anton Kochkov
4a037c2f2a
Convert dk commands to the rzshell ( #3078 )
2022-10-11 18:02:52 +08:00
Anton Kochkov
87e369b9a7
Convert de commands to the rzshell ( #3083 )
2022-10-10 22:10:48 +08:00
Anton Kochkov
24503df48b
Convert pF commands to the rzshell ( #3071 )
...
* Convert `pF` commands to the rzshell
* Add json output for PKCS7 and x509 and rename test due FS issues
Co-authored-by: wargio <wargio@libero.it>
2022-10-09 19:18:05 +02:00
wargio
fbad0b4859
Remove agd and add rz_analysis_similarity/match + refactoring
...
- Introduce the following new methods:
* `rz_analysis_similarity_basic_block()`
* `rz_analysis_similarity_function()`
* `rz_analysis_similarity_basic_block_2()`
* `rz_analysis_similarity_function_2()`
* `rz_analysis_match_basic_blocks()`
* `rz_analysis_match_functions()`
* `rz_analysis_match_basic_blocks_2()`
* `rz_analysis_match_functions_2()`
- Remove `RzAnalysisDiff` and its usages
- Remove `librz/analysis/diff.c` entirely to and adds `librz/analysis/similarity.c`
- Remove a lot of unused structures and simplified the code by a lot
- Fix typo in levenshtein
- Remove `librz/core/gdiff.c` and `gdiff` functions since they were unused or only used in rz-diff
- Remove `difftype` (or "color") from `RzANode` which lead to dead code
- Decrease serialized data in projects.
- Add `RzAnalysisVarKind` and `RzAnalysisVarType` and replaces all the hardcoded values
- Remove command `agd`
- Remove all `rz_core_gdiff` usages from `rz_core.h`
- Refactor `rz_analysis_var_list` and `rz_analysis_var_count` due unused argument (`RzAnalysis` was not used)
- Add new method `rz_analysis_var_count_total` to simplify some usages
- Remove `rz_core_graph_diff`
- Add `typedef RzAnalysisFcnType` on `enum``used for function types
- Remove unused `RZ_ANALYSIS_FCN_VARKIND_LOCAL`
- Remove from `RzAnalysisFunction` the following variables:
* `fingerprint`
* `fingerprint_size`
* `diff`
* `diff_ops`
* `diff_thbb`
* `diff_thfcn`
- Remove from `RzAnalysisBlock` the following variables:
* `fingerprint`
* `diff`
- Remove `RZ_ANALYSIS_THRESHOLDBB` and `RZ_ANALYSIS_THRESHOLDFCN`
- Remove the following callbacks from `RzAnalysisPlugin`
* `RzAnalysisDiffBBCallback`
* `RzAnalysisDiffFcnCallback`
* `RzAnalysisDiffEvalCallback`
- Fix fancy table columns/rows when a color string is in a cell
- Bumped project version to 9
2022-10-04 20:02:35 +02:00
Anton Kochkov
7c0bd7cd03
Convert dW command to the rzshell
2022-09-30 15:52:08 +08:00
Anton Kochkov
2a22a1fcc6
Convert dw command to the rzshell
2022-09-30 15:52:08 +08:00
Anton Kochkov
c5e901c332
Convert dg command to the rzshell
2022-09-30 15:52:08 +08:00
Anton Kochkov
4bf6b67212
Convert dd commands to rzshell ( #3049 )
...
* Convert `dd` command to rzshell
* Remove unimplemented `dH` command
* Remove `ddt` command
* Move `date` command to the "shell" category
2022-09-29 08:24:50 +08:00
Anton Kochkov
1d7458150e
Convert dx commands to the rzshell ( #3043 )
2022-09-28 00:49:09 +08:00
Anton Kochkov
d0bd24cf26
Convert dp commands to the rzshell ( #3047 )
2022-09-27 01:21:25 +08:00
Anton Kochkov
8fd06cd6b7
Convert di commands to the rzshell ( #3041 )
2022-09-20 20:35:20 +08:00
Anton Kochkov
52260857b5
Convert some of the a commands to the rzshell ( #3025 )
...
* Remove `ap` command
* Convert `ad` commands to rzshell
* Convert `aF` command to the rzshell
2022-09-15 21:09:15 +02:00
billow
46a1929397
Refactor rz_core_analysis_graph*() functions ( #2949 )
...
- fix `ags` and `agl` commands
- add more tests for the `ag` commands
- move graph related code to cgraph.c
- remove APIs `rz_core_print_bb_custom` `rz_core_print_bb_gml`
- exports
- `rz_graph_drawable_to_json_str`
- `rz_graph_drawable_to_cmd`
- `rz_graph_drawable_to_gml`
- `rz_core_graph`
- `rz_core_graph_diff`
- `rz_core_graph_format_from_string`
- `rz_core_graph_type_from_string`
- `rz_core_graph_write`
- `create_agraph_from_graph_at`
- add unit/integration tests for the graph API
2022-08-29 22:48:23 +08:00
Riccardo Schirone
9ba89d8116
core/cmd: rewrite rz_cmd_macro API
2022-08-26 07:53:43 +08:00
Riccardo Schirone
c9064dc0d6
core/cmd_descs: do not duplicate function declarations ( #2951 )
2022-08-22 21:53:05 +08:00
billow
4b385978a1
Convert ag to rzshell ( #2916 )
...
* `BROKEN=1` for `ag[df]`
Co-authored-by: Anton Kochkov <anton.kochkov@gmail.com>
2022-08-22 08:16:14 +08:00
Riccardo Schirone
d1feb6cea3
Build: add option to choose to regenerate cmd_descs.[ch] ( #2934 )
2022-08-19 16:15:56 +02:00
Riccardo Schirone
ac1b0e4d94
core/cmd: fix CHOICES argument selection between choices_cb/choices ( #2932 )
2022-08-18 20:10:13 +08:00
billow
eefbbed7d3
Expose pds as an API ( #2885 )
...
* expose `rz_core_print_disasm_strings()`
2022-08-09 09:26:28 +08:00
billow
1054e6295f
Export pcA as rz_core_print_bytes_with_inst ( #2880 )
...
* export `rz_core_print_bytes_with_inst`
* move `pcA` to rzshell
2022-08-07 00:28:01 +08:00
billow
0908b65bc3
Convert px[ dDhHwWqQol] to rzshell
...
* `pxd` -> `pxd 4`
* `pxd<N> [len]` -> `pxd <N> [len]`
* expose APIs:
- `rz_core_print_cmp`
- `rz_core_print_dump`
- `rz_core_print_hexdump_`
- `rz_core_print_hexdump_byline`
* test for `pxW` `pxH`
* move `void rz_print_section` -> `const char *rz_print_section`
* `pxd` -> `pxd[ hwq]`
* `pxc`
* `pxAv` -> `pxAl`
* `pxt.` -> removed ?
* `px/` -> keep
* `pxf` -> TODO: not found old code ?
2022-08-04 09:11:22 +08:00
Peiwei Hu
7f02a45dc3
Port command pb/B to new shell ( #2828 )
2022-07-29 00:20:10 +08:00
Peiwei Hu
7001e81336
Port command pa to new shell ( #2824 )
2022-07-20 17:55:30 +00:00
Peiwei Hu
9a75679626
Port command p6 to new shell ( #2819 )
2022-07-19 18:11:00 +08:00
billow
40ca22202b
Refactor rz_core_print_disasm_json ( #2746 )
...
* Split `rz_core_print_disasm_json` as: `rz_core_print_disasm_json` and `rz_core_disasm`
* Use `rz_str_enc_string_as_type` in `ds_init`
* Refactor `rz_core_print_disasm` and `rz_core_handle_backwards_disasm`
* Add `rz_core_asm_bb_middle`
* Move global `disasm_texts` to `RzDisasmState`
* Rewrite `core_analysis_bytes_standard` with `rz_core_analysis_bytes`
* Add `test_rz_core_print_disasm` and `test_rz_core_analysis_bytes`
* Rewrite `rz_core_print_disasm` with `RzCmdStateOutput`
* `pdi` -> `pdq` in tests
* `pdi` -> `pDq` in tests
* `pid` -> `pdq` in tests
* `pId` -> `pDq` in tests
* `pij` -> `pdj` in tests
* `pIj` -> `pDj` in tests
* `pdeqq` -> `pdeQ` in tests
* Remove `pDJ` from `test/db/json/`
2022-07-09 08:10:06 +08:00
Peiwei Hu
906fe97252
Add psc command to generate a C/C++ string ( #2791 )
2022-07-08 19:50:32 +08:00
Peiwei Hu
8e6f7e1a78
Add hints for fe/f commands ( #2785 )
2022-07-07 22:27:26 +08:00
Peiwei Hu
69399bb1ea
Convert command ai to new shell ( #2778 )
2022-07-04 18:08:58 +02:00
Peiwei Hu
c9f21da81f
Convert command aL(j) to new shell
2022-07-04 23:37:23 +08:00
Giovanni
ea02b0d25f
Remove zignatures and move aaF[l] -> F[al] , zf[sdc] -> F[sdc] ( #2682 )
2022-06-29 07:49:43 +08:00
Riccardo Schirone
9ea7c2fa5a
RzHash: rename everything in librz/hash to RzHash prefix
2022-06-28 21:55:26 +08:00
Giovanni
648882d544
Add libmspack and add idpx to extracts compressed pdb ( #2728 )
...
* Add libmspack, cabextract and add idpx to extracts compressed pdb
* Remove cabextract from CIs since it is not anymore required.
2022-06-27 23:52:07 +02:00
GustavoLCR
efc529cb5e
Allow to set jump table type to a enum ( #2706 )
...
* Adds `afbet` command
* In disassembly, try to substitute the switch table case number with the corresponding enum case
2022-06-19 17:29:16 +08:00
billow
e767046197
Convert dL to rzshell (becomes dl) and expose API
...
- Convert `dL` to rzshell
- `dL` becomes `dl`
- Expose `rz_core_debug_backtraces()` API
- Expose `rz_core_analysis_hint_set_offset()` API
2022-05-13 20:17:56 +08:00
Giovanni
0d4d8f5892
Ported aa* commands under newshell ( #2594 )
2022-05-10 19:07:20 +02:00
billow
457105f640
Convert do to rzshell ( #2573 )
...
* `doo` -> `ood`
* `doof` -> `oodf`
* expose `rz_core_debug_process_close()` API
2022-05-07 09:07:02 +08:00
Riccardo Schirone
659bf11fce
RzCore: add iSS. command
2022-05-06 18:09:17 +02:00
billow
bb4167acc9
Convert ds commands to the rzshell ( #2574 )
...
* expose `rz_core_debug_step_until_frame()` API
* expose `rz_core_debug_step_over()` API
* expose `rz_core_debug_step_skip()` API
* expose `rz_core_debug_step_back()` API
2022-05-06 16:18:20 +08:00
Paul I
df354a4cec
Convert af commands to rzshell ( #2586 )
2022-05-05 18:19:17 +08:00
Anton Kochkov
c42dd5d4bb
Convert as commands to the rzshell ( #2323 )
2022-05-03 18:06:18 +08:00
Paul I
00676b4e39
Convert afc commands to rzshell ( #2559 )
2022-04-24 20:55:41 +02:00
Giovanni
de8a5cac55
Porting pd and subcommands to newshell ( #2552 )
...
* pd + pda[jJqi=]
* Added pdb/pdC/pdf/pdk/pdl/pdp/pdr and removed pdi in favour of pdq
* removed pdx since is an alias for 2 other commands.
* Added pdR and pds[fb]
* Added example and fixed bug when cw
* Removed pdx test file since it is the same as cmd_pix
2022-04-21 16:19:48 +02:00
Paul I
8df5d48b95
Convert afM, afm, aft commands to rzshell ( #2550 )
2022-04-21 13:56:00 +02:00
billow
6669f35145
Convert commands to rzshell aes aets ( #2534 )
2022-04-12 02:06:22 +02:00
billow
68445de6b1
Convert aec aei commands to rzshell ( #2515 )
2022-04-09 20:49:01 +02:00
Paul I
5ea3630c35
Convert ab commands to rzshell ( #2395 )
2022-04-02 21:27:55 +08:00