| 发表于:2007-10-22 18:01:19 楼主 |
public function loaddll(pid as long, dllname as string) as long dim remotepid as long dim dlllength as long dim dllbuffer as long dim startaddr as long dim hrthread as long dim tid as long dim exitcode as long uptoken '提升权限debug权限 remotepid = openprocess(process_all_access, false, pid) dlllength = 1 + lenb(strconv(dllname, vbfromunicode)) dllbuffer = virtualallocex(remotepid, 0, dlllength, mem_commit, page_readwrite) call writeprocessmemory(remotepid, dllbuffer, dllname, dlllength, tid) startaddr = getprocaddress(getmodulehandle("kernel32"), "loadlibrarya") hrthread = createremotethread(remotepid, 0, 0, startaddr, dllbuffer, 0, tid) loaddll = hrthread closehandle hrthread closehandle remotepid end function 这个是创建远程线成到加载dll到的代码,我试过。可以插入explorer里面并且弹出注入成功的字样(dll里的代码),但我接下插入winlogon里面的时候却没了反映,我想知道原因是什么。大家帮帮我吧~ |
|
|
|
|