Advertisement
gopro2027

[GTAV] Log Received Social Club Events

Jul 3rd, 2019
593
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.24 KB | None | 0 0
  1. //This will log all the jsons for the admin events and invites and stuff, and you could modify them too in this hook if you wanted (to block them or something?)
  2.  
  3. uint64_t socialclub_logger(uint64_t arg1, uint64_t arg2) {
  4.     //arg2 is N4rage24rlPresenceEventScMessage
  5.  
  6.     //begin of check... a simpler way to do this would be just to check that each pointer in jsonString is valid, but I decided to do this instead cuz this is how it's done on the ps3 before it grabs the json string
  7.     int compare1 = call<int>(*(int*)*(int*)*(int*)arg2)();
  8.     int compare2 = *(int*)0x2002488;
  9.     if (compare1 != compare2)
  10.         return compare1;
  11.     //end of check
  12.    
  13.     char *jsonString = (char*) *(unsigned int*)(*(unsigned int*)(*(unsigned int*)(arg2+0x4)+0xC0)+0x8);//this needs to be changed on pc
  14.     printf("Received from social club: %s\n",jsonString);
  15.     return call<uint64_t>(0x13AAB94)(arg1,arg2);
  16. }
  17.  
  18. void socialclub_logger_setup() {
  19.     *(uint64_t*)0x1C72288 = *(uint64_t*)((uint64_t)socialclub_logger);
  20. }
  21.  
  22.  
  23. //PC signature for the function:
  24. //48 89 5C 24 ? 48 89 7C 24 ? 55 48 8D 6C 24 ? 48 81 EC ? ? ? ? 48 8B 02 8B 1D ? ? ? ? 48 8B CA 48 8B FA FF 10 3B C3 0F 85 ? ? ? ? 48 8B 47 08 48 83 CB FF 48 8B 88 ? ? ? ? 4C 8B C3 48 8B 51 08 49 FF C0 42 80 3C 02 ? 75 F6 48 8D 4C 24 ? E8 ? ? ? ? 48 8D 4C 24 ? E8 ? ? ? ? 84 C0 0F 84 ? ? ? ? 48 8D 4C 24 ? E8 ? ? ? ? 48 8D 4C 24 ? E8 ? ? ? ? 83 65 70 00 48 8D 44 24 ? B9 ? ? ? ? C6 00 00 48 8D 40 20 48 FF C9 75 F4 48 8B 87 ? ? ? ? 48 8B 50 08 48 FF C3 80 3C 1A 00 75 F7 48 8D 4C 24 ? 4C 8B C3 E8 ? ? ? ? 48 8D 4C 24 ? E8 ? ? ? ? 48 8D 4C 24 ? E8 ? ? ? ? 84 C0 75 0F 48 8D 54 24 ? 48 8D 4C 24 ? E8 ? ? ? ? 48 8D 54 24 ? 48 8D 4C 24 ? E8 ? ? ? ? 84 C0 0F 84 ? ? ? ? E8 ? ? ? ? 48 8D 4C 24 ? 8B D8 E8 ? ? ? ? 85 DB 0F 85 ? ? ? ? 48 8D 54 24 ? 8B CB E8 ? ? ? ? 84 C0 0F 84 ? ? ? ? 48 8D 54 24 ? 48 8D 4C 24 ? E8 ? ? ? ? 84 C0 74 23 48 8D 15 ? ? ? ? 48 8D 4C 24 ? E8 ? ? ? ? 84 C0 74 0E E8 ? ? ? ? 48 8D 0D ? ? ? ? EB 34 48 8D 54 24 ? 48 8D 4C 24 ? E8 ? ? ? ? 84 C0 74 5B 48 8D 15 ? ? ? ? 48 8D 4C 24 ? E8 ? ? ? ? 84 C0 74 46 E8 ? ? ? ? 48 8D 0D ? ? ? ? 48 83 64 24 ? ? 83 64 24 ? ? 80 64 24 ? ? 48 89 4C 24 ? 4C 8B 00 48 8D 54 24 ? 48 8B C8 41 FF 50 08 48 8D 05 ? ? ? ? 48 8D 4C 24 ? 48 89 44 24 ? E8 ? ? ? ? 4C 8D 9C 24 ? ? ? ? 49 8B 5B 10 49 8B 7B 18 49 8B E3 5D C3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement