Git Product home page Git Product logo

extended_apis_example_hook's Introduction

Extended APIs Hook Example

Description

Using EPT to hook a function call is a common use case for reverse engineering, introspection, and offensive / defensive research. This repository provides a simple example of how this can be done using the Bareflank Hypervisor, and the Extended APIs repo using EPT / VPID. For further information about the Bareflank Hypervisor and how to create extensions, please see the following documentation.

API Documentation

Compilation / Usage

This example uses both the Bareflank Hypervisor, as well as the Extended APIs repo. To keep things simple, we will use an in-tree build for this example. Note that the Extended APIs build on their own, but to get our example to build in-tree, we need to prepend "src_" to the folder name so that Bareflank knows to compile it as well.

cd ~/
git clone https://github.com/Bareflank/hypervisor.git
cd ~/hypervisor
git clone https://github.com/Bareflank/extended_apis.git
git clone https://github.com/Bareflank/extended_apis_example_hook.git src_extended_apis_example_hook

./tools/scripts/setup-<xxx>.sh --no-configure
sudo reboot

~/hypervisor/configure -m src_extended_apis_example_hook/bin/hook.modules
make

To run this example, we need to first load the hypervisor, and then run the example app that will get hooked by the hypervisor. Note that this app has to perform a vmcall, so it will need root privileges.

make driver_load
make quick

sudo ./makefiles/src_extended_apis_example_hook/app/bin/native/hook

make stop
make driver_load

extended_apis_example_hook's People

Contributors

rianquinn avatar ricoantoniofelix avatar

Watchers

James Cloos avatar  avatar  avatar

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.