Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 959 Bytes

README.md

File metadata and controls

17 lines (9 loc) · 959 Bytes

physmem_sys

An unrestricted Windows driver to map physical memory to userland. It exposes an IOCTL for requesting a physical address and length, which will return a virtual address to leverage in userland.

Build

Included is the Visual Studio 2019 project with a solution containing both the physmem_sys driver and a simple client utility showcasing the IOCTL usage.

Loading/Unloading

You can trivially load/unload the driver leveraging the OSR Driver Loader utility.

Usage

The IOCTL for physical memory mapping expects that the physical address provided is page aligned. The included client project will perform a hexdump() of a page_aligned physical address and length.

There is also an IOCTL for IO Port access, for the reading and writing of byte, word and dword using the defined command structures, the client has an example of reading the current keyboard scancode from IO Port 0x60.