成人在线你懂的-成人在线免费小视频-成人在线免费网站-成人在线免费视频观看-日韩精品国产一区二区-日韩精品国产一区

掃一掃
關注微信公眾號

Win2k下進程不死術
2007-06-05   中國IT實驗室

此段程序采用公開的 Win2k注射遠程線程,來保護指定進程始終處于運行狀態。
  生成wap32.exe拷貝到c:\下運行,則Wap32進程不死。
  
  include Win32.inc
  
  .386
  .model flat,stdcall
  .data
  
  Protect2kProc proc ProcID: dword
  call GetKnlOpenProcess
  KnlOpenProcess dd ?
  GetKnlOpenProcess:
  pop eax
  call [eax],PROCESS_ALL_ACCESS,FALSE,ProcID
  or eax,eax
  jz short ExitProtectProc
  mov ebx,eax
  call GetKnlWaitForSingleObject
  KnlWaitForSingleObject dd ?
  GetKnlWaitForSingleObject:
  pop eax
  call [eax],ebx,-1h
  call GetFileNameAddress
  GetFileNameAddress:
  pop ecx
  add ecx,offset FileName-offset GetFileNameAddress
  call GetKnlWinExec
  KnlWinExec dd ?
  GetKnlWinExec:
  pop eax
  call [eax],ecx,01
  ExitProtectProc:
  ret
  Protect2kProc endp
  
  FileName db 'c:\wap32.exe',0
  
  
  KnlOpenProcessStr db 'OpenProcess',0
  KnlWaitForObjectStr db 'WaitForSingleObject',0
  KnlWinExecStr db 'WinExec',0
  
  
  .code
  extrn GetProcAddress: proc
  extrn OpenProcess: proc
  extrn FindWindowA: proc
  extrn GetWindowThreadProcessId: proc
  extrn VirtualAllocEx: proc
  extrn VirtualFreeEx: proc
  extrn WriteProcessMemory: proc
  extrn GetCurrentProcessId: proc
  extrn CreateRemoteThread: proc
  extrn GetExitCodeThread: proc
  extrn CloseHandle: proc
  extrn WinExec: proc
  extrn MessageBoxA: proc
  extrn Sleep: proc
  
  
  Start:
  call GetProcAddress,077e60000h,offset KnlOpenProcessStr
  mov KnlOpenProcess,eax
  call GetProcAddress,077e60000h,offset KnlWaitForObjectStr
  mov KnlWaitForSingleObject,eax
  call GetProcAddress,077e60000h,offset KnlWinExecStr
  mov KnlWinExec,eax
  
  call FindWindowA,0,0
  push eax
  call GetWindowThreadProcessId,eax,esp
  call OpenProcess,PROCESS_ALL_ACCESS,FALSE
  or eax,eax
  jz short OpenProcessError
  mov ebx,eax
  call VirtualAllocEx,ebx,NULL,1000h,MEM_COMMIT,L 40h
  or eax,eax
  jz short OpenProcessError
  mov edi,eax
  push eax
  call WriteProcessMemory,ebx,edi,OFF Protect2kProc,1000h,esp
  call GetCurrentProcessId
  call CreateRemoteThread,ebx,NULL,NULL,edi,eax,NULL,esp
  call GetExitCodeThread,eax,esp
  pop eax
  ;call VirtualFreeEx,ebx,edi,1000h,MEM_DECOMMIT
  call CloseHandle,ebx
  call Sleep,100h
  call MessageBoxA,0,offset FileName,offset FileName,0
  OpenProcessError:
  ret
  
  end Start

熱詞搜索:

上一篇:mdm.exe系統進程介紹
下一篇:WIN 9X下查找隱藏進程實現方法

分享到: 收藏
主站蜘蛛池模板: 闵允渡李秀主演电影| 爱播| 视频爱爱| 马玉琴20岁照片| 可可托海的牧羊人原唱歌曲| 演员任贤齐简历| 樊城电影| 徐童| 中央五节目表| 隐形变异作风问题清单及整改措施 | 少年派1主演名单| 楼下的租客| 精卫填海演员表| 生产时直拍宫口| 《遇见你之后》电影在线观看| 绅士联盟| 尹海英| 八年级上册英语课堂作业答案 | 孤战迷城电视剧剧情介绍| 从此以后歌词| 黄造时个人简历| justin harris| 电影双面情人| 性视频播放| 龙凤店| 民国往事电视剧演员表| 实验室火灾报警电铃响时应当| 乱世伦情 电影| 学校要的建档立卡证明| 钉子电影电视剧| 圆的认识评课| 烟草甲虫| 松永沙奈| 雅马哈调音台说明书| av电影网| 未删减版电视剧在线观看| 真的爱你最标准谐音歌词| 高纤维食物一览表| 央视7套| 诡娃| 茶山情歌伴奏|