[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Strange way to determine whether it is Lua or C function
- From: Egor Skriptunoff <egor.skriptunoff@...>
- Date: Sun, 23 Aug 2020 22:08:37 +0300
On Sun, Aug 23, 2020 at 6:27 PM Viacheslav Usov wrote:
In a Lua function, there is always enough stack for two
the invocation of a Lua hook function leaves an
artifact on the hooked function's stack frame
Thanks for the explanation.
Given that this technique already requires the debug library, I'd say
there is a far more regular and simpler way to achieve the goal.
The approach discussed here was found inside an obfuscated code.
Simplicity was not the goal, just the opposite.