Skip to content

A simple .NET Core Console Application to perform Bulk Regular Expression Validation Tests

License

Notifications You must be signed in to change notification settings

CONDITIONBLACK/BulkRegexCheck

Repository files navigation

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

Bulk Regex Check

A simple, lightweight .NET Core(3.1) console application for validating Regular Expressions. This was developed for security researchers who were testing large numbers of regular expressions for use against data leaks or breaches. It uses the Crayon NuGet library to quickly help researchers identify expressions which are invalid. This is a VERY simple implementation meant to be run on any platform that supports .NET core console applications.
Explore the docs »

Table of Contents

  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact

About The Project

BulkRegexCheck Screen Shot

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

Crayon requires .NET Core.

Build and Run

  1. Clone the repo

    git clone https://github.com/CONDITIONBLACK/BulkRegexCheck.git
  2. Open the BulkRegexCheck Solution in Visual Studio or Visual Studio Code (Free)

  3. Build the Solution and Execute the console application in the console of your choice

Usage

This console application takes a text file as input via user input prompt (This means it will ask you for the file path on start). Provide the file path with a single regular expression on each line (do not separate them with any delimiters or surround them with quotes etc.). The app will run a validation on every regular expression contained within the file and provide a color coded validation response along with the exact regex tested for each line.

For valid regular expressions they are marked in Green with a response: "The regular expression (?i)(['\"]?\\w*password['\"]? ?[:=] ?(['\"][^'\"]{4,}['\"])) is VALID"

For INVALID regular expressions they are marked in RED with a response: "The regular expression (?i)(['\"]?pw['\"]? ?[:=] is NOT VALID"

This allows the user to quickly identify the regular expressions that require review prior to use.

Roadmap

We are not planning any major changes to this code at this time as it is meant to be a simple and quick solution to a common problem for individuals who may not have the coding or scripting experience to quickly build their own tooling but if you have an idea on how to make it better or add functionality we would welcome your input.

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place and we would not be able to do what we do without it. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Your Name - @Shadow0pz - security[@]condition[.]black

Project Link: https://github.com/CONDITIONBLACK/BulkRegexCheck

About

A simple .NET Core Console Application to perform Bulk Regular Expression Validation Tests

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages