A collection of Python scripts for enhancing the security of WordPress hosting servers. These scripts help automate security tasks such as scanning vulnerabilities, monitoring file integrity, detecting malware, and more.
Script Name | Description |
---|---|
scan_vulnerabilities.py |
Scans for common WordPress vulnerabilities. |
monitor_file_integrity.py |
Monitors integrity of WordPress core files. |
backup_wordpress.py |
Backs up WordPress files and database. |
detect_malware.py |
Detects malware in PHP files. |
update_wordpress_plugins.py |
Updates all plugins using WP-CLI. |
monitor_login_attempts.py |
Monitors login attempts via logs. |
enforce_https.py |
Checks if HTTPS is enforced. |
block_bad_ips.py |
Blocks malicious IPs using UFW. |
analyze_access_logs.py |
Analyzes access logs for suspicious activity. |
reset_admin_password.py |
Resets the WordPress admin password. |
- Python 3.x
- Required modules:
requests
- Access to the WordPress server and its logs.
-
Clone this repository:
git clone https://github.com/yourusername/WP-Security-Scripts.git cd WP-Security-Scripts
-
Install dependencies:
pip install -r requirements.txt
-
Execute a script:
python3 Scripts/scan_vulnerabilities.py
-
Adjust variables and paths as needed.
This project is licensed under the MIT License.