Wordpress Auto Login to Admin 1.0
Function: This script is a WordPress Auto-Login Backdoor. It bypasses the standard login screen to grant immediate administrative access to any user who executes the script. Key Features:
Environment Detection: Automatically locates the WordPress root directory using DOCUMENT_ROOT.
Core Integration: Loads the wp-load.php file to access internal WordPress functions and the database.
Admin Hijacking: Queries the database for the first user with an "Administrator" role.
Session Forging: Uses wp_set_auth_cookie() to create a valid login session without a password.
Instant Redirect: Automatically sends the attacker to the /wp-admin/ dashboard.
Disclaimer
This tool is provided for authorized security testing and educational purposes only. Unauthorized use of web shells is illegal and strictly prohibited.