Git Product home page Git Product logo

wow64-heavensgate's Introduction

HeavensGate

A header containing utilities for executing, reading and writing 64-bit data in a 32-bit WoW64 process and more

Features worth noting

  • 64-Bit GetModuleHandleA
  • 64-Bit GetModuleSize
  • 64-Bit VirtualProtect
  • 64-Bit memcpy, memset, zeromemory
  • Direct system calls
  • Direct function calls
  • Byte pattern scanning in 64-bit regions
  • Setting direct Wow64 instrumentation callbacks for the 32-bit process
  • Hijacking ntdll32!KiUserExceptionDispatcher without touching anything in ntdll

Examples

Hijacking the 32-bit exception dispatcher

ZwContinue_t ZwContinue = NULL;

LONG
WINAPI
ExceptionHandler(
    IN LPEXCEPTION_RECORD ExceptionRecord,
    IN LPCONTEXT          ContextRecord
    )
{
    //
    // VEH code here...
    //
}

LONG
main(
    VOID
    )
{
    //
    // Activates the Wow64 instrumentation callback
    //
    if ( HgStartup32BitInstrumentation( ) == TRUE )
        //
        // Populates a ZwContinue to be used in the hijacked handler,
        // and redirects the exception instrumentation callback
        //
        HgSet32BitExceptionDispatcher( ExceptionHandler, &ZwContinue );
}

Credits

Partial credit goes to Cr4sh for providing a foundation of research

wow64-heavensgate's People

Contributors

peribunt avatar fengjixuchui 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.