Commit graph

1232 commits

Author SHA1 Message Date
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
Florian Märkl
537d26bba5 Fix host endianness in pdr 2022-10-23 22:06:55 +08:00
wargio
192f4251fb Fix endianness read&write on cmd_write_bits 2022-10-20 23:12:58 +02:00
Giovanni
7054afaa6b
Fix bad cast value conversion done via pointer dereference (#3104) 2022-10-18 09:40:30 +08:00
Giovanni
3d04185468
Remove un-alive mentions (#3103) 2022-10-18 08:54:35 +08:00
Florian Märkl
f04845b48e
Remove syncing dbg->bits -> asm.bits (#3099)
As already mentioned in 8681cdc43b,
the deprecated dbg->bits is set and used quite randomly, for example on
macOS/arm64, disassembling sometimes sets it to 16, then stepping with
dbg.follow enabled syncs that value back to asm.bits, which makes no
sense and breaks further disassembly.
So in light of a future removal of dbg->bits, we remove this usage of
it to fix the issue.
2022-10-15 15:42:49 +02:00
Anton Kochkov
9f6e13f364
Remove rz-agent (#3087) 2022-10-12 10:34:46 +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
Giovanni
171612c5e1
Add ssdeep hash (#3084) 2022-10-10 17:03:26 +02: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
dd92bc3d05 Refactoring and rename RASN1 to RzASN1 2022-10-09 08:09:00 +08:00
wargio
563c70057b Rename RPKCS7/RCMS/Spc to RzPKCS7/RzCMS/RzSpc 2022-10-09 08:09:00 +08:00
wargio
6e5fbe4eef Refactoring names and usages of pkcs7 2022-10-09 08:09:00 +08:00
wargio
a63f07b6c1 Rename RX509* to RzX509* 2022-10-09 08:09:00 +08:00
wargio
4e4565d6aa Refactoring names and usages of x509 2022-10-09 08:09:00 +08: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
f5c029c920
Remove RZ_IPI functions from rz_core.h header (#3040)
* Remove rz_core_print_scrollbar() from RzCore header
* Remove rz_line_hist_offset() from RzCore header
2022-09-19 22:59:14 +02:00
Florian Märkl
ac99b169bb
Expose rz_core_prevop_addr* as RZ_API + docs (#3036)
* Expose rz_core_prevop_addr* as RZ_API + docs

This was sort of a regression from
59b38e6efa, where it was switched to
RZ_IPI in the header to be consistent with the source. However we need
RZ_API because it is used at least in Cutter.

* Move rz_core_prevop_addr* to canalysis.c

Since it is api, it is not bound to TUI only, so fits better in generic
core analysis code.
2022-09-18 21:18:38 +02:00
Anton Kochkov
c54322ef67
visual: remove global variables (#3024) 2022-09-16 18:33:04 +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
Dean
59b38e6efa
Add /*<type>*/ comments everywhere (#2986)
Adds /*<type>*/ comments and a linter check from rz-bindgen to enforce
their existence and consistency

Also includes the following fixes made when adding the annotations:
* removed unused intern_table arguments in pyc_dis.c, pyc_dis.h, asm_pyc.c
* removed unused classes argument from place_nodes in agraph.c
* removed unused recurse and recurse_bb functions in canalysis.c
* removed unused vars field from RzPrint struct
* removed unused RzAnalysisType* structs from rz_analysis.h
* removed unused list field from RzEgg struct
* fixed bug in bp_plugin.c where duplication-checking logic iterates over the wrong list
* removed unused q_regs field from RzDebug struct
* removed unused backtrace field from RzDebugPlugin struct
* removed unused classes_list field from RzBinNXOObj struct
* removed unused methods_list and classes_list fields from RzBinZimgObj struct
2022-09-11 13:04:53 +08:00
Anton Kochkov
bdc053097f Move rz_core_project_*() API to the project.c 2022-09-08 07:41:18 +08:00
Anton Kochkov
20792311b4 Move rz_core_file_*() API to the cfile.c 2022-09-08 07:41:18 +08:00
Anton Kochkov
0f352c3ab3 Move RzDebug APIs to the cdebug.c 2022-09-08 07:41:18 +08:00
Anton Kochkov
9b4a1d1be0 Move ESIL and analysis APIs to the corresponding places 2022-09-08 07:41:18 +08:00
Chad Jablonski
9aa2b1ef6d
Add comment at cursor location in visual mode (#3002) 2022-09-04 13:10:11 +08:00
Anton Kochkov
960b72774e Better view modes for p-cycling in Vv view 2022-09-02 06:40:53 +08:00
Anton Kochkov
89b0c4e042 visual: remove mountpoints mention 2022-09-01 18:03:20 +08:00
Anton Kochkov
809656ac91 visual: remove snow remnants 2022-09-01 18:03:20 +08:00
Anton Kochkov
b0110adb7d visual: extract define mode from vmenus.c to define.c 2022-09-01 07:47:19 +08:00
Anton Kochkov
08b96bdbcb visual: extract ROP view from vmenus.c to rop.c 2022-09-01 07:47:19 +08:00
Anton Kochkov
6b23d9c25e visual: extract comments from vmenus.c to comments.c 2022-09-01 07:47:19 +08:00
Anton Kochkov
a969198a2f visual: extract colors from vmenus.c to colors.c 2022-09-01 07:47:19 +08:00
Anton Kochkov
8d8773f9d5 visual: extract flags from vmenus.c to flags.c 2022-09-01 07:47:19 +08:00
Anton Kochkov
5fa64f9c58 visual: extract ESIL from vmenus.c to esil.c 2022-09-01 07:47:19 +08:00
Anton Kochkov
fd3078a8f1 visual: extract config from vmenus.c to config.c 2022-09-01 07:47:19 +08:00
Anton Kochkov
8da14de032 visual: refactor tabs functions and put into tabs.c 2022-09-01 07:47:19 +08:00
Anton Kochkov
9b9ebc66c4 visual: extract classes from vmenus.c to classes.c 2022-09-01 07:47:19 +08:00
Anton Kochkov
b95b03a0e4 visual: extract bit editor from vmenus.c to biteditor.c 2022-09-01 07:47:19 +08:00