This tool scans files in directories passed as input by the user recursively to look for patterns within them.
shcanner uses by default 4 parallel instances of grep to load and search the regexes, optimizing times, you can always change it by editing the script.
For change the dataset just see the files in ./patterns, I recommend using this repo to get datasets (like me)
I hope I have said everything, otherwise the code is not difficult to analyze :)
You must install the latest version of yq to run this script correctly, otherwise the datasets will not load.
To install the latest version of yq run these commands
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq &&\
chmod +x /usr/bin/yq
To run this tool, after installing yq and verifying that it works, assign execution permissions with chmod +x ./shcanner.sh and then run with ./shcanner.sh
The tool asks the user for the type of scan by default, based on the answer one dataset is used rather than another, I recommend using the quick scan for try the tool.
Lastly, enter the folders to search for separated by space (e.g. /home/user/test /etc)

