Discuz-Security Server Security Tool
Function:
- File change monitoring.
- File backup
- When the monitored directory has a PHP file changed, the file will be scanned. if it hits the target, the original file will be restored from the backup file to the monitored directory.
Environment:
- Linux ≥ 2.6.13
- Python ≥ 2.4 (including Python 3.x)
Usage:
- Decompress the file and place it in any directory.
- Configure discuz_path = Your discuz directory in the data/discuz-security.cnf File
- Configure ds_path = Your discuz-security tool directory in the data/discuz-security.cnf File
- Run the command Python D. py start to open the tool.
- Run the command Python D. py stop to stop the tool.
Directory description:
Data Directory
- Backup Directory
- Rule rule directory
Logs log directory
- Diff file change log directory
- Scan file scan log directory
Core program file directory
Code download https://github.com/rikioy/DiscuzTools/tree/master/DiscuzSecurity
Original article published in http://www.discuz.net/thread-3371884-1-1.html
Discuzsecurity server security tool 1.0.0 Beta