jFind – A Regular Expression and Hexadecimal Data Search Tool

https://github.com/seanlum/jFind
A collection of knowledge on cyber threat intelligence, cybersecurity, and DevSecOps
jFind – A Java-based CLi file/directory regular expression search tool.
This program is a little bit like egrep, but uses Java PCRE regular expressions to search for content. You can also search for content with hex strings. There have been thoughts about adding regular expression hex pattern searching, but the ethics for such a tool may be very gray. This tool is intended to be used in the information technology field, primarily in software development and potentially cybersecurity.
Below are a few ways that you can use the program to search for various kinds of content. There are also build scripts for Windows, and Linux. However it is up to you on which version of the JDK that you would like to use.
Some other features may eventually get into this program; but I’m not sure about when it will be.
Usage of jFind
# Display help
$ java -jar jFind.jar --help
# Search for the hex pattern of a JAR file
$ java -jar jFind.jar --dir . --check-files --recursive --byte-pattern "50,4B,03,04"
# Search for email addresses using a regular expression
$ java -jar jFind.jar --dir ./node_modules --check-files --recursive --regex "[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}"
# Searching for data in the format of IPv4 Addresses
$ java -jar jFind.jar --check-files --recursive --regex "(?:(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(\.(?!$)|$)){4}" --dir /path/to/directory
# Searching paths for C/C++ header files
$ java -jar jFind.jar --recursive --regex "\.h$" --dir .\C\coreutils\