Code Monkey home page Code Monkey logo

sharpntdlloverwrite's Introduction

SharpNtdllOverwrite

Overwrite ntdll.dll's ".text" section using a clean version of the DLL.

It can help to evade security measures that install API hooks such as EDRs.

The unhooked version of the DLL can be obtained from:

  • A DLL file already on disk - For example "C:\Windows\System32\ntdll.dll".
  • The KnownDlls folder - "\KnownDlls\ntdll.dll" for 64-bit processes and "\KnownDlls32\ntdll.dll" for 32-bit processes.
  • A process created in debug mode - Processes created in suspended or debug mode have a clean ntdll.dll.
  • A URL - Similar to the first option, but the file is downloaded from a web server.

From disk

Get the clean ntdll.dll from disk. You can specify a file path or use the default value "C:\Windows\System32\ntdll.dll":

SharpNtdllOverwrite.exe disk [FILE_PATH]

img1

From KnownDlls folder

Get the clean ntdll.dll from the KnownDlls folder:

SharpNtdllOverwrite.exe knowndlls

img2

From a debug process

Get the clean ntdll.dll from a new process created with the DEBUG_PROCESS flag. You can specify a binary to create the process or use the default value "C:\Windows\System32\calc.exe":

SharpNtdllOverwrite.exe debugproc [BINARY_PATH]

img3

From a URL

Get the clean ntdll.dll from a URL. The default value is "http://127.0.0.1:80/ntdll.dll":

SharpNtdllOverwrite.exe download [URL]

img4


Sources

  • Maldev Academy explains this technique in one of their lessons using code written in C/C++.

sharpntdlloverwrite's People

Contributors

ricardojoserf avatar

Stargazers

 avatar  avatar Ricardo Ruiz  avatar AVA avatar Soar avatar  avatar  avatar

Watchers

 avatar

Forkers

chronoss3 yyosefi

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.