Commit graph

77 commits

Author SHA1 Message Date
GustavoLCR
bb388edcd4 WinKD: Send acknowledge response for all packets 2022-05-10 10:22:49 +08:00
Nicolas Jeker
cb9e96679e
Fix build with use_sys_tree_sitter (#2562) 2022-04-28 01:38:03 +08:00
Anton Kochkov
0a309afbe9
Update zlib subproject to 1.2.12 2022-04-06 08:33:56 +08:00
Florian Märkl
09ac331a27
Update SDB for C++ compatibility (#2461)
Since 170ab3eb3b, `ht_pp.h` was included
before the full `sdb.h`, making the symbols mangled in C++ and thus
breaking Cutter by default.
This has been fixed in sdb now.
2022-03-28 12:59:42 +00:00
Riccardo Schirone
88b0872dca Update tree-sitter to 0.20 for rzshell and C parsers 2022-03-18 17:29:39 +01:00
GustavoLCR
d4e8c74450
Update SDB subproject (#2419) 2022-03-17 09:05:38 +08:00
GustavoLCR
170ab3eb3b
Remove windows.h include from rz_types.h (#2410)
* Create `rz_windows.h`
* Move `RzThread` structure definitions to internal header
* Create and use `rz_th_get_user()` API to avoid exposing `RzThread` layout in external header
* Make `rz_th_self()` an IPI
* Use `_wmkdir()` in `rz_sys_mkdir()` on Windows
* Remove unused `winkd_break_read` function
* Remove `RzIORap` definition from `rz_io.h`
* Remove include of `Windows.h` from `rz_types.h`
* Use `rz_windows.h` when necessary
* Remove `RzCoreRtrHost` definition from `rz_core.h`
* Remove `rz_socket.h` include from `rz_core.h`
2022-03-16 13:54:41 +01:00
GustavoLCR
dd81b6629a
Implement getting a backtrace from a Windows Kernel Dump for x64 (#2387)
* PE: Add header to mappings
* PE: Add temp defs for unknown `UNWIND_CODE_OPS`
* Core Bind: Add `RzCoreBinApplyInfo` binding
* DMP/WinKD: Always add kernel modules to mod list
* Implement Windows x64 SEH backtracing
* Fix `ompb` not prioritizing maps
* Optimize `rz_io_map_priorize()`
* DMP: Implement backtrace for x64
2022-03-15 10:45:02 +01:00
Peiwei Hu
babb7bf342
Remove command 0 (alias for s 0x...) 2022-03-09 22:10:13 +08:00
GustavoLCR
0129c3fa31 DMP/WinKD: Fix UTF16 decoding module name on Linux 2022-03-03 21:52:41 +08:00
GustavoLCR
c510827056 DMP/WinKD: Always include current thread/process 2022-03-03 21:52:41 +08:00
GustavoLCR
b634893cad DMP/WinKD: Read running status of threads 2022-03-03 21:52:41 +08:00
GustavoLCR
68a9966bc8 DMP/WinKD: Fix incorrect extra thread being listed 2022-03-03 21:52:41 +08:00
GustavoLCR
79c2ea11f0 DMP/WinKD: Check KOBJECTS are thread/proc on read 2022-03-03 21:52:41 +08:00
GustavoLCR
d187251d1c DMP/WinKD: Fixes for selecting thread/process 0
* Use `ctx->ethread/eprocess` as the way to identify if there is currently a target selected
* Fixes listing kernel modules if current process cid is 0
* Fixes listing threads if current process cid is 0
2022-03-03 21:52:41 +08:00
GustavoLCR
84fbd53c7d WinKD/DMP: Use RzLog API 2022-03-03 21:52:41 +08:00
GustavoLCR
555c011165 WinKD/DMP: Reorder function parameters for consistency with RzIO 2022-03-03 21:52:41 +08:00
GustavoLCR
11c366583e DMP: Fix ETHREAD address on triage dump
* Gets `ETHREAD` address from `KPRCB`
2022-03-03 21:52:41 +08:00
GustavoLCR
7c6810e2ee DMP: Read context from KPCRB if target is on a cpu
* Get `KiProcessorBlock` address from PDB
* Read KPCRBs and check if selected thread is running in one of the
  processors
* Read context from it if so
2022-03-03 21:52:41 +08:00
GustavoLCR
246cf762ff DMP: Dynamically create profile if not found
* Adds `rz_type` dependency to `rz_debug`
2022-03-03 21:52:41 +08:00
GustavoLCR
ce97cb50df DMP: Fixes for Triage Dump
* Fix ETHREAD and EPROCESS mapping for Triage Dumps
* Fix VA mapping for Triage Dumps
* Save register context inside `DmpCtx`
* Fix attaching to thread
* Fix selecting process/thread 0
2022-03-03 21:52:41 +08:00
GustavoLCR
54af096151 WinKD/DMP: Add WindCtx->target_thread
* Make `WindCtx->target` a structure instead of a pointer
2022-03-03 21:52:41 +08:00
GustavoLCR
8237987f2d WinKD/DMP: Implement winkd_download_module_and_pdb()
debug\meson.build add rz_bin
2022-03-03 21:52:41 +08:00
GustavoLCR
284c11134f WinKD/DMP: Add timestamp to WindModule 2022-03-03 21:52:41 +08:00
GustavoLCR
ff0d411610 WinKD/DMP: Fix reading from before a page mapping 2022-03-03 21:52:41 +08:00
GustavoLCR
ed66d75d0a Make WindCtx structure more generic to support both kd and dmp 2022-03-03 21:52:41 +08:00
Florian Märkl
df915b85b1
Update capstone-next (#2370)
This fixes the operands of casp in arm64.
See for example aoj of 827c2048.
2022-02-28 16:27:50 +01:00
Giovanni
bfec86a12e
Add option to install sigdb systemwise and custom user location for additional signatures (#2328) 2022-02-28 14:32:38 +01:00
Giovanni
6d000e1122
Update fallback urls (#2355) 2022-02-22 19:47:49 +00:00
Anton Kochkov
e170bfe80e
Fix Meson subprojects language option (#2341) 2022-02-21 20:22:26 +08:00
Khairul Azhar Kasmiran
9a9ccc95f1
Use 1 regex for both .( and ..( (#2206) 2022-01-14 20:47:57 +08:00
Khairul Azhar Kasmiran
4a9d3f2438
Fix #2135: Add ..( command (#2184)
* Fix #2135 - Add `..(` command
* Use `RZ_LOG_ERROR` instead of `eprintf` inside `macro_call()`
* Improve `(?`
2022-01-13 18:10:23 +08:00
Giovanni
e90d770e4a
Fix muon issue due type casting (#2198) 2022-01-12 18:37:21 +01:00
Riccardo Schirone
6f40dfe493
Move remaining things from shlr/ to meson subprojects (#2126)
* Move binrz meson directives to binrz/ dir

* Move rizin-shell-parser to a subproject

* Move bochs to a meson subproject

* Move rzqnx to meson subproject

* Move winkd to a meson subproject

* Move rzar to a meson subproject

* Move rzw32dbg_wrap to a meson subproject

* Move ptrace-wrap to a meson subproject

* Move rzgdb to a meson subproject

* Rename w32dbg_wrap to rzw32dbg_wrap

* Update CODEOWNERS

* Remove old references to shlr

* Move shlr/heap stuff in core and remove shlr/arm

* Move spp to a meson subproject

* Remove last references to shlr

* Remove use_webui option

* Move include files directives to librz/include/meson.build

* Move librz meson directives into librz/meson.build

* Handle d/ directories inside the specific module meson.build

* Move plugins listing to specific module meson.build

* Move rzheap to its own subproject

* Fix js linter and licenses

* Use meson.override_dependency for all rz_ modules
2021-12-22 09:20:39 +08:00
Riccardo Schirone
9465cca0f5 Replace AES code with Nettle one which is LGPLv3
Code taken from https://git.lysator.liu.se/nettle/nettle and placed in
its own subproject.
2021-12-17 09:18:47 +01:00
Giovanni
bda1e9cfca
Disable GPL code and Add RISC-V support via Capstone 5 (#2087)
* -Duse_gpl=false is supported by rizin and added riscv_cs for capstone v5
* Added GPL build workflow in CI
2021-12-11 13:30:01 +01:00
Khairul Azhar Kasmiran
98e4816b03
Update capstone-bundled for -Wunneeded-internal-declaration (#2058) 2021-12-02 15:53:09 +01:00
Khairul Azhar Kasmiran
c0642a3c90
Update capstone-bundled to capstone:v4 HEAD (#2051) 2021-11-30 17:43:50 +08:00
Khairul Azhar Kasmiran
ffc0b9cf74
Use --werror with Linux Clang builds (#2043) 2021-11-29 22:37:45 +08:00
Florian Märkl
a978564527
Add Big-Endian Patch to Tree-Sitter Subproject (#1969) 2021-11-12 14:53:15 +01:00
Florian Märkl
35cae73427 Update SDB for macOS 10.5 fix 2021-10-26 10:50:22 +02:00
Florian Märkl
3bf5534380 Check for arc4random_buf in libzip 2021-10-26 10:50:22 +02:00
Giovanni
7745d2f1df
Bump libdemangle to fix Coverity and ASAN findings (#1878) 2021-10-24 10:20:55 +08:00
Giovanni
18569e6cf0
enforce c99/gnu99 on libdemangle (#1785) 2021-10-01 20:10:22 +02:00
Giovanni
e224ee7b28
Add demangling as plugins and libdemangle as external dependency (#1656)
* Added demangling as plugins and libdemangle as external dependency
* Added iDl to return the list of demanglers
* moved demangling tests into rz-libdemangle and keep only bin tests
2021-10-01 10:45:38 +00:00
Florian Märkl
65d567282b
Remove length restrictions in analysis classes and various serializations (#1718) 2021-09-18 16:48:14 +02:00
Giovanni
efce1f3713 Bump SDB revision 2021-09-14 21:35:56 +08:00
Riccardo Schirone
0ef69ba2e8
Update tree-sitter to 0.19.5 (#1633) 2021-09-09 08:21:55 +08:00
Giovanni
c96ab70432
Use source_fallback_url when failing (#1604) 2021-09-06 17:12:52 +02:00
wargio
7146b3af75 Revert "Added support to swift demangling (#1595)"
This reverts commit b6259bd31f.
2021-09-06 17:09:51 +02:00