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 »
To get a local copy up and running follow these simple steps.
Crayon requires .NET Core.
-
Clone the repo
git clone https://github.com/CONDITIONBLACK/BulkRegexCheck.git
-
Open the BulkRegexCheck Solution in Visual Studio or Visual Studio Code (Free)
-
Build the Solution and Execute the console application in the console of your choice
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.
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).
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.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Your Name - @Shadow0pz - security[@]condition[.]black
Project Link: https://github.com/CONDITIONBLACK/BulkRegexCheck