Konu Bilgileri
Konu: C++ Auto Loot Algoritması + Recv Yazar: HeRoTurk
Okunma: 364 Yorum: 0
Konuyu Okuyanlar: 1 Ziyaretçi
Konuyu Oyla:
  • Derecelendirme: 0/5 - 0 oy
  • 1
  • 2
  • 3
  • 4
  • 5

#1
C++ Knight OnLine Auto Loot Algoritması + Recv


DLL İçin Yazılmıştır..


Kod:
// KO Fonksiyonları..

    static    void    MP_AddByte(BYTE *dest, int& iOffset, BYTE byte) { CopyMemory(dest+iOffset, &byte, 1); iOffset ++; }
    static    void    MP_AddShort(BYTE *dest, int& iOffset, short value) { CopyMemory(dest+iOffset, &value, 2); iOffset += 2; }
    static    void    MP_AddWord(BYTE *dest, int& offset, WORD value) { CopyMemory(dest+offset, &value, 2); offset += 2; }
    static    void    MP_AddDword(BYTE *dest, int &iOffset, DWORD dword) { CopyMemory(dest+iOffset, &dword, 4); iOffset += 4; }
    static    void    MP_AddFloat(BYTE *dest, int &iOffset, float value) { CopyMemory(dest+iOffset, &value, 4);    iOffset += 4; }

    static    BYTE&        Parse_GetByte(const BYTE* buf, int &iOffset) { iOffset ++; return *(BYTE*)(buf+iOffset-1); }
    static    short&        Parse_GetShort(const BYTE* buf, int& iOffset) { iOffset += 2; return *(short*)(buf+iOffset-2); }
    static  WORD&        Parse_GetWord(const BYTE* buf, int &iOffset) { iOffset += 2; return *(PWORD)(buf+iOffset-2); }
    static    DWORD&        Parse_GetDword(const BYTE* buf, int &iOffset) { iOffset += 4; return *(DWORD*)(buf+iOffset-4); }


DWORD KOFonksiyonGame_PTR;  
DWORD KOFonksiyonGame;
DWORD LastBoxID;
DWORD LASTBOX;

void KOTransferBox(DWORD pBoxID){
BYTE byBuff[100];
int iOffset =0;
LastBoxID=pBoxID;
MP_AddByte(byBuff, iOffset, 0x24);
MP_AddDword(byBuff, iOffset,pBoxID);
SendPacket(byBuff,iOffset);
}



void KOTransferBoxID(BYTE* pDataPack, int iOffset){
int ID =Parse_GetWord(pDataPack, iOffset);
DWORD BoxID =Parse_GetDword(pDataPack, iOffset);
KOTransferBox(BoxID);
}


void KOTransferLoot(DWORD LastBoxID,DWORD ItemID,BYTE itemslot){
BYTE byBuff[100];
int iOffset =0;
MP_AddByte(byBuff, iOffset, 0x26);
MP_AddDword(byBuff, iOffset,LastBoxID);
MP_AddDword(byBuff, iOffset,ItemID);
MP_AddByte(byBuff, iOffset, itemslot);
MP_AddByte(byBuff, iOffset, 0x00);
SendPacket(byBuff,iOffset);
}


void KOTransferParseBox(BYTE* pDataPack, int iOffset){
DWORD BoxID =Parse_GetDword(pDataPack, iOffset);
LASTBOX =BoxID;
DWORD drop_id[4];
DWORD toplalist[1];
for (int i = 0;i<4;i++){
drop_id[i] = *(DWORD*)(pDataPack+(6 + 6*i));
KOTransferLoot(BoxID,drop_id[i],i);
}
}

int  __stdcall KOPacketRecvMain(DWORD DataPack, int& iOffset)
  {

        unsigned long obj = 0;
        unsigned int resultrecv=0;
        _asm mov obj, ecx
        DWORD    RecvGamePtr=  *(DWORD*)KOFonksiyonGame_PTR;
        int iSize = *(DWORD*)(DataPack + 4);
        char *pBuf = (char*)*(DWORD*)(DataPack + 8);
        BYTE *GelenBuf = pBuf;
        if(pBuf == NULL)
        goto cikis;


         switch(GelenBuf[0]){

         case  0x23:{     // mob öldü, kutu düştü
         KOTransferBoxID(GelenBuf,1);
         return 1;
         }

         case  0x24:{   // kutu açıldı
         KOTransferParseBox(GelenBuf,1);
         return 1;
         }

         break;
        }

    cikis:
    asm{
        push   iOffset
        push  DataPack
        mov eax, KOFonksiyonGame
        mov ecx,obj
        call eax
        mov resultrecv, eax
    }
}


void AutoRecv(){
KOFonksiyonGame_PTR = RDWORD(RDWORD(KO_DLGA)) + 0x8;
KOFonksiyonGame = RDWORD(KOFonksiyonGame_PTR);
*(DWORD*)KOFonksiyonGame_PTR=(DWORD)KOPacketRecvMain;
}
Nerde o eski 
Cevapla


C++ Auto Loot Algoritması + Recv Konusu Araçları
Direk Link
HTML Link
BBCode Link
Paylaş


Konu ile Alakalı Benzer Konular
Konular Yazar Yorumlar Okunma Son Yorum
  msfpayloadcreator [AUTO] shell script ile yazıldı. Insurgent 0 1,084 28.04.2017, Saat:14:16
Son Yorum: Insurgent


mersin escort izmir escort izmir escort gaziantep escort canlı bahis siteleri tipobet bahis siteleri kaçak iddaa canlı bahis mobilbahis deneme bonusu deneme bonusu bodrum escort kuşadası escort türkçe altyazılı porno hack forum porno escort izmit kızılay escort antalya escort antalya escort alanya escort tipobet canlı sohbet hattı antalya escort