GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - h33p/vmread: A library to read/write memory to Windows on KVM

This repository was archived by the owner on Sep 29, 2020. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

64 Commits
64 Commits

Folders and files

NameName
Last commit message
Last commit date
hlapi
hlapi
 
 
.gitignore
.gitignore
 
 
Doxyfile
Doxyfile
 
 
LICENSE.md
LICENSE.md
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
definitions.h
definitions.h
 
 
dograph.sh
dograph.sh
 
 
example.c
example.c
 
 
example.cpp
example.cpp
 
 
inject
inject
 
 
intmem.c
intmem.c
 
 
kmem.c
kmem.c
 
 
kmem.h
kmem.h
 
 
mem.c
mem.c
 
 
mem.h
mem.h
 
 
meson.build
meson.build
 
 
perf_plot.p
perf_plot.p
 
 
pmparser.c
pmparser.c
 
 
pmparser.h
pmparser.h
 
 
processdata.h
processdata.h
 
 
rwperf.png
rwperf.png
 
 
vmmem.c
vmmem.c
 
 
winstructs.h
winstructs.h
 
 
wintools.c
wintools.c
 
 
wintools.h
wintools.h
 
 

Repository files navigation

A library to read/write memory to Windows running inside of KVM

End-of-life

This library is not supported anymore. Please use memflow for more up-to-date and versatile VM introspection tools.

wintools.h and mem.h provide most of the functions callable to interract with the Windows VM, while hlapi abstracts everything in a bit simpler to use manner (requires C++).

Rust bindings are available in a separate repository.

Compiling

Minimum language standard: C99 The current example project is in C++, requiring at least C++11 with template support, but the C version also exists, which works fine on a C99 compiler.

Use meson and ninja to compile the example programs

Use make to compile the kernel module

Performance

Internal (QEMU inject) mode is roughly 5 times faster than external mode. However, it is possible to use the kernel module to map the memory space of QEMU into the external process, mitigating the performance penalty. Also, when performing larger reads, the memcpy quickly reaches its peak speed and external mode begins to catch up. Performance numbers are shown below.

alt text

Frequent issues

Make sure to use the Q35 chipset on the KVM guest, unless it is running Windows XP. Otherwise, the library may not work correctly. Kmod mapping is not guaranteed to work properly or for extended periods of time if the VM is not set up to use hugepages.

Licensing note

While most of the codebase is under the MIT license, the kernel module (kmem.c file) is licensed under GNU GPLv2.

About

A library to read/write memory to Windows on KVM

Resources

Readme
MIT license
Activity

Stars

277 stars

Watchers

1 watching

Forks

83 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.