Skip to content

shxve/shcanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is shcanner

Author Language Platform

Description

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 :)

Required

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

Usage

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)

Execution example

execution output

About

a tool for performing file scanning for patterns

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages