mavzermete 1
mavzermete
Fethi Polat 1
Fethi Polat
noisiv 1
noisiv
Manwe Work 1
Manwe Work
Scarlet 1
Scarlet
xranzei 1
xranzei
Hikaye Ekle

C++ Metin2 SendSpecial (Source Code)

HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!

main kod
[CODE lang="cpp" title="pakcet"]C_Hearder = 0xDC;
C_SendSpecial = 0x14FF20;
static void* iNetworkStreamInstance()
{
DWORD inst = *(DWORD*)(sdk_client + metin2client::C_CPythonNetworkStream);
if (!inst) return nullptr;
return (void*)inst;
}
static bool NetworkStreamSendSpecial(int nLen, void* pvBuf)
{
try
{
typedef bool(__thiscall* Special)(void* This, int nLen, void* pvBuf);
Special Send = (Special)(sdk_client + metin2client::C_SendSpecial);
void* pNetStream = sdk::iNetworkStreamInstance();
if (!pNetStream || !Send)
return false;

return Send(pNetStream, nLen, pvBuf);
}
catch (...)
{
return false;
}
}

BYTE Byte[] = {
0x55,
0x8B, 0xEC,
0x60,
0xB8, 0x00, 0x00, 0x00, 0x00,
0x8B, 0x48, 0x08,
0x03, 0x48, 0x04,
0x8B, 0x09,
0x85, 0xC9,
0x74, 0x08,
0xFF, 0x70, 0x10,
0xFF, 0x70, 0x0C,
0xFF, 0x10,
0x61,
0x8B, 0xE5,
0x5D,
0xC3
};[/CODE]

kullanımı
[CODE lang="cpp" title="use"]#pragma pack(push)
#p#pragmaack(1)
typedef struct cmd
{
BYTE header;
BYTE bType;
DWORD dwVictimVID;
BYTE bCRCMagicCubeProcPiece;
BYTE bCRCMagicCubeFilePiece;
} TPacketCGAttack;

DWORD WINAPI dungeona(HMODULE hModule)
{
AllocConsole();
while (true)
{
auto entities = GetEntities();
for (int i = 0; i < entities.size(); ++i)
{
const auto& ent = entities;
TPacketCGAttack SendBattlePacket{};
SendBattlePacket.header = metin2client::C_Hearder;
SendBattlePacket.bType = 0;
SendBattlePacket.dwVictimVID = ent.VID;
SendBattlePacket.bCRCMagicCubeProcPiece = 0;
SendBattlePacket.bCRCMagicCubeFilePiece = 0;
engine::NetworkStreamSendSpecial(sizeof(TPacketCGAttack), &SendBattlePacket);
}
Sleep(500);
}


return 0;
}[/CODE]
kullanım video su
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst