Giter Site home page Giter Site logo

lit3r4lly / discordoverlayhookingresearch Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 30 KB

A research about Discord overlay hooking library with implementation of written abuse module which made an "hook to hook" situation.

C++ 98.93% C 1.07%
discord hook windows pattern-scanning dll-injection

discordoverlayhookingresearch's Introduction

DiscordOverlayHookingResearch

This research is about Discord overlay hooking library within written abuse module which made an "hook to hook" situation because Discord's hook module uses the Minhook library, including Pattern scanning technique we can find the functions addresses (minhook calls).
After we get these addresses we can call these functions and hook the original functions. Bottom line, we getting code execution by the discord hook module which make us available to make cheats undetectable (couple of AC's already patched the Discord's overlay feature and have blocked this..).

Remarks

  • Build only for x64 bit (debug or release mode)
  • Inject only into processes that are x64 bit

Usage

1) Build the dll
2) Inject the dll to the target
Enjoy!

What is Pattern Scanning

Pattern Scanning is a technique which made for extracting addresses from modules contents.
We are implementing this technique by looking for the surrounding instructions code (bytes) and by that getting the functions addresses.

For pattern scanning we need two main elements:
Pattern - a pattern is a number of instructions that are represented by a byte sequence and includes a specific r/m64 instruction that contains the offset as mentioned above.
Mask - a mask defines which bytes of your pattern are wildcards and which are not, by using the characters '?' and 'x'.
The character 'x' means 'byte must match with the one from the module content' and the character '?' means 'the index of where we can find the offset in the module content respectively with the pattern'

For example:
Pattern - \xA1\x00\x00\x00\x00\x33\xD2\x6A\x00\x6A\x00\x33\xC9\x89\xB0
Mask - x????xxxxxxxxxx

Build

DiscordOverlyHooking can be built with Visual Studio 2019, by opening the .sln file and build the project (Ctrl+Shift+B) in a Release Mode or Debug Mode, whatever you want to (x64)

Issues

If you have any issues with this tool, you can ping me on Discord: Lit3r4lly#8336
If you have some critical bug, open an PR/Issue ticket

discordoverlayhookingresearch's People

Contributors

lit3r4lly avatar

Stargazers

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