Skip to content

A repo containing examples relating to various aspects of Windows internals and processor features

Notifications You must be signed in to change notification settings

DownWithUp/SystemsWork

Repository files navigation

SystemsWork

A repo containing examples relating to various aspects of Windows internals and processor features.

Repo Structure


Windows Drivers

  • WDM

Windows Applications

  • Native Subsystem Applications
    • Keyboard read and display write Here

Hypervisors

  • WHP (Windows Hypervisor Platform)
    • Event Injection Here
  • KVMAPI

Intel Processor Trace

  • Single Range Output and IP Filtering

Example Details


WHP Event Injection

Using the Windows Hypervisor Platform, this exmaple shows how you can inject a CPU event into the guest software via the WHvRegisterPendingEvent register. This register essentially correlates to the VM-entry interruption-information field. The guest software is a pseudo OS, only designed to handle one interrupt. event_os.asm is built with FASM.


FASMDriver

A simple example of a WDM hello world driver using FASM and many of its useful macros.


Native Read-Write

A simple example of a native subsystem app which uses NtDisplayString and NtReadFile to write output to the console, and collect input from the keyboard device during the system boot process. Native applications can be launched during the boot process by smss.exe. This can be seen with autochk.exe in the BootExecute key at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager. To test this example, simply add the built executable to this list. Note that this example suspends the smss process in order to wait for the user to process the 'C' key to continue the startup process.


About

A repo containing examples relating to various aspects of Windows internals and processor features

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published