Giter VIP home page Giter VIP logo

jmpunhook's Introduction

JmpUnhook

Ntdll Unhooking POC

又是受到别的项目启发

https://github.com/trickster0/LdrLoadDll-Unhooking

这个项目采用了构造函数并跳转的方式进行脱钩

但是针对不同的函数又需要一系列定制的手段

本项目提供了一种思路,以通用方式构造中转函数

仅讨论实现思路,具体效果不在此讨论范围

具体实现思路:

假设需要调用ntdll里A函数:

1.读取ntdll.dll文件里的函数A
2.读取内存ntdll里的函数A
3.判断这两个的函数前两个字节是否相等
4.若相等则判定为未被hook直接返回内存中的地址 
5.若不相等遍历对比前几个字节直到第n个字节相等
6.构造中转函数,将前n个字节填充成ntdll文件内的内容,后面为jmp跳转指令跳转回内存中对应位置

jmpunhook's People

Contributors

timwhitez avatar

Stargazers

5l1v3r1 avatar  avatar H4de5 avatar Kr0ff avatar  avatar  avatar Curtis Ringwald avatar  avatar Filippos Mastrogiannis avatar  avatar  avatar R4ph4e1 avatar Ctxer avatar BasicP avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

phuong39 5l1v3r1

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.