Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. namespace Engine
  2. {
  3. //newest engine send hook from ara beyond address
  4. //static int(__cdecl *_memcpy)(int, void*, int) = (int(__cdecl*)(int, void*, int))0x007E9880;
  5. static int(__cdecl *_memcpy)(int, void*, int) = (int(__cdecl*)(int, void*, int))0x007B20E0;
  6. }
  7.  
  8.  
  9. Intercept(INST_CALL, (DWORD)0x0062B6B2, (DWORD)&_memcpy, 5);
  10.  
  11.  
  12. int __cdecl _memcpy(int pObject, char *packet, int nSize)
  13. {
  14. int value = 0;
  15. int value2 = 0;
  16. char *Text;
  17. int value3 = 0;
  18. string test;
  19. string test2;
  20. string test3;
  21. BYTE type = (BYTE)packet[2];
  22. std::ofstream LogFile("LogNIGGER.txt", std::ios::app);
  23. if (LogFile.is_open())
  24. {
  25. char Temp[512];
  26. sprintf_s(Temp, "[%d] Size: %d Count[%d] \n",
  27. type, nSize - 3, ++g_nSendCnt);
  28. LogFile << Temp;
  29.  
  30. for (int i = 3; i < nSize; ++i)
  31. {
  32. BYTE bHex = (BYTE)packet[i];
  33. char Out[20];
  34. sprintf_s(Out, "%02X ", bHex);
  35. LogFile << Out;
  36. }
  37. LogFile << "\n";
  38. //printf("Header[0x%x]\n", type);
  39. //Header[0x3]Header[0x7]Header[0x1]
  40. if (type == 135)
  41. {
  42.  
  43. ReadPacket(packet + 3, "sss", &value, &value2, &value3);
  44. printf("Test[%s] Test2[%s] Test3[%s]\n",(DWORD)value, (DWORD)value2, (DWORD)value3);
  45. }
  46. if (type == 118)
  47. {
  48. //ReadPacket(packet + 3, "sss", &value, &value2, &value3);
  49. //printf("Test[%s] Test2[%s] Test3[%s]\n", (DWORD)value, (DWORD)value2, (DWORD)value3);
  50. }
  51. if (type == 217)
  52. {
  53. printf("type 217\n");
  54. //ReadPacket(packet + 3, "dsd", &value, &Text, &value3);
  55. //printf("Value[%d] Value2[%s] Value3[%d]\n", value, Text, value3);
  56. //printf("Case 217\n");
  57. }
  58. if (type == 216)
  59. {
  60. printf("Case 216\n");
  61. //ReadPacket(packet + 3, "dsd", &value, &Text, &value3);
  62. //printf("Value[%d] Value2[%s] Value3[%d]\n", value, Text, value3);
  63. }
  64. if (type == 254)
  65. {
  66. int v1, v2;
  67. char *szText;
  68. ReadPacket(packet + 3, "dds", &v1, &v2, &szText);
  69. LogFile << "(" << szText << ")\n";
  70. }
  71. LogFile.close();
  72. }
  73. return Engine::_memcpy(pObject, packet, nSize);
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement