Advanced Recovery
Core File Verification
-
Download Fresh WordPress
wget https://wordpress.org/latest.zip -
Replace Core Files
- Keep
wp-config.php - Keep
wp-contentdirectory - Replace all other files
- Keep
-
Check wp-content
- Remove PHP files from
uploads - Verify theme and plugin files
- Check for hidden .htaccess files
- Remove PHP files from
Database Cleanup
Check for malicious content in:
-
Users Table
- Remove unknown admin accounts
- Check user permissions
-
Options Table
- Look for suspicious site URLs
- Check active plugins list
- Review theme settings
-
Posts/Pages
- Search for injected JavaScript
- Look for hidden iframes
- Check for spam content
Plugin and Theme Audit
-
Delete Unused Items
- Remove all inactive themes
- Delete unused plugins
- Keep only what's necessary
-
Update Everything
- Update all active plugins
- Update active theme
- Enable auto-updates where possible
-
Replace Suspicious Items
- Re-install plugins from official repository
- Get themes from trusted sources only