Categories > Coding > C++ >

[REL] instance cache for dex (not made by me)

Posts: 84

Threads: 11

Joined: Apr, 2021

Reputation: -5

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)

  • 0

I like making UIs. (WPF)

I suck at C++.

I am hunting neg rep so slap me with it

pepsi

PePsIDeveloper

vip

Posts: 309

Threads: 6

Joined: Apr, 2021

Reputation: 16

Replied

do u even know if this is for a wrappe or other convs

  • 0

https://cdn.discordapp.com/attachments/661621789591470090/1013919752294498314/Untitled_1366_768_px_1546_202_px_2.gif

Posts: 84

Threads: 11

Joined: Apr, 2021

Reputation: -5

Replied

I know nothing about C++.

Just shared this thing I found...

  • 0

I like making UIs. (WPF)

I suck at C++.

I am hunting neg rep so slap me with it

Posts: 848

Threads: 72

Joined: May, 2020

Reputation: 9

Replied

@pepsiTHINK this is for bytecode style exploits 

  • 0

Don't buy exploits its not worth it your gonna quit anyway

Taking accountability will help you excel in life

Posts: 0

Threads: 0

Joined: ?

Reputation:

Replied

@ZaphireHacks ....this is for wrappers

  • 0

Posts: 848

Threads: 72

Joined: May, 2020

Reputation: 9

Replied

@63568 SHUT I said think

  • 0

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 )