Skip to content

Instantly share code, notes, and snippets.

View milanchymcak's full-sized avatar
🏠
Working from home

Milan Chymčák milanchymcak

🏠
Working from home
View GitHub Profile
@milanchymcak
milanchymcak / hack-wordpress-admin-without-password.md
Last active November 29, 2024 10:10
"Hack" into WordPress admin area without password

Regain access to WordPress installation without password or even username

Create a file anywhere in your WordPress installation and access the file directly through your browser. You will be redirected to the WP admin area without even having a password or username.

Please, delete the following lines from your production site after usage. Your website can be easily hacked or exploited with the following script.

/** Set up WordPress environment */