Commit graph

3403 commits

Author SHA1 Message Date
Max Raulea
3faff1e1e2 kernel module compilation guide
Some checks failed
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-08-26 18:02:47 +02:00
Max Raulea
bb977b023a fix linux cli build 2026-08-26 17:38:27 +02:00
Max Raulea
02587aae30 windows fix
Some checks failed
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-08-24 11:57:23 +02:00
Max Raulea
7bcb464fce windows fix 2026-08-24 11:31:33 +02:00
Max Raulea
2f59ad7c70 Kernel Module now Links and compiles!!
The kernel module now links and compiles, there are still a lot of empty
TODOs left, there are empty stubs for hypertrace, assembly files and
kdserial etc. these can be introduced one by one. My first step will be
loading the kernel module from the userspace cli.

Big step forward! :)
2026-08-24 11:20:24 +02:00
Max Raulea
bf66d87e02 New fail came up, so new fix
Some checks are pending
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-08-23 15:17:38 +02:00
Max Raulea
d45fabed13 New wiondows build fix 2026-08-23 14:58:56 +02:00
Max Raulea
fb164a070a fix windows build 2026-08-23 14:35:39 +02:00
Max Raulea
9a1db34a4d fix build 2026-08-23 14:29:04 +02:00
Max Raulea
95389e46df A lot of platform function swaps and left hyperevade out of the build
Created a lot of new platform wrappers for windows only functions
also removed hyperevade from the linux module build and added a empty
stub for the transparent functions they provide which can be filled in
later.
2026-08-23 14:18:12 +02:00
Max Raulea
98fe5abd96 Added new types in the WDK linux header and went through hyperevade to sweep windows functions for the platform functions 2026-08-23 13:04:20 +02:00
Max Raulea
1233397d18 hyperhv now compiles! Together with the Zydis submodule for linux 2026-08-23 13:04:20 +02:00
Max Raulea
26a6415b70 new platform API functions 2026-08-23 13:04:20 +02:00
Max Raulea
e439fd38d3 Added new platform API functions and changed them in the source code 2026-08-23 13:04:20 +02:00
Max Raulea
845318ff0c Created empty stubs for the GNU assembler assembly files instead of the MASM files for linux kernel module 2026-08-23 13:04:20 +02:00
Max Raulea
ec7e4207c4 New platform functions added for hyperhv compilation 2026-08-23 13:04:20 +02:00
Sina Karvandi
46098fcba1
Merge pull request #678 from HyperDbg/linux
Some checks failed
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-08-22 22:58:13 +02:00
sina
3a3b017156 Restore script-engine-test submodule pointer
Some checks are pending
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-08-22 22:41:01 +02:00
Sina Karvandi
1ad184f131
Merge pull request #677 from nikzad66/uin-uout-commands
Some checks failed
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
fixed problem for user i/o instruction
2026-08-17 20:44:51 +02:00
Nikzad
123e0dd790 fixed problem for user i/o instruction 2026-08-17 22:08:37 +03:30
Max Raulea
a5b2c13c4b fix build
Some checks failed
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-08-17 15:33:46 +02:00
Max Raulea
82ad5fc9b6 Swepped hyperhv project for platform functions and swapped them 2026-08-17 15:24:25 +02:00
Sina Karvandi
fd8b9d8bc3
Merge pull request #676 from FallinBinary/dev
Some checks failed
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
refactor dl, da and dw commands
2026-08-15 22:36:49 +02:00
Max Raulea
925c90ab26 For the WDK definitions a new file now exists to store them for the linux build 2026-08-14 18:23:38 +02:00
FallinBinary
a78b0208e4 refactor dl, da and dw commands 2026-08-14 08:52:06 -07:00
Sina Karvandi
a79dd9f6cc
Merge pull request #675 from xmaple555/dev
Some checks failed
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
update function parameter to the script engine
2026-08-14 17:16:52 +02:00
Max Raulea
cf4b2c48e3 Windows build fix
Some checks failed
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-08-14 16:56:49 +02:00
Max Raulea
a02a0a25fd Port hyperlog to the Linux kernel module
Logging.c and UnloadDll.c compile and link into HyperDbg.ko, along with
the two components that were waiting on the logging layer (BinarySearch,
OptimizationsExamples).

- new PlatformStr.{h,c}: PlatformVsnprintf/Sprintf/Strnlen replace
  vsprintf_s/sprintf_s/strnlen_s; PlatformSprintf moved here out of
  PlatformMem so both spellings return -1 on truncation
- BasicTypes.h: IRP/IO_STACK_LOCATION/IO_STATUS_BLOCK/UNICODE_STRING
  grow the members shared code touches, plus the NT status and access
  constants the notify path needs
- Environment.h: RTL_NUMBER_OF, _Analysis_assume_, ASSERT -> WARN_ON
- PlatformEvent: ExEventObjectType placeholder token
- HyperLogCallback.c stays out of the module: it defines the same
  LogCallback* entry points as Logging.c (it is the per-DLL forwarding
  shim on Windows), so in one link unit it is a duplicate symbol
2026-08-14 16:25:37 +02:00
Max Raulea
a7d6535442 Add files to the build files
Hopefully fixes build issue
2026-08-14 15:41:00 +02:00
xmaple555
c40f57efa6 update function parameter to the script engine 2026-08-14 21:40:42 +08:00
Max Raulea
4dc132937f Port components/Spinlock.c to Linux kernel module
Some checks are pending
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
Route Spinlock.c's three MSVC intrinsics through the platform
intrinsics layer instead of the Windows builtins:
  _mm_pause                 -> CpuPause (already existed)
  _interlockedbittestandset -> CpuInterlockedBitTestAndSet (new)
  InterlockedCompareExchange-> CpuInterlockedCompareExchange (new, 32-bit)

Add the two new Cpu* wrappers to the kernel PlatformIntrinsics
{.h,.c} with win + linux arms (Linux uses __atomic_* builtins,
mirroring the existing 64-bit CAS), keeping the Cpu* wrappers the
single intrinsic boundary.
2026-08-14 11:35:21 +02:00
Sina Karvandi
368f0302f4
Merge pull request #673 from HyperDbg/linux
Some checks are pending
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
Linux
2026-08-13 15:01:18 +02:00
Sina Karvandi
19a4f94755
Merge pull request #674 from xmaple555/dev
Some checks are pending
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
Dev
2026-08-12 19:07:13 +02:00
xmaple555
d8e777cd39 update test script-semantic 2026-08-12 23:01:07 +08:00
Max Raulea
2a23d05ce6 Filled in the time stubs for platformtime functions for linux
Some checks failed
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-08-11 13:13:07 +02:00
Max Raulea
33571e2c51 Implementationb of the platform spinlocks file for linux kernel module 2026-08-11 13:02:16 +02:00
Max Raulea
786cb1775d Filled in PlatformProcess.c for linux module build 2026-08-11 12:53:18 +02:00
Max Raulea
b0de162deb Added linux part of PlatformIrql
Added the linux part of PlatformIrql by adding preempt_enable() and preempt_disable.
2026-08-11 12:20:50 +02:00
Max Raulea
9ea26e4f8b PlatformIO stub
Empty stubs for PLatform IO and added some types to the linux build
2026-08-11 12:00:27 +02:00
Max Raulea
d64ce241f7 Added stub for the PLatform event file
Some checks are pending
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
Added a  empty stub for the event functions on linux, since they don't
have a one to one mapping. also removed some redundant guards.
2026-08-11 11:17:35 +02:00
Max Raulea
6bb174b006 linux BHqueue for windows DPC port
In order for PlatformDpc to compile on linux I stubbed out the DPC part
and made a skeleton for the linux implementation using the BHqueue.
2026-08-11 10:53:17 +02:00
Max Raulea
5d3f694942 Renamed asm-vmx-checks-gas-unix file
Renames .s to .S, this was needed because the fiel is otherwise deleted
by make clean
2026-08-11 10:33:23 +02:00
xmaple555
d53712638c revert hyperdbg-test 2026-08-11 00:23:02 +08:00
xmaple555
5fc25f10e5 add the test script-semantic CLI command 2026-08-10 23:47:40 +08:00
Sina Karvandi
80f224fa58
Merge pull request #671 from nikzad66/uin-uout-commands
Some checks failed
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
Uin uout commands
2026-08-10 12:00:21 +02:00
sina
ffa170a964 add return for uin, uout, ucpuid exported functions 2026-08-09 21:13:11 +02:00
sina
3f0e70c575 move ucpuid, uin, and uout files 2026-08-09 20:52:41 +02:00
Sina Karvandi
0fff858160
Merge pull request #672 from xmaple555/dev
Some checks are pending
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
update char and wchar_t in script engine
2026-08-09 18:08:31 +02:00
xmaple555
c4e82c2bfd update char and wchar_t in script engine 2026-08-09 23:24:21 +08:00
sina
c8a209d84b add different DW DA definition
Some checks are pending
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-08-08 16:38:16 +02:00