ljc545w / ComWeChatRobot

PC微信机器人,实现获取通讯录,发送文本、图片、文件等消息,封装COM接口供Python、C#调用
1.65k stars 453 forks source link

希望加入扫码登陆的API #116

Closed duo closed 2 years ago

duo commented 2 years ago

我确定我已经查看了 (标注[ ][x])


我要申请 (标注[ ][x])


切换到二维码登陆的对应点是

    DWORD callAddress1 = dllBaseAddress + 0x372AA0;
    DWORD callAddress2 = dllBaseAddress + 0x5177D0;

    __asm {
        pushad;
        call callAddress1;
        mov ecx, eax;
        call callAddress2;
        popad;
    }

登陆二维码图片的对应点是 (貌似现在通过code生成的图片无法被微信识别登陆, 只能用丫生成的了)

#define SaveQRCodeImageHookOffset 0x2815DA
#define SaveQRCodeImageNextCallOffset 0x76F660

VOID SaveQRCodeImage(char *src, int size)
{
   //
}

_declspec(naked) void dealSaveQRCodeImage()
{
    __asm {
        pushad;
        pushfd;
        push dword ptr[eax + 4];
        push dword ptr[eax];
        call SaveQRCodeImage;
        add esp, 0x8;
        popfd;
        popad;
        call SaveQRCodeImageNextCall;
        jmp SaveQRCodeImageJmpBackAddress;
    }
}
ljc545w commented 2 years ago

已经有了,查看#118