Git Product home page Git Product logo

aheadlib64's Introduction

AheadLib64

x64 dll hijacking tool(like AheadLib) 仿照Aheadlib做的64位的版本。

  • 由于默认vs编译器不支持x64的内联汇编。所以使用了obj文件。obj文件源码是obj.asm文件。

转发的原理:

1. 原始是call [0x405000];

2. 进入劫持函数

void MyFunc()
{
	AsmFunc1();
	AsmFunc2((INT64)RealFuncAddr);
}

3. 这里只是保存一下第一个参数到rax

AsmFunc1:
		mov rax,rcx
		retn  

4. 让rax指向真正的 eip(rcx是第一个参数) 还原第一个参数,跳到原始函数执行

AsmFunc2:
        xchg rax,rcx
		jmp rax  

5. 返回的时候是先返回到 AsmFunc2 下面 再返回到 原始调用处的下面。

自己找个DLL,劫持下走一遍就清晰了。

aheadlib64's People

Contributors

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