nexxai / CryptoBlocker

A script to deploy File Server Resource Manager and associated scripts to block infected users
GNU General Public License v2.0
200 stars 73 forks source link

Add support for a "ProtectList.txt" #43

Closed StarDestroyer78 closed 6 years ago

StarDestroyer78 commented 6 years ago

I'm very new to git, so I'm really hoping I did this all the right way. I made a minor modification That allows you to create a file that contains a list of all directories that you want to protect.

If your directory is in this file, it adds the CryptoBlocker screens to it.

If this file doesn't exist (the default), it reverts to the original behavior.

nexxai commented 6 years ago

I just want to confirm that I'm understanding the code correctly before committing this PR. If you do have a file called "ProtectList.txt" in the folder with the script, it will only protect those folders; if you do not have that file, it will operate in the same way as it always has (aka: this PR contains no breaking changes)?

StarDestroyer78 commented 6 years ago

That is correct.