Code Monkey home page Code Monkey logo

detouring's People

Contributors

danielga avatar zekirax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

detouring's Issues

Question about detouring virtual function

Hello, I'm trying to detour virtual function GarrysMod::Lua::ILuaInterface::Cycle on windows by using Detouring::ClassProxy. On win32 build (main branch) everything successfully detours, but on x64 build (x86-64 branch) function not called (but Hook(...) returns true).

As I found in Detouring::GetVirtualAddress variable addr is 0xFF on win32 build, and 0xE9 on x64 build. Because of this check for jmp function fails, iterating over vtable also fails, then ClassProxy::Hook tries to hook function by using Detouring::Hook, and returns true, but function isn't called.

As I found myself, 0xFF is opcode for jump to absolute address, and 0xE9 is opcode for jump to relative address. Is there are solution fix detouring on x64 build? Thank you in advance.

Question regarding usage and functions that are exported in a dll such as lua_shared or tier0

So I'm just wanting clarification but would this repository be useful for modifying how a function behaves. for example modifying the Exported MsgC function of teir0 to instead return reveresed text, and have it where if any place in the engine called the MsgC() function it would always be reverse text, just for a simple example.

Would this tool be usefull for achieving that sort of stuff? or is it more for detouring lua functions inside c++? Or would it only work inside the module using this itself?

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.