Forum > Coding >

How to find Lua C function addresses in roblox?

Posts: 5

Threads: 3

Joined: Jan, 2021

Reputation: 0

Posted

Hello, I'm back with another question.


I spent the past few days reading all about Lua script executors, Lua C documentation, and how it all works. I need to find functions, especially Lua_Load and Lua_Pcall in roblox, but I can't seem to get a reference. 

 

I have found pushglobaltable, and setfield, but those are useless to me at the moment.

 

What I have tried:

- cross reference strings from Lua source code, v5.2

- compile lua and build sigs for vanilla lua engine and use them to search for roblox lua C code.

 

Those two methods are completely ineffective because they have removed/encrypted all the strings in lua source, and they have made heavy modifications & obfuscated important functions.


If anyone has any idea on what to look for next to find Lua_pcall & Lua_load I would greatly appreciate it.

 

Thanks in advance

 

 

EDIT:

Good news, I have found LuaL_setfuncs after hours of matching sigs. I'll work my way through from here.

 

 

Edit 2:

Everything else seems to be heavily modified/obfuscated, I can't build reliable sigs. If anyone has experience reversing their Lua engine please give me some direction in finding pcall & the deserializer (lua_load)

 

  • 0

Added

@_realnickk

 

Thank you very much, can you tell me how you got to those string xrefs? How long did it take?

  • 0

Added

@_realnickk

 

No, that's not what I meant, I meant how you got to those string xrefs in the first place. If you reversed roblox starting from scratch and IF didn't know any of those strings, how did you figure it out? 

 

Anyways, I am on fire today, I found 5+ lua funcs this morning. Lmk if anyone needs them. I might do some more reversing.

What I have found so far

+ luaL_findtablex

 

Thanks for the strings anyways, it saves me a ton of time.

 

  • 0

Discord 0x112#7394

Posts: 138

Threads: 9

Joined: Nov, 2020

Reputation: -22

Replied

Idk wut coding is so don't ask me

 

:)

  • 0

My website: https://rebrand.ly/Baconnetic-new-website

My discord: top.gg/servers/758772274236096573

if you are reading this, i want to say that i left wrd because of goooogle.

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )