Git Product home page Git Product logo

cheatlib's Introduction

cheatlib

DLL injection & Code injection & Function Hook & IAT Hook
头文件: cheatlib.h
库主体: cheatlib.dll
依赖库: keystone.dll capstone.dll
注意: 如果你编译目标是x64的话需要定义CHEATLIB_TARGET_X64宏, x32不用

完整的功能测试代码见: test
完整的函数说明见: doc

优势

  • 完全支持x32和x64
  • 简单的API设计,学习成本极低
  • 线程安全设计
  • 基于最强大的汇编/反汇编库
  • 没有其它任何依赖

跳转种类

CodeInjection函数不会将跳转覆盖的指令复制到执行区执行
因此有必要知道在x32和x64下跳转需要占用多大的空间
x32下的跳转:

jmp hook function

共计5字节

x64下的跳转:

push target low address
mov dword ptr ss:[rsp], target high address
ret

共计14字节

编译

环境

OS: windows   
编译器: mingw 8.1.0   

步骤

1. 先编译keystone和capstone
2. 将编译出来的dll复制到cheatlib下
3. 编译x32运行make, 编译x64运行make x64

cheatlib's People

Contributors

itruth 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.