Git Product home page Git Product logo

killpchunter_ntterminateprocess's Introduction

####实现关闭进程函数,杀掉pchunter

作者:又出bug了

说明:了解NtTerminateProcess的汇编代码调用流程。 自己给NtTerminateProcess里面调用的API设置参数。从而不用调用NtTerminateProcess,但是又实现了NtTerminateProcess的功能,可以有效过HOOK。

win7_sp1 32位下NtTerminateProcess的调用流程。下面的API调用,中间是有跳转的,没有添加。

kd> x nt!NtTerminateProcess

84098fcc nt!NtTerminateProcess ()

在汇编地址中输入84098fcc,记录执行的API。

NtTerminateProcess()

{

PsProcessType();

ExfAcquireRundownProtection();

ObfDereferenceObject();

PspTerminateAllThreads();

ObfDereferenceObject();

KeForceResumeThread();

KiCheckForKernelApcDelivery();

PspExitThread();

ExfAcquirePushLockExclusive();

ExfTryToWakePushLock();

ExfAcquirePushLockExclusive();

ExfTryToWakePushLock();

KiCheckForKernelApcDelivery()

PspTerminateThreadByPointer();

{

PspCatchCriticalBreak();

PspExitThread();	// 情况一:线程自己关闭自己

ExAllocatePoolWithTag();

PspShortTime();

KeDelayExecutionThread();

PspExitNormalApc();

PspExitApcRundown();

PsExitSpecialApc();

KeInitializeApc();	// 情况二,关闭掉别的线程:在对方线线程中插入一个内核apc,

                    // 这个内核apc最后会调用PspExitThread函数

KeInsertQueueApc();

KeForceResumeThread();

}

ExfTryToWakePushLock();

KiCheckForKernelApcDelivery();

}

--

killpchunter_ntterminateprocess's People

Contributors

wanttobeno avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.