Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void UpdateIdentity(DWORD L ,DWORD sandboxthread) {
- BYTE* Pointer = (BYTE*)sandboxthread;
- int FuncSize = 240;
- DWORD F;
- DWORD S;
- int firsted = 0;
- for (int i = 0; i < FuncSize; i++)
- {
- if (Pointer[i - 2] == 0x5 && Pointer[i - 1] == 0x8B)
- {
- if (firsted == 0)
- {
- F = Pointer[i + 1]; //Because its the first result but the if return true multiple times...
- firsted = 1;
- }
- }
- if (Pointer[i] == 0xF && Pointer[i + 1] == 0x11)
- {
- S = Pointer[i + 3];
- }
- }
- DWORD a1 = L;
- int v3 = *(DWORD*)(a1 + F);
- *(DWORD*)(v3 + S) = 6;
- printf("Identity is now 6 \n");
- }
- //Usage
- Examle: UpdateIdentity(m_rL, rebase(0x7239E0));
- //SandBoxThread Offset Should Be Rebased and First Argument Is Roblox lua state
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement