bac66485 發表於 2019-7-19 17:42:13

C++ 2010 DLL寫ICS全圖打的問題

小弟我奮鬥了2天多,還是ˊ找不出哪裡寫錯以下是數據// ICS 全職全圖打
DWORD AttackOnOff = 0;
DWORD VariantInit_Address = (DWORD)GetProcAddress(GetModuleHandleA("oleaut32"), "VariantInit");
DWORD CheckESPAddress = 0x0333F414;
DWORD CheckESP_Disable = VariantInit_Address;
DWORD CheckESP_Call = 0x02298BE0;
DWORD CheckESP_Calll = 0x00C40E70;
DWORD CheckESP_Jmp = 0x014973C6;
void __declspec(naked) __stdcall FullMapAttack()
{   
    __asm
        {
mov ecx,
add Ecx, 0x04
lea eax,
push eax
call CheckESP_Call
push eax
lea ecx,
call CheckESP_Calll
jmp CheckESP_Jmp
        }
}
DWORD FullMapAttackAddress = (DWORD)FullMapAttack;

void __declspec(naked) __stdcall DoFullMapAttack()
{
        __asm
        {
cmp dword ptr,0
je VariantInitBack
cmp dword ptr, 0x014973C6
jne VariantInitBack
push FullMapAttackAddress
pop dword ptr
VariantInitBack:
jmp CheckESP_Disable
        }
}
DWORD DoFullMapAttack_Enable = (DWORD)DoFullMapAttack;

void InjectScript()
{
        memcpy((void *)CheckESPAddress, &DoFullMapAttack_Enable, sizeof(DoFullMapAttack_Enable));
}
System::Void FormMain::checkBox4_CheckedChanged(System::Object^  sender, System::EventArgs^  e)
{
    if (this->checkBox4->Checked)
    {
        //memcpy((void *)CheckESPAddress, &DoFullMapAttack_Enable, sizeof(DoFullMapAttack_Enable));
                AttackOnOff = 1;
    }
    else
    {
        //memcpy((void *)CheckESPAddress, &CheckESP_Disable, sizeof(CheckESP_Disable));
                AttackOnOff = 0;
    }
}DLL有加上延遲Sleep
數據我是從版上的ICS全圖打小改一下的 以下是我改的 保證可以用//TwMS v217.3 ICS 全職全圖打

Alloc(AttackOnOff,4)
Alloc(CheckESP, 256)
Registersymbol(AttackOnOff)
Label(FullMapAttack)

AttackOnOff:
DD 01

CheckESP:
Cmp , 0
Je VariantInit
Cmp ,014973C6
Jne VariantInit
Mov ,FullMapAttack
Jmp VariantInit


FullMapAttack:
mov ecx,
add ecx,04
lea eax,
push eax
call 02298BE0
push eax
lea ecx,
call 00C40E70
jmp 014973C6

0333F414:
DD CheckESP


0333F414:
dd VariantInit
DeAlloc(CheckESP)希望大大們可以幫助小弟我解決這個難題 這個寫法我是看Toby的教學的

huanghy_gz 發表於 2020-7-25 18:53:14

问题解决了吗?怎么解决的?
頁: [1]
查看完整版本: C++ 2010 DLL寫ICS全圖打的問題