Categories > Coding > C++ >
[REL] instance cache for dex (not made by me)
Posted
This allows your exploit to run dex (viewing instances, not scripts). Not a decompiler though :smile:
void cacheObject(uintptr_t rL, lua_State* L, int index)
{
const auto robloxPtr = (void*)r_lua_touserdata(rL, index);/*grabs a userdata from it's index*/
const auto iterator = vanillaInstanceMap.find((void*)robloxPtr);/*find's the roblox's userdata from it's current mapped*/
if (iterator == vanillaInstanceMap.cend()) { /*uses cend to cache all the used stuff*/
r_lua_pushvalue(rL, index);
reinterpret_cast<Userdata*>(lua_newuserdata(L, sizeof(Userdata)))->reference = r_luaL_ref(rL, LUA_REGISTRYINDEX);/*calls roblox's ref by using newuserdata*/
r_lua_getmetatable(rL, index);/*grabs the metatable to it's index*/
Bridge::push(rL, L, -1);/*push to vanilla*/
lua_setmetatable(L, -2);/*set the metatable*/
lua_pushvalue(L, -1);/*push the value and set it to -1 (index)*/
lua_rawseti(L, LUA_REGISTRYINDEX, ++registryIndex);/*rawseti the registryindex aka LUA_REGISTRYINDEX (-10000) but it's set as a var*/
vanillaInstanceMap[robloxPtr] = (void*)registryIndex;/*used vanilla cache map*/
r_lua_pop(rL, 1);/*pop the stack lol*/
}
else
{
lua_rawgeti(L, LUA_REGISTRYINDEX, (int)iterator->second);
}
}
I didn't make any of this, all credits go to peroxdev.
(I want some neg rep please)
I like making UIs. (WPF)
I suck at C++.
I am hunting neg rep so slap me with it
Replied
do u even know if this is for a wrappe or other convs
Cancel
Post
https://cdn.discordapp.com/attachments/661621789591470090/1013919752294498314/Untitled_1366_768_px_1546_202_px_2.gif
Replied
I know nothing about C++.
Just shared this thing I found...
Cancel
Post
I like making UIs. (WPF)
I suck at C++.
I am hunting neg rep so slap me with it
Don't buy exploits its not worth it your gonna quit anyway
Taking accountability will help you excel in life
Replied
@63568 SHUT I said think
Cancel
Post
Don't buy exploits its not worth it your gonna quit anyway
Taking accountability will help you excel in life
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post