GithubHelp home page GithubHelp logo

ror13h / captainhook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shmuelyr/captainhook

0.0 1.0 0.0 19.7 MB

CaptainHook is x86/x64 hook environment

C++ 33.19% C 15.49% CMake 0.06% Makefile 0.17% POV-Ray SDL 42.48% Python 1.22% Java 1.88% Shell 0.04% OCaml 1.09% Objective-C 0.27% Ruby 0.01% Tcl 0.01% Smalltalk 1.45% C# 2.65%

captainhook's Introduction

CaptainHook

CaptainHook is hooking framwork for x86/x64 arch, it's based on capstone disassembler engine. CaptainHook equipped with smart engine (TO FINISH). CaptainHook is easy to using, and very freandly. the hook engine is much like MS Detours, so why to choose it?

  • its support x64 (Detours x64 is commerical - $10,000~)
  • CaptainHook will know where to locate your hook in real time, its analyze the code, and find if small API redirection (Wow64 hook on kernelbase for example, or on protector like VMP or Themida) was occurred
  • in the next release, CaptainHook will contain an engine for jmp/conditional jmp repair - if your hook corrupt sensitive code
  • in the next release, CaptainHook will contain more hook type, like PageGuard hooking etc.

code example:

#inclide "CaptainHook.h"

void (__fastcall *CH_OriginalFunction)(...) = OriginalFunction;

int main() {
    
    CaptainHook *pChook = new CaptainHook(&(void *&)CH_OriginalFunction, HookedOriginalFunction);
    Sleep(100);
    pChook->~CaptainHook();
    return 0;
}

TODO :

  • Finish the smart engine to enable hot patch on jmp instruction - with all conditional jmp
  • Finish code analysis for function redirect (on x64 its very common)

Happy Hooking!

captainhook's People

Contributors

shmuelyr avatar

Watchers

 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.