To get started you need to have Powershell installed on your system. For windows operating system, it is pre-installed so you can skip the powershell installation step.
- Install powershell using following guides.
- Powershell Installation on Windows
- Powershell Installation on MacOS
- Powershell Installation on Ubuntu
- Powershell Installation on Debian
- Test the powershell by running it.
- We need to set an “Unrestricted” execution policy for Windows machine. The default execution policy in Powershell is “Restricted”, which means the system will neither load PowerShell configuration files nor run PowerShell scripts. To do that run powershell as root/admin then do the following-
Set-ExecutionPolicy Unrestricted
After powershell is installed on your system, you can clone the repository via your terminal-
git clone https://github.com/darkoid/pufin.git
or you can download zip on the repo page-
Now if configure the variables as you need PUFIN to work. Read on configuration here
Now you are ready to run the script.
- Goto the script
pufin.ps1
and click on run with powershell as shown below or you can run it directly via powershell.
- For the first time running this application. We need to generate a baseline file to store file path and hash. Choose 'A'- (this will take time depending on the no of files in the selected location)
- Now rerun the script and select 'B'.
Congratulations you are now ready to go, to verify that eveything is running smoothly make changes to the few files then navigate back to your application to see all the different warnings of file change or deletion or creation. Undo the changes to get rid of the warnings.