Giter Club home page Giter Club logo

arktooldrv's Introduction

ArkToolDrv

An ark tool's driver

This repository has been moved to here(ArkProtect), and this one won't update any more.

This is an Ark tool's driver part. Maybe there remains some bugs..<br/>
first of all, I used Neither_IO to establish the connect between ring3 and ring0

ProcessModule.

1.Enum Process By Force.

  Each time, add ProcessId by 4 and test whether the id is valid.
  When I need to get process's full path, I used sectionobject to get fileobject, then I get the filename
in this structure.

2.Enum Thread By ListEntry.

  There are two Lists which we can travel them to find all thread in the target process
  · _EPROCESS --> ThreadListHead & _ETHREAD --> ThreadListEntry
  · _KPROCESS --> ThreadListHead & _KTHREAD --> ThreadListEntry

3.Enum ProcessModule By Ldr.

  In the Structure of _PEB, we can get a member called "Ldr", three list are existing in it, which recorded 
all modules >the process had loaded. so we can travel them respectively.

4.Process Privilege.

  Enum and adjust privilege by a a series of NTfunctions concerning ProcessToken

5.Enum Process Handle.

  ZwQuerySystemInformation + SystemHandleInformation

6.Enum Process Window.

  NtUserBuildHwndList + NtUserQueryWindow (get from SSSDT)

7.Enum Process Memory.

  Use NtQueryVirtualMemory by force from 0 to MaxUserSpaceAddress

8.Kill Process.

  Just used a NTFunction--ZwTerminateProcess

DriverModule.

1.Enum Sys Module.

   Firstly, travel LdrDataTableEntry.
   Then, travel DirectoryObject (a hash table), Attention, travel device chain and device satck

2.Unload Sys Module.

   If sys has an Unload dispatch, then just call it
   If Sys does not have an Unload dispatch, then we need to realize it manually

KrnlModule.

1.Callbacks.

   Enum -->
     · LoadImageCallback, CreateThreadCallback, CreateProcessCallback are similiar. They are all in an array.
     · RegisterCallback, BugCheckCallback, BugCheckReasonCallback, ShutDownCallback are ListEntry Structure.

   Remove -->
     call Remove function
     · LoadImageCallback, CreateThreadCallback, CreateProcessCallback: use callbackAddress
     · RegisterCallback: use Cookie
     · BugCheckCallback, BugCheckReasonCallback, ShutDownCallback: use ListEntry

2.IoTImer

   Enum --> Travel IopTimerQueueHead
     Remove --> RemoveEntryList
     Start/Stop --> IoStartTimer(DeviceObject)/IoStopTimer(DeviceObject)

3.DpcTimer

    Enum --> _Kprcb->TimerTable->TimerEntries(256)->travel list
    Remove --> KeCancelTimer(Timer)

4.SystemThread

    Enum --> Travel PspCidTable to get Object, just call the function write in Enum Process Thread

5.FilterDriver

    Enum --> First to get driverobject by name, then travel the driverobject's device stack and device chain.
    Remove --> change AttachedDevice

KrnlHook

1.Get KeServiceDescriptorTable Address.

2.Get SSDT function address by function Index in SSDT.

3.Get KeServiceDescriptorTableShadow Address.

4.Get SSSDT function address by function Index in SSSDT.

5.Query KrnlFile's Import Functions and Export Functions.

(include travel IAT EAT, etc.)

arktooldrv's People

Contributors

azuregreen avatar

Watchers

James Cloos 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.