Commit Graph

2434 Commits

Author SHA1 Message Date
Nirmal Manoj
085f5024b9 Use RzAnnotatedCode from JSDec (pddA) 2022-06-09 07:14:25 +08:00
Florian Märkl
d65ad504ca Rewrite getVariables with API
This also avoids annoying "ERROR: No function found in ..." beging
printed by afvj when right-clicking anywhere outside a function.
The heuristics in functionIn() also have been adjusted to prefer the
function that has its entrypoint at the given addr, if there is any.
2022-06-09 07:14:25 +08:00
Florian Märkl
0dc4e94647 Remove unnessecary str in setToData() (Fix #2901) 2022-06-09 07:14:25 +08:00
Florian Märkl
b6288ecbf6 Fix a strange comparison 2022-06-09 07:14:25 +08:00
Florian Märkl
76c1ab894e Add missing overrides to SectionsModel 2022-06-09 07:14:25 +08:00
SR_team
8ace08b6e0 Update includes compat with KF5.92 on some distributions (#2912)
With KF5.92 headers KSyntaxHighlighting/{header}.h copied to KSyntaxHighlighting/ksyntaxhighlighting/{header}.h. Headers KSyntaxHighlighting/{Header} now include ksyntaxhighlighting/{header}.h instead of {header}.h. Than on some distros like ArchLinux headers KSyntaxHighlighting/{header}.h removed, because it copies of KSyntaxHighlighting/ksyntaxhighlighting/{header}.h and because KSyntaxHighlighting/{Header} now include ksyntaxhighlighting/{header}.h.
2022-06-09 07:14:25 +08:00
alexthesys
21ab0e2a9e Convert if-block to early return 2022-06-09 07:14:25 +08:00
alexthesys
7119017eae Hexeditor: add option to write hex bytes 2022-06-09 07:14:25 +08:00
yossizap
b884fe5f74 Update rizin submodule (#2900)
This is also a partial fix for #2897
2022-06-09 07:14:25 +08:00
Florian Märkl
9d2404b486 Rewrite isWriteModeEnabled() with API
This also introduces a slight behavioral change: Previously, only the
core file with the "raised" io desc was checked, which is RzIO.desc. But
that member is deprecated for good reasons, so now we just check if
there is any core file whose primary fd has write enabled.
2022-06-09 07:14:25 +08:00
Florian Märkl
f26f04b5fe Replace usage of wcj by C API 2022-06-09 07:14:25 +08:00
Florian Märkl
b0c2dea772 Remove unused stats query (#2903)
The views showing this info have been removed in the past, so it was
unused. This also fixes some errors with latest rizin where
zero-argument f does not exist anymore (it's now fl).
2022-06-09 07:14:25 +08:00
Akihiko Odaki
518014ee19 Use rizin instead of Qt to parse JSON (#2902)
Qt truncates integers to 52-bit, corrupting e.g. memory addresses. Use
rizin's JSON parser, which can parse integers whose size is up to 64
bits.
2022-06-09 07:14:25 +08:00
yossizap
ddaa02c0f8 Remove additional 0x prefix in the registers widget (#2896) 2022-06-09 07:14:25 +08:00
Yossi Zap
c95a5d59a5 Bypass meson Popen_safe_legacy() error 2022-06-09 07:14:25 +08:00
Yossi Zap
a4bc803eea Add missing rz_demangler.dll to windows packaging 2022-06-09 07:14:25 +08:00
Theofilos Pechlivanis
cff49fa2a2 Save and load the layout of the Functions widget (#2844) 2022-06-09 07:14:25 +08:00
Petros S
22cb8e7594 Move more common disassembly-previewing functionality to namaspace (#2849) 2022-06-09 07:14:25 +08:00
Segev Finer
f7e6f9466d Enable console redirection on Windows without starting from a console (#2888) 2022-06-09 07:14:25 +08:00
billow
35408be46f Convert rizin commands to C apis (#2861)
* "fr" renameFlag
* "f-" delFlag
* "f" addFlag
* "fsj" getAllFlagspaces
* "fj" getAllFlags
* "afn" renameFunction
* "af-" delFunction
* "af" createFunctionAt
* "eco"
* "ecd"
2022-06-09 07:14:25 +08:00
Segev Finer
cabe3ffb3e Fix crash on Windows when starting from a console (#2885)
Fixes #2877
2022-06-09 07:14:25 +08:00
Giovanni
4f627e9bff Return error when applying a signature fails. (#2882)
* Updated rizin commit to 8282cee287abdbf8664a0b2540bad2b5ea5b819d
* Fix messages based on fail/success result while applying a sig/pat file
2022-06-09 07:14:25 +08:00
Giovanni
453974da35 Add signature widget for flirts (#2881)
* Added flirt view and removed zignature one
* Added menu for apply signature from file and create new sig/pat files
* Updated rizin to dev branch
2022-06-09 07:14:25 +08:00
Giovanni
297b9bb192 Enable support for building rz-libswift on cutter (#2841) 2022-06-09 07:14:25 +08:00
Florian Märkl
893baea832 Fix pdj call in nextOpAddr for disasm scrolling (#2874) 2022-06-09 07:14:25 +08:00
nirkog
5c4ba4891d Add double click to seek to global var in decompiler (#2871) 2022-06-09 07:14:25 +08:00
nirkog
138078a6f4 Added support for ctrl+Enter submission in open shellcode tab (#2851)
* Added support for ctrl+Enter submission in shellcode tab in the new file dialog
2022-06-09 07:14:25 +08:00
Riccardo Schirone
98411b4dbf Update Rizin to dev and use CMake config files (#2855)
API usage has been adjusted.
There are now also cmake config files directly installed by Rizin itself, so we don't need to keep a custom FindRizin.cmake file in Cutter. This remove that file and just uses `find_package(Rizin COMPONENTS Core)`, which will use the cmake files installed on the system.
2022-06-09 07:14:25 +08:00
Giovanni
b66c3f6f30
Bump version to 2.1.0 from stable (#2962) 2022-06-08 18:34:03 +02:00
billow
11419f6858
Convert Rizin command calls to te Rizin APIs (#2960)
* Convert `iCj` call to the API
* Convert `icj` call to the API
* Convert `iij` call to the API
* Convert `iej` call to the API
* Convert `CClj` call to the API
* Convert `iEj` call to the API
* Convert 'ihj' call to the API
* Convert 'iSSj' call to the API
2022-06-08 08:02:26 +08:00
Giovanni
90608117c9
Yara plugin + fix linuxdeployqt plugins (#2924) 2022-06-08 07:18:43 +08:00
Giovanni
247ab94b71
Download and install sigdb option (#2949)
* Download and install sigdb option and disable swift demangler when libswift is installed
* Remove dir.prefix and use rz_core_analysis_sigdb_list for sigdb
* Use a different color for flirts
* Updated to rizin dev
* Use rz_path_set_prefix to set the prefix path on OSX bundle
2022-06-06 11:27:13 +02:00
Florian Märkl
2e6fd46127
Fix null deref in strings loading without any file (#2955) 2022-05-30 19:34:33 +02:00
Islam Bassuni
a630a8f5bc
Partially refactor Dashboard to API (#2930)
Also fixes missing NX and PIC bits in Dashboard.
2022-05-30 19:34:17 +02:00
Florian Märkl
3fc3d8d878
Fix EditVariablesDialog parenting (#2954)
This fixes the dialog being placed weirdly when using the 'Y' shortcut
because it was parented to the DisassemblyContextMenu, which itself
might not be shown at all.
2022-05-30 18:13:55 +02:00
bartoszek
26e4f4acb8
Add missing Rizin headers in python bindings (#2943) 2022-05-30 13:04:34 +02:00
Florian Märkl
1914b34fd8
Refactor VisualNavbar to use API instead of p-j (#2953)
With the updated rizin, this also fixes any error prints saying
"Cannot alloc for this range" and json errors when no valid range is
available.
2022-05-30 13:01:55 +02:00
billow
150769cd6b
Convert Rizin commands to the API calls (#2948)
Including wx wr wd ws ww wz ahi ahb aec aecu aecc aecs aes aesb aets+
aets- afc afcl omfg+w oo+ oo p8 aei aeim aeip aecb aeso dbs avj
2022-05-28 10:09:00 +02:00
Giovanni
147af53565
Fix the lib name on windows (#2950) 2022-05-24 18:47:59 +00:00
billow
c9e8686ecb
Convert Rizin commands to the API calls 2022-05-22 16:51:54 +08:00
billow
e43a31cc85 update rizin to cdc80202dd7eaf5bacf0e36a64f964c822e67dd4 2022-05-19 11:11:46 +08:00
billow
c0f80a2628 convert to api for dr 2022-05-19 11:11:46 +08:00
billow
d6ce8048c5 convert to api for aht 2022-05-19 11:11:46 +08:00
billow
3d39cf625f convert to api for aoj 2022-05-19 11:11:46 +08:00
Paul I
5f376f55db
Revert changes in functionAt (#2941) 2022-05-12 16:55:55 +02:00
Giovanni
bdeacabffb
Replace afcf with C api. (#2940) 2022-05-08 15:17:52 +03:00
Jakob Zielinski
6f61d0d7d8
Search button disabled and button text changed while search is occurring (#2928) 2022-05-07 15:01:10 +03:00
staz
8cb4f867fa
Fixed an invalid index check (#2937) 2022-05-07 14:59:46 +03:00
Islam Bassuni
d2243006e2
Created adding comments option inside Hexdump. (#2927) 2022-04-13 07:50:57 +03:00
billow
de5c1a5154
Convert from Rizin commands to the API for w (#2926) 2022-04-10 11:43:42 +08:00