Code Monkey home page Code Monkey logo

sec-tools-repo / invoke-edrchecker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pwndexter/invoke-edrchecker

0.0 0.0 0.0 429 KB

Checks running processes, process metadata, Dlls loaded into your current process and the each DLLs metadata, common install directories, installed services, the registry and running drivers for the presence of known defensive products such as AV's, EDR's and logging tools.

License: BSD 3-Clause "New" or "Revised" License

PowerShell 100.00%

invoke-edrchecker's Introduction

Invoke-EDRChecker

The script will check running processes, process metadata, Dlls loaded into your current process and the each DLLs metadata, common install directories, installed services, the registry and running drivers for the presence of known defensive products such as AV's, EDR's and logging tools.

This script can be loaded into your C2 server as well for example in PoshC2, place the script into your modules directory, load the module then run it. Note: this script is now included in PoshC2 so no need to manually add it.

The script also has capacity to perform checks against remote targets if you have the privileges to do so, these checks are presently limited however to process checking, common install directories and installed services.

I will continue to add and improve the list when time permits. A full roadmap can be found below.

The C# version of this tool is much improved over the PowerShell version and can be found here:

https://github.com/PwnDexter/SharpEDRChecker

Find me on twitter @PwnDexter for any issues or questions!

Install

git clone https://github.com/PwnDexter/Invoke-EDRChecker.git

Usage

Once the script has been loaded into your host or C2 of choice, you can use the following commands:

Run the script against the local host and perform checks based on current user integrity:

Invoke-EDRChecker

Run the script and force registry checks to be performed (for use when you are not running as admin):

Invoke-EDRChecker -Force

Run the script against a remote host, this test connectivity and try to resolve the hostname before running:

Invoke-EDRChecker -Remote <hostname>

To bypass the pre-checks for remote hosts use -Ignore flag to bypass connectivity checks

Invoke-EDRChecker -Remote <hostname> -Ignore

Example Output - Note: These screenshots need updated and this has only been tested on Windows 10, more testing to come.

If processes and drivers are hidden and still found:

If running as non-admin to show visibility difference:

Using EDR-Checker with PoshC2:

Roadmap

  • - Add more EDR Products - never ending
  • - Refine beta function for registry checking
    • - Add in force reg check if not running as admin
  • - Test across more Windows and .NET versions
  • - Port to c# -
  • - Clean up output
  • - Get currently loaded DLL's in your current process
    • - Get dll metadata of currently loaded dlls
  • - Add remote host query capability
    • - Add connectivity and DNS checks before performing edr checks
    • - Add remote privilege checks before performing edr checks
  • - Add installed services checks
  • - Port to python for unix/macos support

invoke-edrchecker's People

Contributors

pwndexter avatar b2az 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.