Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Engine
- {
- //newest engine send hook from ara beyond address
- //static int(__cdecl *_memcpy)(int, void*, int) = (int(__cdecl*)(int, void*, int))0x007E9880;
- static int(__cdecl *_memcpy)(int, void*, int) = (int(__cdecl*)(int, void*, int))0x007B20E0;
- }
- Intercept(INST_CALL, (DWORD)0x0062B6B2, (DWORD)&_memcpy, 5);
- int __cdecl _memcpy(int pObject, char *packet, int nSize)
- {
- int value = 0;
- int value2 = 0;
- char *Text;
- int value3 = 0;
- string test;
- string test2;
- string test3;
- BYTE type = (BYTE)packet[2];
- std::ofstream LogFile("LogNIGGER.txt", std::ios::app);
- if (LogFile.is_open())
- {
- char Temp[512];
- sprintf_s(Temp, "[%d] Size: %d Count[%d] \n",
- type, nSize - 3, ++g_nSendCnt);
- LogFile << Temp;
- for (int i = 3; i < nSize; ++i)
- {
- BYTE bHex = (BYTE)packet[i];
- char Out[20];
- sprintf_s(Out, "%02X ", bHex);
- LogFile << Out;
- }
- LogFile << "\n";
- //printf("Header[0x%x]\n", type);
- //Header[0x3]Header[0x7]Header[0x1]
- if (type == 135)
- {
- ReadPacket(packet + 3, "sss", &value, &value2, &value3);
- printf("Test[%s] Test2[%s] Test3[%s]\n",(DWORD)value, (DWORD)value2, (DWORD)value3);
- }
- if (type == 118)
- {
- //ReadPacket(packet + 3, "sss", &value, &value2, &value3);
- //printf("Test[%s] Test2[%s] Test3[%s]\n", (DWORD)value, (DWORD)value2, (DWORD)value3);
- }
- if (type == 217)
- {
- printf("type 217\n");
- //ReadPacket(packet + 3, "dsd", &value, &Text, &value3);
- //printf("Value[%d] Value2[%s] Value3[%d]\n", value, Text, value3);
- //printf("Case 217\n");
- }
- if (type == 216)
- {
- printf("Case 216\n");
- //ReadPacket(packet + 3, "dsd", &value, &Text, &value3);
- //printf("Value[%d] Value2[%s] Value3[%d]\n", value, Text, value3);
- }
- if (type == 254)
- {
- int v1, v2;
- char *szText;
- ReadPacket(packet + 3, "dds", &v1, &v2, &szText);
- LogFile << "(" << szText << ")\n";
- }
- LogFile.close();
- }
- return Engine::_memcpy(pObject, packet, nSize);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement