Git Product home page Git Product logo

loaderwatch's Introduction

LoaderWatch

Toolbox to assist debugging, tracing and memory inspection of Windows PE image loader (LDR) NTDLL component.

Features

  • Managed debugger for unmanaged applications
  • Stack traces on exceptions with symbol name resolution
  • Complete Windows 10 LDR internals .NET type model (except Enclaves)
  • Windows WDM kernel driver to inject custom module to assist hooking LDR methods
  • Optional Windows Registry operations logging
  • Hooking of non-exported LDR methods thanks to IPC and DbgHelp

Demo

YouTube Demo video

Get Started

  • Ensure latest .NET Core 5.0+ daily build is installed
  • Ensure latest Visual Studio 16.2+ is installed
  • Ensure latest Windows SDK and WDK are installed (18945+)
  • Build the solution
  • Provision remote (local will not do, use VMs) machine for WDK driver deployment
  • Ensure remote machine is ready for driver installation (e.g. kernel debugger is attached), otherwise driver test signature verification will fail
  • Deploy LoaderWatch.Inject.Driver to remote machine
  • Copy the $(SolutionDir)bin\$(Configuration)\ folder to remote machine
  • Run LoaderWatch.CLI.exe [executable], executable is notepad.exe by default

Note: you will likely need to start LoaderWatch.CLI.exe as administrator at least once for each executable you want to debug (to set ShowSnaps flag in registry for the executable image).

Note: you might need to create C:\Symbols directory to preserve PDB files.

Note: .NET Core 3.0 will not suffice.

Note: Unless you publish LoaderWatch.CLI as self-contained application, the exact same .NET Core version must be installed on remote machine.

Note: if you do not install kernel-mode driver, LoaderWatch will continue to work in a very limited mode (no module injection, private method hooking or features dependent on the aforementioned components).

License

  1. Whatever hell the legal intersection of all licenses in Copyright section is.
  2. All code written by Andrew Boyarshin or any other LoaderWatch contributors is licensed under MIT. Enjoy.

Note: no explicit or implicit commercial usage is allowed in any way due to point 1.

Note: the Windows 10 LDR internals .NET type model is based on non-free non-public knowledge and is subject to the latest (June 2018) Microsoft Windows 10 EULA. Educational use only.

Copyright

loaderwatch's People

Contributors

andrew-boyarshin 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.