]> ###2018.07.02 - Most likely the final version of this plugin - Remove read-only options. In case of an attack, array MUST be stopped and restarted in order to resume normal operations ###2018.01.09 - Update URLs for help file pictures ###2017.05.21 - Fixed: Disk share settings not properly restoring ###2017.02.13### - Fixed: Suppress error message on uninstall - Fixed: Restore permissions on uninstall (if in tripped state) ###2017.01.01### - Allow bait files to be hidden ###2016.11.27b### - Fix uninstall routine ###2016.11.26### - Fixed: Bait files being placed into appdata backup share - Fixed: Possible for Bait Shares to have same name, but different case - Changed: Reset SMB permission upon uninstall ###2016.11.11### - Prevent backup copies of share settings getting overwritten during a probable unintentional tripping ###2016.11.05### - Added: Automatically exclude any .Recycle.Bin folders ###2016.11.04### - Added: Ability to automatically exclude hidden folders ###2016.10.30### - Added: Full Manual - Fixed: Compatibility with Dynamix Bleeding Edge plugin ###2016.10.28### - Improvements in stop services - Fixed: Depending upon settings, an attack on user shares could trigger multiple attacks on bait shares - Added: Optional preserving of folder modification time when creating bait files - No longer log smb status if smb wasn't enabled - Set UD mounted shares to be read-only in case of attack - ###2016.10.25### - Major overhaul to the UI - Incorporate specialized Bait Shares - unRaid 6.2.1+ only ###2016.10.10### - Minor Bug Fixes ###2016.10.09### - Added: Separate read-only SMB / AFP Settings - Added: Disk shares now set to be read-only - Added: Check and increase inotify watches if required - Changed: Deletion of bait files now only happens when service starts up - Added: Log when inotifywait is actually ready, willing, and able - Fixed: Remove possibility of orphaned bait files on reboots - Added: Ability to exclude folders ###2016.10.07### - Beta: Stop AFP along with SMB - Added: Realtime popups of status within Ransomware's Settings - Enhanced: Faster Stopping of SMB - Fixed: An attack followed by a reboot wouldn't let you restore proper permissions ###2016.10.06### - Add in PDF bait file - Add in SMB Readonly mode option - Add in ability to set Readonly mode anytime - Add in ability to include appdata for bait - Add in ability to change emhttp communication port - Add in logging to determine where attack originated from ###2016.10.02### Initial Release ]]> https://raw.github.com/&github;/master/archive/&name;-&version;-x86_64-1.txz &md5; if [ -e /boot/config/plugins/ransomware.bait/shareBackupDisks/disk.cfg ] then sed -i '/diskComment/d' /boot/config/plugins/ransomware.bait/shareBackupDisks/disk.cfg sed -i '/diskComment/d' /boot/config/disk.cfg sed -i '/cacheComment/d' /boot/config/plugins/ransomware.bait/shareBackupDisks/disk.cfg sed -i '/cacheComment/d' /boot/config/disk.cfg fi rm -f $(ls /boot/config/plugins/&name;/&name;*.txz 2>/dev/null|grep -v '&version;') echo "Stopping the service" /usr/local/emhttp/plugins/ransomware.bait/scripts/stopService.php echo "Restarting the background service" /usr/local/emhttp/plugins/ransomware.bait/scripts/startBackgroundMonitor.sh echo "--------------------------------" echo "Ransomware Protection Installed" echo "This plugin requires inotify-tools (available within the NerdPack plugin) to operate" echo "Copyright 2016, Andrew Zawadzki" echo "Version: &version;" echo "--------------------------------" echo "Stopping Services" /usr/local/emhttp/plugins/ransomware.bait/scripts/stopService.php echo "Deleting bait files. This may take a bit" /usr/local/emhttp/plugins/ransomware.bait/scripts/deleteAllBait.sh if [ -d "/boot/config/plugins/ransomware.bait/shareBackup" ]; then echo "Resetting SMB permissions to normal" echo "There will be an interruption in access to your server" mv /tmp/ransomware/smbShares-orig /etc/samba/smb-shares.conf rm -rf /boot/config/shares mkdir -p /boot/config/shares cp /boot/config/plugins/ransomware.bait/shareBackup/* /boot/config/shares/ rm -rf /boot/config/plugins/ransomware.bait/shareBackup cp /boot/config/plugins/ransomware.bait/shareBackupDisks /boot/config/disk.cfg rm -rf /boot/config/plugins/ransomware.bait/shareBackupDisks cp /boot/config/plugins/ransomware.bait/udBackup/* /etc/samba/unassigned-shares rm -rf /boot/config/plugins/ransomware.bait/udBackup /etc/rc.d/rc.samba stop /etc/rc.d/rc.atalk stop fi removepkg &name;-&version;-x86_64-1 rm -rf &plugdir; rm -rf /boot/config/plugins/&name; rm -rf /tmp/ransomware echo echo "You should reboot your server to remove all traces of the Ransomware Protection Plugin"