📝
Basic Penetration Testing
  • About Knowledge
  • Server Enumeration
    • Scanning
    • Common Services
      • FTP - 21
      • SMTP - 25
      • SMB - 139, 445
  • Web Application
    • Enumeration
    • Exploitation
    • Execute Commands
    • Databases
      • MySQL
      • SQLite
      • MSSQL
      • PostgreSQL
  • Remote Code Execution
  • File Transfer
    • HTTP Server
    • SMB Protocol
    • FTP Server on Kali Linux
  • Hash Cracking
  • Privilege Escalation
    • Windows Privilege Escalation
    • Linux Privilege Escalation
  • Buffer Overflow
  • About LeeCyberSec
Powered by GitBook
On this page
  • Connection
  • Query
  • Readfile

Was this helpful?

  1. Web Application
  2. Databases

MySQL

Connection

mysql -h <host> -u <user> -p<pass>

Query

show databases;
show tables;
use tables;
select * from users;

Readfile

SELECT LOAD_FILE('/var/lib/mysql-files/pentest.txt');
PreviousDatabasesNextSQLite

Last updated 4 years ago

Was this helpful?