MySQL
MySQL
Command for connecting to remote mysql (sql) server:
mysql -u root -p'root' -h {{IP-Address}} -P {{PORT-Number-generally-3306}}
# Example
# mysql -u root -p'root' -h 192.168.209.16 -P 3306 --ssl=OFFnote: no space after -p
note that there is no space after -p
To get a version of the Database in MySQL:
select version();To get current database user:
select system_user();To get the list of databases:
To get a list of table from a database:
To get the column name of the table:
example:
this is an example to extract the user name and authentication string for user named as offsec
Fetching Table related information using UNION SQLI
Last updated