Sina Karvandi
12cd4250b5
Merge pull request #664 from HyperDbg/linux
...
Linux
2026-08-01 20:18:42 +02:00
Max Raulea
17fb85f366
added header for PLatformCPU
2026-08-01 17:08:20 +02:00
Max Raulea
652721be62
Added Printk in rhw platformDBG file
...
For debug printing added printk for linux kernel logging.
2026-08-01 17:06:58 +02:00
Max Raulea
953af9388a
PlatformCPU Linux Implementation
...
Filled in the stubs for the windows functions:
KeQueryActiveProcessorCount(0) and KeGetCurrentProcessorNumberEx(NULL).
KeQueryActiveProcessorCount(0) maps one to one to num_online_cpus()
KeGetCurrentProcessorNumberEx(NULL) maps to raw_smp_processor_id(),
however this can also be smp_processor_id(), we have to decide based on
preemption, the latter checks for preemption and throws a warning if it
is executed in preemptible code. (I dont know the kernel code well
enough so this may need some discussion)
2026-08-01 16:54:08 +02:00
Max Raulea
be2c96d192
Environment header file guards
...
For the kernel module build some libc header files are not present so we
guard them out for the kernel build
2026-08-01 16:52:29 +02:00
Sina Karvandi
e5a41009f5
Merge pull request #663 from munraimix/fix/serial-resync
...
vs2026-ci / win-amd64-build (debug, x64) (push) Waiting to run
vs2026-ci / win-amd64-build (release, x64) (push) Waiting to run
vs2026-ci / Deploy release (push) Blocked by required conditions
Resync the serial receiver on framing overflow instead of flooding after an unclean disconnect
2026-08-01 13:23:48 +02:00
sina
b77df6a62b
remove unused serial codes
vs2026-ci / win-amd64-build (debug, x64) (push) Has been cancelled
vs2026-ci / win-amd64-build (release, x64) (push) Has been cancelled
vs2026-ci / Deploy release (push) Has been cancelled
2026-07-29 15:02:53 +02:00
munraimix
2cd78897c0
Resync serial stream on framing overflow instead of flooding the debuggee
...
When the debugger drops the serial link uncleanly mid-frame (no CLOSE_AND_UNLOAD packet), SerialConnectionRecvBuffer overflowed without an end-of-buffer marker and returned FALSE into the KD dispatch loop retry. The loop re-entered the same desynced stream, so it overflowed again at once and flooded 'buffer exceeds the buffer limitation' (and could wedge the KD driver on the next reconnect). Discard bytes to the next end-of-buffer marker to re-align, start a fresh frame, and log once per desync episode with LogWarning. Framing and protocol are unchanged.
Refs #661
2026-07-26 22:43:57 +10:00
Max Raulea
4bf987a596
Added missing files to the CMake build file and sweeped them for the Platform functions and guarded windows only code
2026-07-24 21:06:04 +02:00
Max Raulea
5175381c73
script engine linux build complete, added undefined references with empty stubs or linux port and updated the Cmake file accordingly
2026-07-24 20:02:00 +02:00
Max Raulea
8583d99d14
Added ucpuid to CMakeList.txt and made it portable
2026-07-24 19:48:24 +02:00
sina
36a4f67501
update version and CHANGELOG.md
vs2026-ci / win-amd64-build (debug, x64) (push) Waiting to run
vs2026-ci / win-amd64-build (release, x64) (push) Waiting to run
vs2026-ci / Deploy release (push) Blocked by required conditions
2026-07-24 13:13:49 +02:00
sina
aa96eaa617
fix snprintf_s function
vs2026-ci / win-amd64-build (debug, x64) (push) Waiting to run
vs2026-ci / win-amd64-build (release, x64) (push) Waiting to run
vs2026-ci / Deploy release (push) Blocked by required conditions
2026-07-23 15:46:03 +02:00
Sina Karvandi
8e1288949b
Merge pull request #657 from HyperDbg/linux
...
Linux
2026-07-23 15:44:56 +02:00
sina
7911465b93
cleanup ucpuid command codes
2026-07-23 10:03:35 +02:00
Nikzad
b1b9680ce6
cpuid: some changes for improvement
2026-07-22 21:21:17 +03:30
Max Raulea
6683c2dc3d
New socket platform API and named-pipe linux file
2026-07-22 11:32:39 +02:00
Max Raulea
1abac35edc
new email and some changes
2026-07-22 11:05:07 +02:00
Max Raulea
6f7bc287fe
Guards and Documentation
2026-07-22 10:16:22 +02:00
Max Raulea
926070135d
Sweeps and extra guards and some new platform functionsd
2026-07-21 15:53:34 +02:00
Sina Karvandi
6324c1d718
Merge pull request #650 from nikzad66/feature-cpuid-command
...
Feature cpuid command
2026-07-21 14:28:37 +02:00
Sina Karvandi
fe9a6f39e4
Merge pull request #654 from HyperDbg/linux
...
vs2026-ci / win-amd64-build (debug, x64) (push) Has been cancelled
vs2026-ci / win-amd64-build (release, x64) (push) Has been cancelled
vs2026-ci / Deploy release (push) Has been cancelled
Linux
2026-07-21 14:05:03 +02:00
xmaple555
d44c726dff
update variable type and add float type in script enginr
2026-07-20 23:21:34 +08:00
Max Raulea
a29e210ab0
Porting status update and terminate thread platform call
vs2026-ci / win-amd64-build (release, x64) (push) Waiting to run
vs2026-ci / win-amd64-build (debug, x64) (push) Waiting to run
vs2026-ci / Deploy release (push) Blocked by required conditions
2026-07-20 12:32:10 +02:00
xmaple555
ec5fe7cc8a
add float in script engine
2026-07-20 15:03:45 +08:00
Sina Karvandi
8db1b75b4f
Merge pull request #649 from xmaple555/mydev
...
vs2026-ci / win-amd64-build (release, x64) (push) Waiting to run
vs2026-ci / win-amd64-build (debug, x64) (push) Waiting to run
vs2026-ci / Deploy release (push) Blocked by required conditions
Add struct in script engine
2026-07-19 22:34:41 +02:00
sina
d37352fd7e
fix the error for referencing guest registers twice in both kd and vmx codes
2026-07-19 19:39:33 +02:00
Sina Karvandi
18af7f2cbd
Merge pull request #648 from munraimix/fix/kd-null-regs-on-manual-break
...
Fix DRIVER_IRQL_NOT_LESS_OR_EQUAL when reading registers on a manually-halted core
2026-07-19 19:28:53 +02:00
Nikzad
b8a4417709
core: add CPUID command definitions and data structures- Add DEBUGGER_CPUID_REQUEST_RESPONSE structure
...
- Add ucpuid command to commands.h and help.h
- Add IOCTL definitions for CPUID
- Use macros for CPUID leaf decoding
- Update Connection.h with new packet types
2026-07-19 18:09:33 +03:30
Max Raulea
dd38a30d22
New Platform functions and maybe missed CpuID wrapper function?
2026-07-19 11:05:12 +02:00
munraimix
7436b35fd0
Fix DRIVER_IRQL_NOT_LESS_OR_EQUAL when reading registers on a manually-halted core
...
In Debugger Mode, breaking the debuggee and then reading registers (e.g. the
'r' command) could bugcheck the debuggee with DRIVER_IRQL_NOT_LESS_OR_EQUAL
(0xD1) at IRQL 0xff.
Root cause: DebuggerCommandReadRegisters() copies GUEST_REGS from
DbgState->Regs, but the per-core DbgState->Regs is only populated on the
event-triggered halt paths. A core halted via a manual break
(DEBUGGER_VMCALL_VM_EXIT_HALT_SYSTEM) or via the NMI broadcast (KdHandleNmi)
never had DbgState->Regs set, so it was NULL and the GUEST_REGS memcpy
dereferenced address 0.
Fix:
- Add VmFuncGetGuestRegs(CoreId) returning g_GuestState[CoreId].Regs (the
guest GP registers saved on the last vm-exit).
- Populate DbgState->Regs from it on the two manual-halt entry points
(DEBUGGER_VMCALL_VM_EXIT_HALT_SYSTEM and KdHandleNmi) so register reads on a
manually-halted core return the correct values.
- Add a defensive NULL check in DebuggerCommandReadRegisters().
2026-07-19 16:53:34 +10:00
xmaple555
8b6d8181a5
add struct in script engine
2026-07-19 09:39:37 +08:00
Max Raulea
0c7adbd244
New platform ioctl func and some sweeps of already existing platform functions
2026-07-18 19:20:56 +02:00
Max Raulea
db3064cb24
Sweeps of PLatform functions
2026-07-18 17:09:52 +02:00
Max Raulea
33de7da8ec
test comment
2026-07-18 16:39:45 +02:00
Max Raulea
d6f70eecd9
Added driver install for linux stub, and new platform functions and 1:1 mappings
2026-07-18 16:38:09 +02:00
Max Raulea
3805190db8
ud.cpp, new additions to platform API and guards
vs2026-ci / win-amd64-build (release, x64) (push) Waiting to run
vs2026-ci / win-amd64-build (debug, x64) (push) Waiting to run
vs2026-ci / Deploy release (push) Blocked by required conditions
2026-07-18 15:01:56 +02:00
Max Raulea
38a59b795f
Some new lib calls and reverted sleep macro to function
vs2026-ci / win-amd64-build (debug, x64) (push) Waiting to run
vs2026-ci / win-amd64-build (release, x64) (push) Waiting to run
vs2026-ci / Deploy release (push) Blocked by required conditions
2026-07-17 17:54:05 +02:00
sina
d7b46e4388
update README.md and CHANGELOG.md
2026-07-16 23:57:17 +02:00
sina
14e7d88c3c
add fix non long mode RIP overflow to the hyperevade project
2026-07-16 23:23:43 +02:00
Max Raulea
2a2425dc68
compiling kd.cpp on linux
vs2026-ci / win-amd64-build (release, x64) (push) Has been cancelled
vs2026-ci / win-amd64-build (debug, x64) (push) Has been cancelled
vs2026-ci / Deploy release (push) Has been cancelled
2026-07-16 15:00:03 +02:00
Max Raulea
ffc2595941
add definition for gcc compilation
vs2026-ci / win-amd64-build (debug, x64) (push) Has been cancelled
vs2026-ci / win-amd64-build (release, x64) (push) Has been cancelled
vs2026-ci / Deploy release (push) Has been cancelled
2026-07-14 19:12:28 +02:00
Max Raulea
4d398662ce
New definitions for gcc
2026-07-13 11:56:53 +02:00
sina
38fbed3754
change constants for the dl command
vs2026-ci / win-amd64-build (debug, x64) (push) Has been cancelled
vs2026-ci / win-amd64-build (release, x64) (push) Has been cancelled
vs2026-ci / Deploy release (push) Has been cancelled
2026-07-11 22:34:29 +02:00
sina
16b7f014ce
update dl command
vs2026-ci / win-amd64-build (debug, x64) (push) Waiting to run
vs2026-ci / win-amd64-build (release, x64) (push) Waiting to run
vs2026-ci / Deploy release (push) Blocked by required conditions
2026-07-11 19:59:08 +02:00
sina
19ffafae43
update version to v0.22
vs2026-ci / win-amd64-build (debug, x64) (push) Has been cancelled
vs2026-ci / win-amd64-build (release, x64) (push) Has been cancelled
vs2026-ci / Deploy release (push) Has been cancelled
2026-07-05 16:11:51 +02:00
sina
43cea334c2
add core and path interpretation of PT
2026-07-02 18:14:47 +02:00
sina
5bccbff58b
fix IPT kernel structure based on the new model
vs2026-ci / win-amd64-build (debug, x64) (push) Waiting to run
vs2026-ci / win-amd64-build (release, x64) (push) Waiting to run
vs2026-ci / Deploy release (push) Blocked by required conditions
2026-07-01 19:44:15 +02:00
sina
72a8aa325f
add user mode PT parameter parser
2026-06-30 20:30:25 +02:00
sina
19e47c804f
check if any module is loaded or not
2026-06-29 00:56:09 +02:00