Giter Site home page Giter Site logo

Comments (2)

changeofpace avatar changeofpace commented on June 26, 2024

This is currently not possible because the FPBREAKPOINT_CALLBACK prototype does not allow breakpoint callbacks to modify the guest instruction pointer. This is an oversight, and I'm working on a fix now.

from viviennevmm.

changeofpace avatar changeofpace commented on June 26, 2024

2700fb1 allows breakpoint callbacks to modify the guest instruction pointer. If a callback modifies the guest ip parameter then the guest will be redirected to that modified address on VM entry.

You can achieve code hooking by implementing a new breakpoint callback and its driver interface. e.g., Define a breakpoint callback which uses the context parameter to store the hook destination address. The body of the callback writes the context parameter to the guest instruction pointer parameter so that execution is redirected to your hook on VM entry.

I like this idea so I will implement it in the future. I plan to include documentation which explains the process of adding new callbacks using this idea as a working example.

from viviennevmm.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.