LuaHook | Example of how to hook Lua for Game Hacking | Game Engine library

 by   niemand-sec C++ Version: Current License: No License

kandi X-RAY | LuaHook Summary

kandi X-RAY | LuaHook Summary

LuaHook is a C++ library typically used in Gaming, Game Engine applications. LuaHook has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

Example of how to hook Lua for Game Hacking. This code works perfectly to hook Lua inside Vermintide 2 but can be easily addapted to any game. More info: Personal Blog.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              LuaHook has a low active ecosystem.
              It has 31 star(s) with 19 fork(s). There are 5 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 0 open issues and 2 have been closed. On average issues are closed in 2 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of LuaHook is current.

            kandi-Quality Quality

              LuaHook has no bugs reported.

            kandi-Security Security

              LuaHook has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              LuaHook does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              LuaHook releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of LuaHook
            Get all kandi verified functions for this library.

            LuaHook Key Features

            No Key Features are available at this moment for LuaHook.

            LuaHook Examples and Code Snippets

            No Code Snippets are available at this moment for LuaHook.

            Community Discussions

            QUESTION

            Segmentation fault when use lua coroutine api and lua_close
            Asked 2018-Sep-29 at 10:27

            I am working on a lua script interrupt project, I want to use std::Stack and lua coroutine to save the context. But when I set stacksize to more than 38, it randomly crashes in lua_resume and lua_close. test.lua:

            ...

            ANSWER

            Answered 2018-Sep-29 at 10:27

            You are overflowing the Lua stack by continuously generating new Lua threads and leaving its Lua objects on stack.

            lua_newstack() not only returns a pointer to lua_State structure, it also leaves a value of type LUA_TTHREAD on a stack in your L state. You should either accommodate the Lua stack accordingly, or manage returned Lua threads in some other way.

            Quick and dirty "fix" would be to call lua_checkstack(L, 10); right before your Lstack.push(lua_newthread(L)); line. It allows your code to run as is, but the stack would continuously grow. Instead you should grab the new thread object off the stack and put it in some Lua table until the time comes for it to be deleted.

            Source https://stackoverflow.com/questions/52566189

            QUESTION

            C2512 Error - Even when not initializing class
            Asked 2018-Mar-20 at 13:30

            I'm a little lost here. I have a member of type "CLuaHook" in my class "CLuaTick" which I plan to use in the CLuaTick::Initialize() function. Because of the Linker I have to declare my member in the cpp file, although im not entirely sure why. Setting the member declaration in the cpp to a nullptr causes a runtime crash (Access violation) even though its not used anywhere yet.

            The only constructor for CLuaHook is CLuaHook(const char * Hook);.

            EDIT: CLuaHook() Has to be called with valid arguments as it will be registered in an Internal list and would have to be removed afterwards.

            Heres the code:
            luatick.h

            ...

            ANSWER

            Answered 2017-Nov-20 at 02:03

            The error is very much as the compiler describes. There is no default constructor for the class CLuaHook. In other words, the compiler doesn't know how to construct CLuaHook with no arguments and therefore it can't construct CLuaTick either.

            You need to either provide a default constructor:

            Source https://stackoverflow.com/questions/47383895

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install LuaHook

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/niemand-sec/LuaHook.git

          • CLI

            gh repo clone niemand-sec/LuaHook

          • sshUrl

            git@github.com:niemand-sec/LuaHook.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Game Engine Libraries

            godot

            by godotengine

            phaser

            by photonstorm

            libgdx

            by libgdx

            aseprite

            by aseprite

            Babylon.js

            by BabylonJS

            Try Top Libraries by niemand-sec

            DirectX11Hook

            by niemand-secC++

            ReClass.NET-DriverReader

            by niemand-secC++

            RazorSyntaxWebshell

            by niemand-secC#

            JavaUnserializeWeblogic

            by niemand-secPython