|

50精币
|
线程_DLL卸载 | 逻辑型 | | |
目标进程ID | 整数型 | | | | 要注入的卸载文件名 | 文本型 | | | |
变量名 | 类 型 | 静态 | 数组 | 备 注 | hprocess | 整数型 | | | hvir | 整数型 | | | hmod | 整数型 | | | hThread | 整数型 | | | DLL句柄 | 整数型 | | | 返回值 | 整数型 | | | 长度 | 整数型 | | | hThread1 | 整数型 | | |
hprocess = OpenProcess (2035711, 0, 目标进程ID ) 如果真 (hprocess = 0 ) 返回 (假)长度 = 取文本长度 (要注入的卸载文件名) + 1hvir = VirtualAllocEx (hprocess, 0, 长度, 4096, 4 )WriteProcessMemory_字节集 (hprocess, hvir, 到字节集 (要注入的卸载文件名 ), 长度, 0 )hmod = GetProcAddress1 (GetModuleHandleA (“Kernel32”), “GetModuleHandleA”)hThread = CreateRemoteThread (hprocess, 0, 0, hmod, hvir, 0, 0 )WaitForSingleObject (hThread, 4294967295 )GetExitCodeThread (hThread, DLL句柄 ) VirtualFreeEx (hprocess, hvir, 0, 32768 )CloseHandle (hThread ) 如果真 (DLL句柄 = 0 ) 返回 (假)
hmod = GetProcAddress1 (GetModuleHandleA (“Kernel32”), “FreeLibrary”)hThread1 = CreateRemoteThread (hprocess, 0, 0, hmod, DLL句柄, 0, 0 ) WaitForSingleObject (hThread1, 4294967295 )GetExitCodeThread (hThread, 返回值 )CloseHandle (hThread1 )CloseHandle (hprocess ) 如果 (返回值 ≠ 0 ) 返回 (真) 返回 (假)
这是精益模块里的源码,去看官方文档介绍也没有找出所以然,貌似是计数的问题?不太懂。求大佬帮忙指出问题所在,谢谢.
|
最佳答案
查看完整内容
问题不在这命令上!你要用黑月编译dll~
.版本 2
.子程序 Dll入口函数, 逻辑型, 公开, DllMain
.参数 DLL实例句柄, 整数型, , hinstDLL
.参数 调用类型, 整数型, , fdwReason
.参数 保留, 整数型, , lpvReserved
.判断开始 (调用类型 = #DLL_PROCESS_ATTACH)
.判断 (调用类型 = #DLL_PROCESS_DETACH)
.默认
.判断结束
返回 (真)
...
|