Advertisement
gogo92111

Auto Updating Identity

Jun 11th, 2020
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. void UpdateIdentity(DWORD L ,DWORD sandboxthread) {
  2. BYTE* Pointer = (BYTE*)sandboxthread;
  3. int FuncSize = 240;
  4. DWORD F;
  5. DWORD S;
  6. int firsted = 0;
  7. for (int i = 0; i < FuncSize; i++)
  8. {
  9. if (Pointer[i - 2] == 0x5 && Pointer[i - 1] == 0x8B)
  10. {
  11. if (firsted == 0)
  12. {
  13. F = Pointer[i + 1]; //Because its the first result but the if return true multiple times...
  14. firsted = 1;
  15. }
  16.  
  17. }
  18. if (Pointer[i] == 0xF && Pointer[i + 1] == 0x11)
  19. {
  20. S = Pointer[i + 3];
  21. }
  22. }
  23.  
  24. DWORD a1 = L;
  25. int v3 = *(DWORD*)(a1 + F);
  26. *(DWORD*)(v3 + S) = 6;
  27. printf("Identity is now 6 \n");
  28. }
  29.  
  30. //Usage
  31. Examle: UpdateIdentity(m_rL, rebase(0x7239E0));
  32. //SandBoxThread Offset Should Be Rebased and First Argument Is Roblox lua state
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement