MySQL
Here we are exploiting a MySQL database server and changing credentials of wordpress file and then also gaining access to phpmyadmin page
Port scanning with
nmap
Access the web server with a browser
http://10.2.29.246/
http://10.2.29.246/hahaha.jpg
View page source
Other webpages
https://10.2.29.246:4848/
http://10.2.29.246:8080/
http://10.2.29.246:9200/
http://10.2.29.246:8484/
http://10.2.29.246:8585/
http://10.2.29.246:8585/wordpress/
#MySQL
Search for MySQL exploits
Brute-force MySQL
📌
root
password is empty
Change
admin
WordPress user's password
❗ DO NOT Change passwords in a real pentest
Access via browser
http://10.2.26.45:8585/wordpress/wp-admin
Try to gain access to phpMyAdmin using MSF
Access the target through SMB and modify phpMyAdmin configuration file
Move into the
wamp
folder
Change WordPress
admin
password
Access phpMyAdmin
http://10.2.26.45:8585/phpmyadmin/
it automatically logs in since the
root
password isnull
phpMyAdmin
❗ DO NOT Change passwords in a real pentest
Last updated