Jump to content

VastoLordes

Newbie
  • Content Count

    1
  • Joined

  • Last visited

  • Feedback

    0%

Community Reputation

0

About VastoLordes

  • Rank
    Только пришел
  1. int __fastcall new_AddNetworkQueue(unsigned int This, unsigned int EDX, TNetworkPacket *NetworkPacket) { if ((*(unsigned int*) (KiUserExceptDispADR + 10) + KiUserExceptDispADR < hNtDllStart) || (*(unsigned int*) (KiUserExceptDispADR + 10) + KiUserExceptDispADR > hNtDllEnd)) ErrorExit("Bot Program Detected #0!"); unsigned int retAddr = *((unsigned int*) &NetworkPacket - 1); if ((retAddr < hEngineStart) || (retAddr > hEngineEnd)) ErrorExit("Bot Program Detected #1!"); if (NetworkPacket->subid == 0xFFFF) { switch (NetworkPacket->id) { case 0x2E: decodeKey(NetworkPacket->data + 1); break; case 0xB0: memset(&SpecialStrings[NetworkPacket->data[0]].FontDrawInfo, 0, sizeof(TFontDrawInfo)); SpecialStrings[NetworkPacket->data[0]].isDraw = (NetworkPacket->data[1] == 1) ? true : false; SpecialStrings[NetworkPacket->data[0]].FontDrawInfo.font = (char) NetworkPacket->data[2]; SpecialStrings[NetworkPacket->data[0]].x = *(int*) (NetworkPacket->data + 3); SpecialStrings[NetworkPacket->data[0]].y = *(int*) (NetworkPacket->data + 7); SpecialStrings[NetworkPacket->data[0]].FontDrawInfo.color = *(unsigned int*) (NetworkPacket->data + 11); wcscpy_s(SpecialStrings[NetworkPacket->data[0]].text, (wchar_t*) (NetworkPacket->data + 15)); if (NetworkPacket->data[0] == 14) { HANDLE hIcmpFile = IcmpCreateFile(); ICMP_ECHO_REPLY Reply; if (hIcmpFile != 0) { if (IcmpSendEcho(hIcmpFile, inet_addr("127.0.0.1"), 0, 0, 0, &Reply, sizeof(ICMP_ECHO_REPLY), 500) != 0) lastPing = Reply.RoundTripTime; IcmpCloseHandle(hIcmpFile); } wsprintf(SpecialStrings[NetworkPacket->data[0]].text, L"%ls%d", (wchar_t*) (NetworkPacket->data + 15), lastPing); } break; } } return true_AddNetworkQueue(This, EDX, NetworkPacket); } That is correct code! but the same work only in win 7 and 8.1
×
×
  • Create New...