Commit graph

28466 commits

Author SHA1 Message Date
wargio
2c9a7008e9 Refactor analysis mips to remove static vars 2023-06-25 18:16:24 +08:00
Giovanni
d6779c42d7
Add len check in esil code before calling rz_analysis_op (#3603) 2023-06-25 13:44:02 +08:00
dvertx
8135a450e9
Refactor ls command for rzshell (#3600) 2023-06-24 20:49:12 +08:00
Florian Märkl
6452be6c20
Make rz-pipe tests invariant to local user config (#3601) 2023-06-23 18:19:45 +02:00
Florian Märkl
4fd9cd7cc1
Extend Mach-O platform recognition (#3599)
Some identical code from both mach-o 32 and 64 has been moved to
mach0_common.c to avoid duplicate compilation.
rz_mach0_platform_to_string() now recognizes all known platforms and the
information is shown as the subsys in the i command.
The "os" value was previously unreliably and ios sometimes showed as
"ios" and sometimes as "darwin" depending on the binary. Now the os is
"darwin" for all platforms. ios-* syscall files have thus been removed
as only darwin-* ones will be used.
2023-06-23 13:28:41 +00:00
Giovanni
6bfc67a286
Breaking method is user defined. (#3598) 2023-06-23 18:24:22 +08:00
Anton Kochkov
33c056e4e3
Add API to request function variables without arguments (#3597)
* Add Doxygen to variables API

* Add Doxygen to function API

* Improve arguments and variables API
2023-06-22 00:37:18 +08:00
dvertx
c9ef508bf4
Fix ls command parser (#3593) 2023-06-21 22:09:45 +08:00
Riccardo Schirone
8bc33bae5c
Remove unused rz-bb binary, probably left from r2 times (#3596) 2023-06-21 20:48:21 +08:00
Giovanni
9b6d9f86ac
Add reason when failing loading a windows dll (#3592) 2023-06-20 15:49:31 +08:00
Anton Kochkov
9c6feafd47
Prefer BE in strings search when it is known (#3588) 2023-06-19 13:19:50 +08:00
Anton Kochkov
f7a3309a29
Remove dead code in analysis/data (#3587) 2023-06-19 11:02:51 +08:00
swedenspy
655ea987cc
MD2 - hash implementation added according to RFC 1319 (#3585) 2023-06-18 23:01:57 +08:00
Giovanni
27dc5c8650
Remove old string detection methods. (#3584)
* Remove old string detection methods.
* Allow changing encoding based on `bin.str.enc`
* Cleanup for optimization regarding RzAnalysisData and its kind
* Allow changing endianness.
2023-06-18 18:12:59 +08:00
Giovanni
3ba4118615
Update blake3 commit (#3586) 2023-06-18 14:54:28 +08:00
borzacchiello
85f745e010
pyc: inizialize 'error' before calling 'magic_int_within' (#3583) 2023-06-17 08:29:47 +08:00
Anton Kochkov
3f18c11609
Update capstone project URL (#3580)
Co-authored-by: yossizap <yossizap@gmail.com>
2023-06-16 15:33:44 +08:00
billow
c1f92b3349
Fix rz_buf_uleb128 when parse 0xffffffffffffffffUL (#3579) 2023-06-16 09:27:42 +08:00
borzacchiello
d9a5cf3d28
Python 3.10 Support (#3577)
* Extract major and minor from python version string instead of converting it to double

The patch fixes 3.10 version extraction (3.10 == 3.1)

* update latest python magic version to 3491 in get_code_object

* opcodes for python3.10

* PYC: do not search for strings in code

* PYC python 3.10 tests

* Fixed typo in "pyc 3.9 sections" test

* pyc: refactored string search

* pyc: removed parse_version_major_minor

use "magic_int_within" to check python version
2023-06-16 08:28:17 +08:00
Dhruv Maroo
5f14d0e0b5 Fix analysis tests 2023-06-14 11:04:34 +08:00
Dhruv Maroo
2f6f2cfdce Fix ROR and update instruction asm tests 2023-06-14 11:04:34 +08:00
Dhruv Maroo
4127d7dabc Added CMOVcc, BSF, MOVABS, MOVSX, MOVSXD, MOVZX instructions 2023-06-14 11:04:34 +08:00
Dhruv Maroo
aa7781b098 Remove unnecessary local variable in IL for test instruction 2023-06-14 11:04:34 +08:00
Dhruv Maroo
5211e1835b Fix integration tests for x86 IL 2023-06-14 11:04:34 +08:00
Dhruv Maroo
0503f3a6fd Setters should set all the bytes of the register 2023-06-14 11:04:34 +08:00
Dhruv Maroo
c312514189 Remove unecessary set in test instruction 2023-06-14 11:04:34 +08:00
Dhruv Maroo
2bcdb40bd3 Set eflags after shift instruction 2023-06-14 11:04:34 +08:00
Dhruv Maroo
349e699098 Jump addresses are not relative 2023-06-14 11:04:34 +08:00
Dhruv Maroo
b4b873de82 Save the result in operand for shift instructions
* Also return `NULL` for unimplemented instructions (for the sake of
      tracetesting)
    * Check for `rex.w` in rotate instructions
2023-06-14 11:04:34 +08:00
Dhruv Maroo
d2c475e4d2 Pass the correct value of pc 2023-06-14 11:04:34 +08:00
Dhruv Maroo
0053fc62a4 Add ins_size field in x86 instruction struct 2023-06-14 11:04:34 +08:00
Dhruv Maroo
388404880d Remove PC registers from the register profile 2023-06-14 11:04:34 +08:00
Anton Kochkov
7d64d8b2bf
Move RzPanel types from RzCons to RzCore (#3576) 2023-06-14 07:15:10 +08:00
Anton Kochkov
89551db165
Move RzPanels from RzCore to RzCoreVisual (#3575) 2023-06-13 11:42:21 +08:00
Anton Kochkov
a53598cab2
Remove mention of pz from help (#3574)
`pz` was removed before, remove the mention from help too
2023-06-12 21:19:37 +08:00
Anton Kochkov
3f935c11c6
Remove last global from TUI (#3573) 2023-06-12 19:41:40 +08:00
Giovanni
5f590d144e
Add FNEQ and fix FEQ (#3571) 2023-06-12 14:57:18 +08:00
Heersin
295faad6ca
Fix forder return type and add feq macro (#3570) 2023-06-12 10:05:10 +08:00
Daniel
70a0244e04
Rename separator_get_first and word_get_first ##refactor (#3559) 2023-06-11 19:38:42 +08:00
Luca Borzacchiello
d0426f9edd
Fix arguments alignment in PYC disassembler (#3569) 2023-06-11 18:38:28 +08:00
wargio
b52ebcc62f Fix mnemonic mask for bf 2023-06-10 09:17:44 +08:00
wargio
5f30f1c966 Re-add rz_core_sym_name & rz_core_sym_is_export wrongly removed. 2023-06-10 09:17:44 +08:00
wargio
4186be8b56 Add tests for printing IL 2023-06-10 09:17:44 +08:00
wargio
09b24bca84 Fix mnemonic mask for 6502 2023-06-10 09:17:44 +08:00
wargio
2f5da62e17 Add agI and aoi for printing RzIL statments as graph or pretty printing 2023-06-10 09:17:44 +08:00
wargio
4dbe18da08 Sort meson IL source files. 2023-06-10 09:17:44 +08:00
Anton Kochkov
3ac8a36c7b
Remove tiny graphs (#3567) 2023-06-09 17:59:04 +08:00
billow
6f3969f8c0
Fixes for variables and arguments diplay in disasm (#3561)
* Remove ConsoleTheme from disasm.c
* Add `rz_core_analysis_var_to_string()` API method
* Avoid variable overriding arguments
* Fix tests
2023-06-08 17:22:07 +08:00
Brian Randall
099439fcb3
Modify capitalize flag to make entire OP uppercase ##disasm (#3556) 2023-06-07 02:12:01 +08:00
billow
6eb14128ad
Adding tricore support for rz_debug_plugin_gdb (#3557) 2023-06-06 12:53:51 +08:00