Giter Site home page Giter Site logo

nir3x / rwx-dll-scanner Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 31 KB

RWX DLL Scanner - Find signed RWX dlls

License: GNU Affero General Public License v3.0

C++ 100.00%
32-bit 64-bit c-plus-plus cpp digital-signature security windows-development digitally-signed-sections dll-scanner rwx-dll-scanner command-line-tool

rwx-dll-scanner's Introduction

RWX DLL Scanner - Find signed RWX dlls

Overview

RWX DLL Scanner is a utility written in C++ that scans a list of DLL files to identify signed sections with read, write, and execute permissions (RWX). The utility checks for the presence of a security directory in the optional header to detect digitally signed sections.

Features

  • Scans DLL files for RWX sections.
  • Detects digitally signed sections using the security directory.
  • Provides information about the identified sections.
  • Distinguishes between 32-bit and 64-bit DLLs.

Usage

  1. Create a text file named dlls.txt containing the list of DLL filenames to be scanned.
  2. Run the executable, and it will process each DLL file in the list.
RWXDLLScanner.exe

Finding DLL Files

To generate the dlls.txt file, you can use the DLL Finder utility, which scans all available drives and extracts the list of DLL files.

DllFinder.exe

Building

Make sure you have a C++ compiler and the necessary dependencies installed. Use the following commands to build the executable:

g++ -std=c++2a -Wall -O2 -march=x86-64 -fno-rtti RWXDLLScanner.cpp -o RWXDLLScanner.exe -s -static

Example

Consider the following example output:

section0: ".text"
32-bit dll: "example.dll"

In this example, the utility found a RWX section named ".text" in the "example.dll" file.

Notes:

  • The utility skips files that cannot be opened or have invalid DOS or NT headers.
  • Minimum section size for consideration is set to 0x64000.

License

GNU AGPLv3 Image

This program is Free Software: You can use, study share and improve it at your will. Specifically you can redistribute and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

rwx-dll-scanner's People

Contributors

nir3x avatar

Stargazers

 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.