-
Active Member
Finding relevant things
Hey guys,
I'm not looking for answers on how to find Lua functions because I already know how to do that, but how to find other relevant things like when wow tries to initialize lua (I need to set a breakpoint on this function for reasons). I may not be very specific because English isn't my main language so I hope you guys get what I want from you
Greetings,
cryptexx
-
"when wow tries to initialize lua" - meaning what exactly? When the Lua state is created? When the globals are registered?
-
Member
-
Post Thanks / Like - 1 Thanks
cryptexx (1 members gave Thanks to Ser0ja for this useful post)
-
Active Member
Originally Posted by
Jadd
"when wow tries to initialize lua" - meaning what exactly? When the Lua state is created? When the globals are registered?
yeah sorry to be so unspecific, I want to break wow, as you said when the lua state is created, so when wow does "load" lua for the first time ever at the beginning
-
Active Member
Originally Posted by
Ser0ja
thank you for trying to help, I already knew about how this works, but I now want to get a better overview of how to find these functions inside a debugger
-
Originally Posted by
cryptexx
yeah sorry to be so unspecific, I want to break wow, as you said when the lua state is created, so when wow does "load" lua for the first time ever at the beginning
I'm not sure if the lua state has a VMT or not. But if it does, and you can find it within IDA, you can find the lua state constructor by looking at static global references to the VMT. Then you can hook the constructor (or if you don't want to do that, you can look at what calls it etc.).
-
Active Member
Originally Posted by
namreeb
I'm not sure if the lua state has a VMT or not. But if it does, and you can find it within IDA, you can find the lua state constructor by looking at static global references to the VMT. Then you can hook the constructor (or if you don't want to do that, you can look at what calls it etc.).
It looks like the lua state has a VMT, because I know someone who did that breakpoint on lua init thing and told me about it, its not someone I know directly so I cannot ask how he did this but thank you anyways
-
Elite User
Originally Posted by
namreeb
I'm not sure if the lua state has a VMT or not. But if it does, and you can find it within IDA, you can find the lua state constructor by looking at static global references to the VMT. Then you can hook the constructor (or if you don't want to do that, you can look at what calls it etc.).
Lua is C :shh:
-
Post Thanks / Like - 1 Thanks
namreeb (1 members gave Thanks to Master674 for this useful post)