-
-
[旧帖]
APC注入(64位系统下对32位进程注入的问题?)
0.00雪花
-
发表于:
2016-9-30 16:02
5179
-
[旧帖] APC注入(64位系统下对32位进程注入的问题?)
0.00雪花
APC注入的思路是:
1.附加目标进程,申请内存,把构造好的shellcode拷贝进去(确定shellcode是没问题的,在x86下执行是正常的)
2.修改目标进程线程的ApcState->UserApcPending = TRUE,强制执行APC
执行起来目标进程就崩溃了,我调试了一下是LdrLoadDll内部有问题
这段汇编代码是这样,就异常了
ntdll_778e0000!LdrLoadDll:
0033:00000000`7791c43a 8bff mov edi,edi
0033:00000000`7791c43c 55 push rbp
0033:00000000`7791c43d 8bec mov ebp,esp
0033:00000000`7791c43f a1ecf6907783ec0c53 mov eax,dword ptr [530CEC837790F6ECh] ds:002b:530cec83`7790f6ec=????????
0033:00000000`7791c448 83c801 or eax,1
0033:00000000`7791c44b 56 push rsi
0033:00000000`7791c44c 8b7508 mov esi,dword ptr [rbp+8]
0033:00000000`7791c44f bbda299077 mov ebx,offset ntdll_778e0000!memcpy+0x69a (00000000`779029da)
0033:00000000`7791c454 850530679e77 test dword ptr [ntdll_778e0000!fltused+0x2408 (00000000`779e6730)],eax
0033:00000000`7791c45a 0f858e150400 jne ntdll_778e0000!RtlUlonglongByteSwap+0x5fe (00000000`7795d9ee)
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!