- A valid username and password of a user with admin rights on the Wordpress.
Connect with a user with administrative rights on the Wordpress at http://TARGET/wp-login.php.
Now access the theme-editor in "Appearance / Editor" at http://TARGET/wordpress/wp-admin/theme-editor.php
Then edit the theme to add PHP code inside the page:
You can find reverse shell PHP payloads here: https://podalirius.net/en/articles/unix-reverse-shells-cheatsheet/#php
Now, prepare your listener with netcat (nc -lvp <port>
) and enjoy your shell: